Julian Lam
09cf9c7770
feat: GET /api/v3/chats/:roomId
2021-12-22 10:59:36 -05:00
Julian Lam
55e68e2fd5
docs: openAPI documentation for routes
2021-12-22 10:59:36 -05:00
Julian Lam
40b4544e70
feat: POST /api/v3/chats, chat room creation, plus openAPI docs update
2021-12-22 10:59:36 -05:00
Barış Soner Uşaklı
cc3f82bc83
breaking: remove socket.emit('admin.categories.setPrivilege') and socket.emit('admin.categories.getPrivilegeSettings')
2021-12-06 21:47:47 -05:00
Julian Lam
5b42b6b369
API route for returning tracked analytics keys ( #10019 )
...
* feat: track metrics saved by NodeBB (and assoc. plugins), #9949
* feat: route to retrieve analytics keys, closes #9949
2021-11-19 15:12:13 -05:00
Julian Lam
7ef5214ef9
test: fix broken openapi3 schema
2021-10-22 16:14:41 -04:00
Julian Lam
806a1e50d2
feat: utilities login API route now starts an actual login session, if requested
2021-10-22 15:06:51 -04:00
Julian Lam
94c4f87b2f
docs: update verbiage re: login API route
2021-10-08 15:24:34 -04:00
Julian Lam
0a41741b7e
refactor: deprecate picture update socket call, new API routes for picture update
2021-09-03 16:59:42 -04:00
gasoved
3df79683f5
feat: create folders in ACP uploads #9638 ( #9750 )
...
* feat: create folders in ACP uploads #9638
* fix: openapi
* test: missing tests
* fix: eslint
* fix: tests
2021-08-31 09:27:00 -04:00
Barış Soner Uşaklı
358ad74054
feat: closes #9684 , allow event deletion
...
fix: topic events appearing before necro messages
feat: add move topic event
feat: add ability to delete specific topic events via events.purge
2021-08-10 19:39:51 -04:00
Julian Lam
cc6cbfcdc4
Flags API ( #9666 )
...
* feat: new routes for flags API
+ flag get
+ flag creation, migration from socket method
+ flag update, migration from socket method
* fixed bug where you could not unassign someone from a flag
* feat: tests for new flags API
added missing files for schema update
* fix: flag tests to use Write API instead of sockets
* feat: flag notes API + tests
* chore: remove debug line
* test: fix breaking test on mongo
2021-07-16 13:44:42 -04:00
Julian Lam
d2960aeb09
feat: added GET user route for api v3
2021-05-26 12:35:37 -04:00
Julian Lam
2a939aad8d
fix: regression via c1b3079d93
...
Also refactored privilege render logic so that it no longer needs a server-side hack to render column count
2021-03-12 14:22:16 -05:00
Julian Lam
e755067387
docs: fixed typo
2021-03-04 13:56:45 -05:00
Julian Lam
c1b3079d93
feat: category privilege API routes
...
closes #9342
2021-03-04 12:46:31 -05:00
Julian Lam
0804d54759
spec: schema docs for new ACP dashboard subpage routes
2021-02-24 12:51:20 -05:00
Julian Lam
b31f6dd24a
test: added missing test file
2021-02-16 12:22:35 -05:00
gasoved
cabec378f4
fix: openapi test specs
2021-02-03 09:49:28 -05:00
gasoved
72b050b4a8
test: post diff deletion tests
2021-02-03 09:49:28 -05:00
Julian Lam
dc84559d0b
feat(topic-events): topic events GET route in write API
2021-01-27 13:16:49 -05:00
Julian Lam
966c4117ec
refactor(api): post move to write API
2021-01-18 15:31:14 -05:00
Julian Lam
e118e59ce0
refactor(api): post diffs to use write API
2021-01-18 14:26:22 -05:00
Julian Lam
0da2843281
feat(api): schema definition for new credential checking route
2021-01-07 15:11:45 -05:00
Julian Lam
edb8da1ef9
feat(api): closes #9123 category and topic routes migrated to Write API
2020-12-29 10:32:01 -05:00
Julian Lam
3959a7bd9c
fix(api): failing test due to missing file
2020-12-22 14:43:22 -05:00
Julian Lam
98550d61d7
feat(api): add schema for groups update route
2020-12-22 13:22:01 -05:00
Julian Lam
990f107736
fix: broken tests from last round of fixes
2020-12-18 14:01:41 -05:00
Julian Lam
d6de925348
feat: add missing schema for category update and deletion
...
Deleted CategoryObj component, since CategoryObject is used more
2020-12-18 14:01:41 -05:00
Julian Lam
d85181e031
feat: add schema for api ping routes
2020-12-18 14:01:41 -05:00
Julian Lam
2170c40007
fix: iteration logic bug
2020-12-09 10:42:41 -05:00
Julian Lam
5950683316
feat: closes #9048 , tests for topic thumbs routes, write API schema
2020-12-09 10:42:41 -05:00
psychobunny
af9e676291
Revert "fix(openapi): spec for 685f3c6aa6173383d6c31b87ed51cf8ed0ca44ce"
...
This reverts commit 1bb75e762e .
2020-12-01 16:06:03 -05:00
psychobunny
1bb75e762e
fix(openapi): spec for 685f3c6aa6
2020-12-01 14:53:16 -05:00
Julian Lam
a0b7a82350
feat(api): account deletion routes for the Write API ( #8881 )
...
* feat(api): account deletion routes for the Write API
* refactor: rewrite client-side calls to account deletion to use api
* style: apply DRY
2020-11-17 17:29:50 -05:00
gasoved
3ccebf112e
feat: invites regardless of registration type, invite privilege, groups to join on acceptance ( #8786 )
...
* feat: allow invites in normal registration mode + invite privilege
* feat: select groups to join from an invite
* test: check if groups from invitations have been joined
* fix: remove unused variable
* feat: write API versions of socket calls
* docs: openapi specs for the new routes
* test: iron out mongo redis difference
* refactor: move inviteGroups endpoint into write API
* refactor: use GET /api/v3/users/:uid/invites/groups
Instead of GET /api/v3/users/:uid/inviteGroups
* fix: no need for /api/v3 prefix when using api module
* fix: tests
* refactor: change POST /api/v3/users/invite
To POST /api/v3/users/:uid/invites
* refactor: make helpers.invite awaitable
* fix: restrict invite API to self-use only
* fix: move invite groups controller to write api, +tests
* fix: tests
Co-authored-by: Julian Lam <julian@nodebb.org >
2020-11-16 14:47:23 -05:00
Julian Lam
8518404e22
feat: allow groups to specify which cids to show member posts from ( #8875 )
...
* feat: allow groups to specify which cids to show member posts from
* docs: fix tests for openapi
* fix: test breakage caused by improper conditional
* feat: server-side checking of memberPostCids for validity
* feat: admin panel template update to select categories to include
* refactor: privilege helpers.isUserAllowedTo
... to helpers.isAllowedTo, allowing group names to be passed in
2020-11-13 14:15:37 -05:00
Julian Lam
bcccb331db
docs: openapi schema for user/group exist check, session deletion
2020-11-12 15:53:15 -05:00
Julian Lam
97842c43d3
test: new api test to ensure each path's parameters are defined in context
2020-11-12 15:52:33 -05:00
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
b2e9e3e048
fix(writeapi): more tweaks to schema files
2020-10-27 20:37:23 -04:00
Julian Lam
9f9e3c1582
fix(writeapi): fix components, + tag object schema
2020-10-27 20:37:23 -04:00
Julian Lam
a4f3270fc5
fix(writeapi): missing files for tests
2020-10-27 20:37:23 -04:00
Julian Lam
b092f65d95
fix(writeapi): tests
2020-10-27 20:37:23 -04:00
Julian Lam
93f65f89e7
fix(writeapi): added examples to all parameter objects in schema
2020-10-27 20:37:23 -04:00
Julian Lam
c26f2b6599
feat(writeapi): user settings API
2020-10-22 14:07:50 -04:00
psychobunny
7aa4d104af
fix: testing openapi write tests
2020-10-13 14:43:20 -04:00
psychobunny
16873800a6
fix(openapi): users.yaml
2020-10-13 14:00:54 -04:00
psychobunny
54e6003a7c
fix: test fix for write API
...
need to rewrite users.yaml to fix properly
2020-10-13 13:07:54 -04:00
psychobunny
dbb4cfe9d6
style(openapi): break write API routes into individual files
2020-10-09 12:16:25 -04:00