Commit Graph

462 Commits

Author SHA1 Message Date
krawieck 4ad3b8d6fc Remove unneeded import and convert local import to relative 2020-08-06 12:11:41 +02:00
Mikwk 43ab1990d7 Implemented ParseDateFromJson method. 2020-08-06 12:03:31 +02:00
krawieck 2a89add283 Create `CommentEndpoint`
seems like all important endpoints are created, now we can get to implementing them
2020-08-05 23:59:10 +02:00
krawieck 19c10d27f9 Move endponts to separate files to reduce clutter
Move `v1` endpoint to it's own directory, and `PostEndpoint`and `UserEndpoint` to their own files
2020-08-05 23:21:26 +02:00
krawieck 8c0f211cf2 `PostEndpoint` created and with most methods created
methods created for:
* `POST /post`
* `GET  /post`
* `GET  /post/list`
* `POST /post/like`
* `PUT  /post`
* `POST /post/delete`
* `POST /post/remove`
* `POST /post/save`

I'm not implementing admin stuff cuz we don't need it for now,
and we keep track of what is yet to be added in #6

also we might need to move a bunch of stuff to separate files cuz it's getting cluttered in here
2020-08-05 23:06:54 +02:00
Mikwk a7a0e4bf12 Added CommentView class along with autogenerated Json (de)serialization.
Cleaned code in post.dart for it to be more readable.
Moved ParseDateFromJson static method from PostView to UtilityClass in utility.dart, because it's also used by CommentView class.
2020-08-05 17:33:59 +02:00
Mikwk cf09486479 TODO:
Add methods and fields for comments associated with post.
2020-08-05 17:03:21 +02:00
Mikwk b5e8620931 Implemented PostView class.
Added auto generated JSON (de)serialization of PostView class by json_serializable package.
Added required packages and dependencies in pubsec.yalm:
 - json_annotation: ^3.0.1,
 - json_serializable: ^3.3.0,
 - build_runner: ^1.10.0.
TODO:
Implement ParseDateFromJson static method in PostView class.
2020-08-05 13:17:52 +02:00
krawieck a54325649f removed unneeded `jwt` variable from `LemmyAPI` 2020-08-04 17:49:46 +02:00
krawieck f75bc05a01 Add `search` and `listCategories` #6
Add endpoints for:
* `GET /categories`
* `POST /search`
2020-08-04 17:27:44 +02:00
krawieck 1c8394549b Add barebones of user endpoint 2020-08-04 16:41:07 +02:00
krawieck 58c70d715a first commit 2020-08-02 13:34:42 +02:00