1
0
mirror of https://github.com/krawieck/lemmur/ synced 2024-12-14 17:44:52 +01:00
Commit Graph

867 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
Filip Krawczyk
1e1b3f2469
Merge pull request #5 from krawieck/ci 2020-08-02 20:59:18 +02:00
shilangyu
fdfa6a55c1 added CI badge 2020-08-02 19:28:42 +02:00
shilangyu
19dbe8cf38 fixed linting issue 2020-08-02 19:27:06 +02:00
shilangyu
69516f461a Added linter and CI setup 2020-08-02 19:26:57 +02:00
krawieck
93c06ce212 Update readme 2020-08-02 13:54:50 +02:00
krawieck
58c70d715a first commit 2020-08-02 13:34:42 +02:00