Julian Lam
aa8faf58a0
refactor: remove /users/{uid}/settings/{setting} route
...
@baris Also, I am now allowing the following properties to be saved in User.saveSettings:
- categoryTopicSort
- topicPostSort
- setCategorySort
- setTopicSort
2020-10-28 17:21:54 -04:00
Julian Lam
b156b8b573
feat: wip, write api tests framework
...
re-using read api tests if possible
2020-10-27 20:37:23 -04:00
Julian Lam
c26f2b6599
feat(writeapi): user settings API
2020-10-22 14:07:50 -04:00
Barış Soner Uşaklı
bf480ee58b
refactor: setupApiRoute signature
2020-10-15 23:12:19 -04:00
Julian Lam
8ecef7b891
refactor: middleware.assert.*
2020-10-08 15:33:10 -04:00
Julian Lam
2ec838fc59
feat(writeapi): token generation/delete routes, ACP updates
2020-10-08 15:33:10 -04:00
Julian Lam
8e7baac6ef
fix(writeapi): calls to profile editing routes 200 even if user DNE
2020-10-08 15:33:10 -04:00
Julian Lam
d044c3223e
feat(writeapi): abstracted ajax calls out to new api module
2020-10-08 15:33:10 -04:00
Julian Lam
dc666fd8a9
feat: added POST /api/v1/categories route
2020-10-08 15:33:10 -04:00
Julian Lam
a5af2dc819
feat: added PUT/DELETE /api/v1/users/:uid/ban routes
2020-10-08 15:33:10 -04:00
Julian Lam
db5c5b2cfb
fix: follow route to match spec
2020-10-08 15:33:10 -04:00
Julian Lam
b5bbcbaeaa
feat: added POST and DELETE /api/v1/users/:uid/follow routes
2020-10-08 15:33:10 -04:00
Julian Lam
7aed174ebc
feat: added PUT /api/v1/users/:uid/password route
2020-10-08 15:33:10 -04:00
Julian Lam
a1ddc210b2
feat: added DELETE /api/v1/users/:uid and DELETE /api/v1/users
2020-10-08 15:33:10 -04:00
Julian Lam
d15d9e4492
fix(refactor): patching helpers.tryRoute for API routes, some re-org
...
Thanks @barisusakli for the tip
2020-10-08 15:33:10 -04:00
Julian Lam
d8879d21db
fix: error handling with POST /api/v1/users
2020-10-08 15:33:10 -04:00
Julian Lam
bba2a4638c
fix: user creation POST route returns user data, updated openapi spec
2020-10-08 15:33:10 -04:00
Julian Lam
7b6d43bcc8
feat: added checkRequired middleware for API calls
2020-10-08 15:33:10 -04:00
Julian Lam
f6433ef2c5
fix(refactor): merging write-api auth middlewares with core middlewares
2020-10-08 15:33:10 -04:00