mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 00:56:13 +01:00
docs: openapi schema for user/group exist check, session deletion
This commit is contained in:
14
test/api.js
14
test/api.js
@@ -49,6 +49,18 @@ describe('API', async () => {
|
||||
example: utils.generateUUID(),
|
||||
},
|
||||
],
|
||||
'/users/{uid}/sessions/{uuid}': [
|
||||
{
|
||||
in: 'path',
|
||||
name: 'uid',
|
||||
example: 1,
|
||||
},
|
||||
{
|
||||
in: 'path',
|
||||
name: 'uuid',
|
||||
example: '', // to be defined below...
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
|
||||
@@ -120,7 +132,7 @@ describe('API', async () => {
|
||||
await socketUser.exportPosts({ uid: adminUid }, { uid: adminUid });
|
||||
await socketUser.exportUploads({ uid: adminUid }, { uid: adminUid });
|
||||
// wait for export child process to complete
|
||||
await wait(5000);
|
||||
// await wait(5000);
|
||||
|
||||
// Attach a search hook so /api/search is enabled
|
||||
plugins.registerHook('core', {
|
||||
|
||||
Reference in New Issue
Block a user