docs(project): 🧑‍💻 update swagger

master
Xeronith 2022-10-10 12:33:35 +03:30
rodzic 1425a84580
commit 5442b61452
3 zmienionych plików z 157 dodań i 0 usunięć

Wyświetl plik

@ -48,6 +48,30 @@ const docTemplate = `{
}
}
},
"/api/v1/feed/types": {
"get": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Feed"
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
},
"/api/v1/login": {
"post": {
"consumes": [
@ -138,6 +162,42 @@ const docTemplate = `{
}
}
},
"/api/v1/users/{username}/feed": {
"get": {
"security": [
{
"JWT": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Feed"
],
"parameters": [
{
"type": "string",
"description": "Username",
"name": "username",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "object",
"additionalProperties": true
}
}
}
}
},
"/api/v1/verify": {
"post": {
"consumes": [

Wyświetl plik

@ -40,6 +40,30 @@
}
}
},
"/api/v1/feed/types": {
"get": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Feed"
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
},
"/api/v1/login": {
"post": {
"consumes": [
@ -130,6 +154,42 @@
}
}
},
"/api/v1/users/{username}/feed": {
"get": {
"security": [
{
"JWT": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Feed"
],
"parameters": [
{
"type": "string",
"description": "Username",
"name": "username",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "object",
"additionalProperties": true
}
}
}
}
},
"/api/v1/verify": {
"post": {
"consumes": [

Wyświetl plik

@ -115,6 +115,21 @@ paths:
type: object
tags:
- WebFinger
/api/v1/feed/types:
get:
consumes:
- application/json
produces:
- application/json
responses:
"200":
description: OK
schema:
items:
type: string
type: array
tags:
- Feed
/api/v1/login:
post:
consumes:
@ -170,6 +185,28 @@ paths:
$ref: '#/definitions/SignupResponse'
tags:
- Authentication
/api/v1/users/{username}/feed:
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
security:
- JWT: []
tags:
- Feed
/api/v1/verify:
post:
consumes: