Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 34 additions & 53 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -514,25 +514,6 @@ const docTemplate = `{
}
}
},
"/auth/csrf": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Auth"
],
"summary": "Issue CSRF token",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/dto.CsrfResponse"
}
}
}
}
},
"/auth/forgot": {
"post": {
"consumes": [
Expand All @@ -547,15 +528,12 @@ const docTemplate = `{
"summary": "Request password reset",
"parameters": [
{
"description": "{email: string}",
"description": "Forgot Password Info",
"name": "request",
"in": "body",
"required": true,
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
"$ref": "#/definitions/dto.ForgotPasswordRequest"
}
}
],
Expand Down Expand Up @@ -611,19 +589,6 @@ const docTemplate = `{
}
}
},
"/auth/logout": {
"post": {
"tags": [
"Auth"
],
"summary": "Log out",
"responses": {
"204": {
"description": "No Content"
}
}
}
},
"/auth/me": {
"get": {
"tags": [
Expand Down Expand Up @@ -845,15 +810,12 @@ const docTemplate = `{
"summary": "Reset password",
"parameters": [
{
"description": "{token: string, password: string}",
"description": "Reset Password Info",
"name": "request",
"in": "body",
"required": true,
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
"$ref": "#/definitions/dto.ResetPasswordRequest"
}
}
],
Expand Down Expand Up @@ -2028,17 +1990,6 @@ const docTemplate = `{
}
}
},
"dto.CsrfResponse": {
"type": "object",
"properties": {
"csrf": {
"type": "string"
},
"signups_enabled": {
"type": "boolean"
}
}
},
"dto.DashboardTrendItem": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -2203,6 +2154,18 @@ const docTemplate = `{
}
}
},
"dto.ForgotPasswordRequest": {
"type": "object",
"required": [
"email"
],
"properties": {
"email": {
"type": "string",
"example": "user@fsv-wh.de"
}
}
},
"dto.Link": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -2419,6 +2382,24 @@ const docTemplate = `{
}
}
},
"dto.ResetPasswordRequest": {
"type": "object",
"required": [
"password",
"token"
],
"properties": {
"password": {
"type": "string",
"maxLength": 72,
"minLength": 8,
"example": "secret123"
},
"token": {
"type": "string"
}
}
},
"dto.SearchResult": {
"type": "object",
"properties": {
Expand Down
87 changes: 34 additions & 53 deletions docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -507,25 +507,6 @@
}
}
},
"/auth/csrf": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Auth"
],
"summary": "Issue CSRF token",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/dto.CsrfResponse"
}
}
}
}
},
"/auth/forgot": {
"post": {
"consumes": [
Expand All @@ -540,15 +521,12 @@
"summary": "Request password reset",
"parameters": [
{
"description": "{email: string}",
"description": "Forgot Password Info",
"name": "request",
"in": "body",
"required": true,
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
"$ref": "#/definitions/dto.ForgotPasswordRequest"
}
}
],
Expand Down Expand Up @@ -604,19 +582,6 @@
}
}
},
"/auth/logout": {
"post": {
"tags": [
"Auth"
],
"summary": "Log out",
"responses": {
"204": {
"description": "No Content"
}
}
}
},
"/auth/me": {
"get": {
"tags": [
Expand Down Expand Up @@ -838,15 +803,12 @@
"summary": "Reset password",
"parameters": [
{
"description": "{token: string, password: string}",
"description": "Reset Password Info",
"name": "request",
"in": "body",
"required": true,
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
"$ref": "#/definitions/dto.ResetPasswordRequest"
}
}
],
Expand Down Expand Up @@ -2021,17 +1983,6 @@
}
}
},
"dto.CsrfResponse": {
"type": "object",
"properties": {
"csrf": {
"type": "string"
},
"signups_enabled": {
"type": "boolean"
}
}
},
"dto.DashboardTrendItem": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -2196,6 +2147,18 @@
}
}
},
"dto.ForgotPasswordRequest": {
"type": "object",
"required": [
"email"
],
"properties": {
"email": {
"type": "string",
"example": "user@fsv-wh.de"
}
}
},
"dto.Link": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -2412,6 +2375,24 @@
}
}
},
"dto.ResetPasswordRequest": {
"type": "object",
"required": [
"password",
"token"
],
"properties": {
"password": {
"type": "string",
"maxLength": 72,
"minLength": 8,
"example": "secret123"
},
"token": {
"type": "string"
}
}
},
"dto.SearchResult": {
"type": "object",
"properties": {
Expand Down
Loading