Add `search` and `listCategories` #6
Add endpoints for: * `GET /categories` * `POST /search`
This commit is contained in:
parent
1c8394549b
commit
f75bc05a01
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue