You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
1.0 KiB
19 lines
1.0 KiB
2 years ago
|
# nextcloud
|
||
|
|
||
|
A Nextcloud client written in Dart.
|
||
|
|
||
|
This client will become the replacement for https://github.com/jld3103/dart-nextcloud at some point ([See](https://github.com/jld3103/nextcloud-harbour/issues/1)).
|
||
|
|
||
|
## Development
|
||
|
|
||
|
Except for WebDAV all client code is generated using OpenAPI specs which can be found in the `../../specs/` folder.
|
||
|
Templates for these OpenAPI specs are generated from the Nextcloud codebase to make development easier.
|
||
|
|
||
|
To generate such a template take a look at `../../tool/generate-nextcloud.sh`.
|
||
|
After you have generated a template, you need to fill it out. Some endpoints can or have to be discarded.
|
||
|
|
||
|
Then you start writing tests for the endpoints you added.
|
||
|
To easily inspect the responses for an endpoint, just set the `type` to `string` inside the `schema` blocks of the spec and let the output be printed in the tests.
|
||
|
|
||
|
Sometimes you will have to look at the source code of Nextcloud, because the API is not always intuitive. Make sure to check if there is any API documentation that can help you.
|