Skip to content

Commit

Permalink
chore: update services comment
Browse files Browse the repository at this point in the history
  • Loading branch information
boojack committed Feb 1, 2024
1 parent f6f193a commit c342c46
Show file tree
Hide file tree
Showing 17 changed files with 231 additions and 27 deletions.
101 changes: 101 additions & 0 deletions api/v2/apidocs.swagger.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ GetAuthStatus returns the current auth status of the user.
### /api/v2/inboxes

#### GET
##### Summary

ListInboxes lists inboxes for a user.

##### Parameters

| Name | Located in | Description | Required | Schema |
Expand All @@ -119,6 +123,10 @@ GetAuthStatus returns the current auth status of the user.
### /v2/inboxes

#### PATCH
##### Summary

UpdateInbox updates an inbox.

##### Parameters

| Name | Located in | Description | Required | Schema |
Expand All @@ -135,6 +143,10 @@ GetAuthStatus returns the current auth status of the user.
### /v2/{name}

#### DELETE
##### Summary

DeleteInbox deletes an inbox.

##### Parameters

| Name | Located in | Description | Required | Schema |
Expand Down Expand Up @@ -434,6 +446,10 @@ ExportMemos exports memos.
### /api/v2/resources

#### GET
##### Summary

ListResources lists all resources.

##### Responses

| Code | Description | Schema |
Expand All @@ -442,6 +458,10 @@ ExportMemos exports memos.
| default | An unexpected error response. | [googlerpcStatus](#googlerpcstatus) |

#### POST
##### Summary

CreateResource creates a new resource.

##### Parameters

| Name | Located in | Description | Required | Schema |
Expand All @@ -461,6 +481,10 @@ ExportMemos exports memos.
### /api/v2/resources/{id}

#### GET
##### Summary

GetResource returns a resource by id.

##### Parameters

| Name | Located in | Description | Required | Schema |
Expand All @@ -475,6 +499,10 @@ ExportMemos exports memos.
| default | An unexpected error response. | [googlerpcStatus](#googlerpcstatus) |

#### DELETE
##### Summary

DeleteResource deletes a resource by id.

##### Parameters

| Name | Located in | Description | Required | Schema |
Expand All @@ -491,6 +519,10 @@ ExportMemos exports memos.
### /api/v2/resources/{name}

#### GET
##### Summary

GetResourceByName returns a resource by name.

##### Parameters

| Name | Located in | Description | Required | Schema |
Expand All @@ -507,6 +539,10 @@ ExportMemos exports memos.
### /api/v2/resources/{resource.id}

#### PATCH
##### Summary

UpdateResource updates a resource.

##### Parameters

| Name | Located in | Description | Required | Schema |
Expand All @@ -527,6 +563,10 @@ ExportMemos exports memos.
### /api/v2/tags

#### GET
##### Summary

ListTags lists tags.

##### Parameters

| Name | Located in | Description | Required | Schema |
Expand All @@ -541,6 +581,10 @@ ExportMemos exports memos.
| default | An unexpected error response. | [googlerpcStatus](#googlerpcstatus) |

#### DELETE
##### Summary

DeleteTag deletes a tag.

##### Parameters

| Name | Located in | Description | Required | Schema |
Expand All @@ -556,6 +600,10 @@ ExportMemos exports memos.
| default | An unexpected error response. | [googlerpcStatus](#googlerpcstatus) |

#### POST
##### Summary

UpsertTag upserts a tag.

##### Parameters

| Name | Located in | Description | Required | Schema |
Expand All @@ -572,6 +620,10 @@ ExportMemos exports memos.
### /api/v2/tags/suggestion

#### GET
##### Summary

GetTagSuggestions gets tag suggestions from the user's memos.

##### Parameters

| Name | Located in | Description | Required | Schema |
Expand All @@ -588,6 +640,10 @@ ExportMemos exports memos.
### /api/v2/tags:batchUpsert

#### POST
##### Summary

BatchUpsertTag upserts multiple tags.

##### Responses

| Code | Description | Schema |
Expand All @@ -598,6 +654,11 @@ ExportMemos exports memos.
### /api/v2/tags:rename

#### PATCH
##### Summary

RenameTag renames a tag.
All related memos will be updated.

##### Parameters

| Name | Located in | Description | Required | Schema |
Expand Down Expand Up @@ -731,6 +792,10 @@ DeleteUserAccessToken deletes an access token for a user.
### /api/v2/{name}/setting

#### GET
##### Summary

GetUserSetting gets the setting of a user.

##### Parameters

| Name | Located in | Description | Required | Schema |
Expand All @@ -747,6 +812,10 @@ DeleteUserAccessToken deletes an access token for a user.
### /api/v2/{setting.name}

#### PATCH
##### Summary

UpdateUserSetting updates the setting of a user.

##### Parameters

| Name | Located in | Description | Required | Schema |
Expand Down Expand Up @@ -808,6 +877,10 @@ CreateUser creates a new user.
### /api/v2/webhooks

#### GET
##### Summary

ListWebhooks returns a list of webhooks.

##### Parameters

| Name | Located in | Description | Required | Schema |
Expand All @@ -822,6 +895,10 @@ CreateUser creates a new user.
| default | An unexpected error response. | [googlerpcStatus](#googlerpcstatus) |

#### POST
##### Summary

CreateWebhook creates a new webhook.

##### Parameters

| Name | Located in | Description | Required | Schema |
Expand All @@ -838,6 +915,10 @@ CreateUser creates a new user.
### /api/v2/webhooks/{id}

#### GET
##### Summary

GetWebhook returns a webhook by id.

##### Parameters

| Name | Located in | Description | Required | Schema |
Expand All @@ -852,6 +933,10 @@ CreateUser creates a new user.
| default | An unexpected error response. | [googlerpcStatus](#googlerpcstatus) |

#### DELETE
##### Summary

DeleteWebhook deletes a webhook by id.

##### Parameters

| Name | Located in | Description | Required | Schema |
Expand All @@ -868,6 +953,10 @@ CreateUser creates a new user.
### /api/v2/webhooks/{webhook.id}

#### PATCH
##### Summary

UpdateWebhook updates a webhook.

##### Parameters

| Name | Located in | Description | Required | Schema |
Expand All @@ -888,6 +977,10 @@ CreateUser creates a new user.
### /api/v2/workspace/profile

#### GET
##### Summary

GetWorkspaceProfile returns the workspace profile.

##### Responses

| Code | Description | Schema |
Expand All @@ -896,6 +989,10 @@ CreateUser creates a new user.
| default | An unexpected error response. | [googlerpcStatus](#googlerpcstatus) |

#### PATCH
##### Summary

UpdateWorkspaceProfile updates the workspace profile.

##### Parameters

| Name | Located in | Description | Required | Schema |
Expand All @@ -915,6 +1012,10 @@ CreateUser creates a new user.
### /v2/activities

#### GET
##### Summary

GetActivity returns the activity with the given id.

##### Parameters

| Name | Located in | Description | Required | Schema |
Expand Down
Loading

0 comments on commit c342c46

Please sign in to comment.