generated from edwinhern/express-typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
/api/v1/workspaces
Request
User can specify limit and page
http://localhost:3000/api/v1/workspaces?limit=2&page=1
Response body
{
"data": [
{
"id": 1,
"title": "Workspace 1",
"description": "Workspace 1 description",
"owner": {
"id": 1,
"email": "admin@example.com",
"username": "superadmin",
"provider": "email",
"socialId": null,
"firstName": "John",
"lastName": "Doe",
"role": {
"id": 1,
"name": "Admin",
"__entity": "RoleEntity"
},
"status": {
"id": 1,
"name": "Active",
"__entity": "StatusEntity"
},
"createdAt": "2024-04-25T16:34:06.092Z",
"updatedAt": "2024-04-29T12:12:35.000Z",
"deletedAt": null
},
"createdAt": "2024-04-25T16:34:06.235Z",
"updatedAt": "2024-04-25T16:34:06.235Z",
"deletedAt": null
},
{
"id": 21,
"title": "ererw",
"description": "erewrew",
"owner": {
"id": 1,
"email": "admin@example.com",
"username": "superadmin",
"provider": "email",
"socialId": null,
"firstName": "John",
"lastName": "Doe",
"role": {
"id": 1,
"name": "Admin",
"__entity": "RoleEntity"
},
"status": {
"id": 1,
"name": "Active",
"__entity": "StatusEntity"
},
"createdAt": "2024-04-25T16:34:06.092Z",
"updatedAt": "2024-04-29T12:12:35.000Z",
"deletedAt": null
},
"createdAt": "2024-04-27T13:09:53.838Z",
"updatedAt": "2024-04-27T13:09:53.838Z",
"deletedAt": null
}
],
"hasNextPage": false
}
"hasNextPage": false
is true if there are more workspaces and false if not
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels