shilangyu
63fed075ed
Added community and user views
2020-08-09 13:19:13 +00:00
krawieck
fd8ca3caff
let's start testing!
2020-08-09 13:20:15 +02:00
krawieck
1e84b6057b
removed `Date.tryParse` cuz it's not what we thought it was
2020-08-09 13:17:32 +02:00
krawieck
8f0a2b14b7
Update return types
2020-08-09 00:27:13 +02:00
Filip Krawczyk
8ff51b4aec
Merge pull request #8 from krawieck/mapping_objects
2020-08-08 23:54:24 +02:00
krawieck
7d902ce352
Update pubspec.lock
2020-08-08 23:53:04 +02:00
krawieck
8cc0591dfa
Add codegen files
2020-08-08 23:51:17 +02:00
shilangyu
f4f6ddd8fe
added missing commas and removed codegen files
2020-08-08 23:46:27 +00:00
shilangyu
b829b30593
models cleanup
2020-08-08 23:24:25 +00:00
krawieck
1515c6f397
Add Vote enum for upvotes
2020-08-08 23:24:34 +02:00
krawieck
091070726e
Change methods to be top level with names
...
based on OP codes. classes changed to
extensions of `V1` class
2020-08-06 22:06:53 +02:00
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