Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
99568236
Commit
99568236
authored
Feb 07, 2024
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: run buf generate
parent
06fb2174
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
84 additions
and
28 deletions
+84
-28
apidocs.swagger.md
api/v2/apidocs.swagger.md
+2
-1
apidocs.swagger.yaml
api/v2/apidocs.swagger.yaml
+82
-27
No files found.
api/v2/apidocs.swagger.md
View file @
99568236
...
...
@@ -842,7 +842,7 @@ UpdateUserSetting updates the setting of a user.
| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ------ |
| setting.name | path | The name of the user. Format: users/{username} | Yes | string |
| setting | body | | Yes | {
**"locale"**
: string,
**"appearance"**
: string,
**"memoVisibility"**
: string,
**"telegramUserId"**
: string } |
| setting | body | | Yes | {
**"locale"**
: string,
**"appearance"**
: string,
**"memoVisibility"**
: string,
**"telegramUserId"**
: string
,
**"compactView"**
: boolean
} |
##### Responses
...
...
@@ -1093,6 +1093,7 @@ GetActivity returns the activity with the given id.
| appearance | string | The preferred appearance of the user. | No |
| memoVisibility | string | The default visibility of the memo. | No |
| telegramUserId | string | The telegram user id of the user. | No |
| compactView | boolean | The compact view for a memo. | No |
#### apiv2Webhook
...
...
api/v2/apidocs.swagger.yaml
View file @
99568236
...
...
@@ -170,12 +170,16 @@ paths:
type
:
integer
format
:
int32
-
name
:
pageToken
description
:
"
A
page
token,
received
from
a
previous
`ListMemos`
call.
\r\n
Provide
this
to
retrieve
the
subsequent
page."
description
:
|-
A page token, received from a previous `ListMemos` call.
Provide this to retrieve the subsequent page.
in: query
required: false
type: string
-
name
:
filter
description
:
"
Filter
is
used
to
filter
memos
returned
in
the
list.
\r\n
Format:
\"
creator
==
users/{username}
&&
visibilities
==
['PUBLIC',
'PROTECTED']
\"
"
description
:
|-
Filter is used to filter memos returned in the list.
Format: "creator == users/{username} && visibilities == ['PUBLIC', 'PROTECTED']"
in: query
required: false
type: string
...
...
@@ -236,12 +240,17 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
-
name
:
name
description
:
"
name
is
the
name
of
the
user
to
get
stats
for.
\r\n
Format:
users/{username}"
description
:
|-
name is the name of the user to get stats for.
Format: users/{username}
in: query
required: false
type: string
-
name
:
timezone
description
:
"
timezone
location
\r\n
Format:
uses
tz
identifier
\r\n
https://en.wikipedia.org/wiki/List_of_tz_database_time_zones"
description
:
|-
timezone location
Format: uses tz identifier
https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
in: query
required: false
type: string
...
...
@@ -474,7 +483,9 @@ paths:
$ref
:
'
#/definitions/apiv2RowStatus'
creator
:
type
:
string
title
:
"
The
name
of
the
creator.
\r\n
Format:
users/{username}"
title
:
|-
The name of the creator.
Format: users/{username}
creatorId
:
type
:
integer
format
:
int32
...
...
@@ -701,7 +712,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
-
name
:
user
description
:
"
The
creator
of
tags.
\r\n
Format:
users/{username}"
description
:
|-
The creator of tags.
Format: users/{username}
in: query
required: false
type: string
...
...
@@ -725,7 +738,9 @@ paths:
required
:
false
type
:
string
-
name
:
tag.creator
description
:
"
The
creator
of
tags.
\r\n
Format:
users/{username}"
description
:
|-
The creator of tags.
Format: users/{username}
in: query
required: false
type: string
...
...
@@ -765,7 +780,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
-
name
:
user
description
:
"
The
creator
of
tags.
\r\n
Format:
users/{username}"
description
:
|-
The creator of tags.
Format: users/{username}
in: query
required: false
type: string
...
...
@@ -788,7 +805,9 @@ paths:
-
TagService
/api/v2/tags:rename
:
patch
:
summary
:
"
RenameTag
renames
a
tag.
\r\n
All
related
memos
will
be
updated."
summary
:
|-
RenameTag renames a tag.
All related memos will be updated.
operationId: TagService_RenameTag
responses:
"200":
...
...
@@ -801,7 +820,9 @@ paths:
$ref: '#/definitions/googlerpcStatus'
parameters:
- name: user
description
:
"
The
creator
of
tags.
\r\n
Format:
users/{username}"
description: |-
The creator of tags.
Format: users/{username}
in: query
required: false
type: string
...
...
@@ -1025,7 +1046,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
-
name
:
inbox.name
description
:
"
The
name
of
the
inbox.
\r\n
Format:
inboxes/{uid}"
description
:
|-
The name of the inbox.
Format: inboxes/{uid}
in: path
required: true
type: string
...
...
@@ -1069,7 +1092,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
-
name
:
name_1
description
:
"
The
name
of
the
inbox
to
delete.
\r\n
Format:
inboxes/{uid}"
description
:
|-
The name of the inbox to delete.
Format: inboxes/{uid}
in: path
required: true
type: string
...
...
@@ -1091,7 +1116,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
-
name
:
name
description
:
"
The
name
of
the
user.
\r\n
Format:
users/{username}"
description
:
|-
The name of the user.
Format: users/{username}
in: path
required: true
type: string
...
...
@@ -1112,7 +1139,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
-
name
:
name
description
:
"
The
name
of
the
user.
\r\n
Format:
users/{username}"
description
:
|-
The name of the user.
Format: users/{username}
in: path
required: true
type: string
...
...
@@ -1134,7 +1163,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
-
name
:
name
description
:
"
The
name
of
the
user.
\r\n
Format:
users/{username}"
description
:
|-
The name of the user.
Format: users/{username}
in: path
required: true
type: string
...
...
@@ -1155,7 +1186,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
-
name
:
name
description
:
"
The
name
of
the
user.
\r\n
Format:
users/{username}"
description
:
|-
The name of the user.
Format: users/{username}
in: path
required: true
type: string
...
...
@@ -1182,7 +1215,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
-
name
:
name
description
:
"
The
name
of
the
user.
\r\n
Format:
users/{username}"
description
:
|-
The name of the user.
Format: users/{username}
in: path
required: true
type: string
...
...
@@ -1209,7 +1244,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
-
name
:
name
description
:
"
The
name
of
the
user.
\r\n
Format:
users/{username}"
description
:
|-
The name of the user.
Format: users/{username}
in: path
required: true
type: string
...
...
@@ -1231,7 +1268,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
-
name
:
setting.name
description
:
"
The
name
of
the
user.
\r\n
Format:
users/{username}"
description
:
|-
The name of the user.
Format: users/{username}
in: path
required: true
type: string
...
...
@@ -1274,7 +1313,9 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
-
name
:
user.name
description
:
"
The
name
of
the
user.
\r\n
Format:
users/{username}"
description
:
|-
The name of the user.
Format: users/{username}
in: path
required: true
type: string
...
...
@@ -1397,7 +1438,9 @@ definitions:
properties
:
name
:
type
:
string
title
:
"
The
name
of
the
user.
\r\n
Format:
users/{username}"
title
:
|-
The name of the user.
Format: users/{username}
locale
:
type
:
string
description
:
The preferred locale of the user.
...
...
@@ -1582,7 +1625,9 @@ definitions:
additionalProperties
:
type
:
integer
format
:
int32
description
:
"
stats
is
the
stats
of
memo
creating/updating
activities.
\r\n
key
is
the
year-month-day
string.
e.g.
\"
2020-01-01
\"
."
description
:
|-
stats is the stats of memo creating/updating activities.
key is the year-month-day string. e.g. "2020-01-01".
v2GetUserResponse
:
type
:
object
properties
:
...
...
@@ -1608,7 +1653,9 @@ definitions:
properties
:
name
:
type
:
string
title
:
"
The
name
of
the
inbox.
\r\n
Format:
inboxes/{uid}"
title
:
|-
The name of the inbox.
Format: inboxes/{uid}
sender
:
type
:
string
title
:
'
Format:
users/{username}'
...
...
@@ -1681,7 +1728,9 @@ definitions:
$ref
:
'
#/definitions/v2Memo'
nextPageToken
:
type
:
string
description
:
"
A
token,
which
can
be
sent
as
`page_token`
to
retrieve
the
next
page.
\r\n
If
this
field
is
omitted,
there
are
no
subsequent
pages."
description
:
|-
A token, which can be sent as `page_token` to retrieve the next page.
If this field is omitted, there are no subsequent pages.
v2ListResourcesResponse
:
type
:
object
properties
:
...
...
@@ -1736,7 +1785,9 @@ definitions:
$ref
:
'
#/definitions/apiv2RowStatus'
creator
:
type
:
string
title
:
"
The
name
of
the
creator.
\r\n
Format:
users/{username}"
title
:
|-
The name of the creator.
Format: users/{username}
creatorId
:
type
:
integer
format
:
int32
...
...
@@ -1847,7 +1898,9 @@ definitions:
type
:
string
creator
:
type
:
string
title
:
"
The
creator
of
tags.
\r\n
Format:
users/{username}"
title
:
|-
The creator of tags.
Format: users/{username}
v2UpdateInboxResponse
:
type
:
object
properties
:
...
...
@@ -1898,7 +1951,9 @@ definitions:
properties
:
name
:
type
:
string
title
:
"
The
name
of
the
user.
\r\n
Format:
users/{username}"
title
:
|-
The name of the user.
Format: users/{username}
id
:
type
:
integer
format
:
int32
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment