docs(project): 🧑‍💻 update swagger

master
Xeronith 2022-09-30 23:09:50 +03:30
rodzic aa0ac76f5b
commit a13efc46a4
3 zmienionych plików z 164 dodań i 0 usunięć

Wyświetl plik

@ -200,6 +200,68 @@ const docTemplate = `{
}
}
}
},
"/u/{username}/followers": {
"get": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"ActivityPub"
],
"parameters": [
{
"type": "string",
"description": "Username",
"name": "username",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "object",
"additionalProperties": true
}
}
}
}
},
"/u/{username}/following": {
"get": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"ActivityPub"
],
"parameters": [
{
"type": "string",
"description": "Username",
"name": "username",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "object",
"additionalProperties": true
}
}
}
}
}
},
"definitions": {

Wyświetl plik

@ -192,6 +192,68 @@
}
}
}
},
"/u/{username}/followers": {
"get": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"ActivityPub"
],
"parameters": [
{
"type": "string",
"description": "Username",
"name": "username",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "object",
"additionalProperties": true
}
}
}
}
},
"/u/{username}/following": {
"get": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"ActivityPub"
],
"parameters": [
{
"type": "string",
"description": "Username",
"name": "username",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "object",
"additionalProperties": true
}
}
}
}
}
},
"definitions": {

Wyświetl plik

@ -210,6 +210,46 @@ paths:
type: object
tags:
- ActivityPub
/u/{username}/followers:
get:
consumes:
- application/json
parameters:
- description: Username
in: path
name: username
required: true
type: string
produces:
- application/json
responses:
"200":
description: OK
schema:
additionalProperties: true
type: object
tags:
- ActivityPub
/u/{username}/following:
get:
consumes:
- application/json
parameters:
- description: Username
in: path
name: username
required: true
type: string
produces:
- application/json
responses:
"200":
description: OK
schema:
additionalProperties: true
type: object
tags:
- ActivityPub
securityDefinitions:
JWT:
description: 'Example: Bearer {Your JWT Token}'