Add `search` and `listCategories` #6

Add endpoints for:
* `GET /categories`
* `POST /search`
This commit is contained in:
krawieck 2020-08-04 17:27:44 +02:00
parent 1c8394549b
commit f75bc05a01
1 changed files with 20 additions and 0 deletions

View File

@ -18,6 +18,26 @@ class V1 {
String instanceUrl;
UserEndpoint user;
V1(this.instanceUrl) : user = UserEndpoint(instanceUrl);
/// GET /categories
/// https://dev.lemmy.ml/docs/contributing_websocket_http_api.html#list-categories
String listCategories() {
throw UnimplementedError();
}
/// POST /search
/// https://dev.lemmy.ml/docs/contributing_websocket_http_api.html#search
String search({
@required String q,
@required String type,
String communityId,
@required String sort,
int page,
int limit,
String auth,
}) {
throw UnimplementedError();
}
}
class UserEndpoint {