Skip to content

Commit

Permalink
fix(tenant-management-api): correct the response body schema in API docs
Browse files Browse the repository at this point in the history
Also making correction to comment service pages docs.
  • Loading branch information
tzuge authored Nov 30, 2023
1 parent 9d68a03 commit fea9cdd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
18 changes: 15 additions & 3 deletions apps/tenant-management-api/src/tenant/router/tenant.swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,21 @@ components:
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/Tenant"
type: object
properties:
results:
type: array
items:
$ref: "#/components/schemas/Tenant"
page:
type: object
properties:
after:
type: string
next:
type: string
size:
type: number
401:
description: Unauthorized
post:
Expand Down
2 changes: 1 addition & 1 deletion docs/services/comment-service.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ parent: Services
# Comment service
Comment service allows users to create topics and post comments against the topics. Topics are of a particular topic type, and the type determines the roles permitted to administer, read, or comment on a topic.

Topics are intended an aggregate root for comments, and should be associated to an entity that is the subject of the comments. Topic includes a `recordId` property for referencing the associated entity. For example, in a case management use case, a topic references a case using the case ID, and comments regarding the case are children of that topic.
A topic is intended to be an aggregate root for comments, and should be associated to an entity that is the subject of the comments. Topic includes a `resourceId` property for referencing the associated entity. For example, in a case management use case, a topic references a case using the case ID, and comments regarding the case are children of that topic.

## Client roles
client `urn:ads:platform:comment-service`
Expand Down

0 comments on commit fea9cdd

Please sign in to comment.