feat: update docs, fix repository, full working github callback, fix healthcheck in docker file, update makefile
This commit is contained in:
@@ -6,7 +6,7 @@ definitions:
|
||||
properties:
|
||||
content:
|
||||
type: string
|
||||
createdAt:
|
||||
created_at:
|
||||
type: string
|
||||
id:
|
||||
type: integer
|
||||
@@ -32,21 +32,45 @@ definitions:
|
||||
info:
|
||||
contact: {}
|
||||
paths:
|
||||
/auth/github:
|
||||
get:
|
||||
description: Redirects to GitHub authorization
|
||||
responses:
|
||||
"302":
|
||||
description: Found
|
||||
summary: Start GitHub OAuth login
|
||||
tags:
|
||||
- auth
|
||||
/callback/github:
|
||||
get:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Callback for oauth2 providers
|
||||
description: Exchanges authorization code for access token
|
||||
parameters:
|
||||
- description: Authorization code
|
||||
in: query
|
||||
name: code
|
||||
required: true
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
description: Access token
|
||||
schema:
|
||||
additionalProperties: true
|
||||
type: object
|
||||
"400":
|
||||
description: Missing code
|
||||
schema:
|
||||
additionalProperties:
|
||||
type: string
|
||||
type: object
|
||||
summary: Callback for oauth2 providers
|
||||
"500":
|
||||
description: Exchange failed
|
||||
schema:
|
||||
additionalProperties:
|
||||
type: string
|
||||
type: object
|
||||
summary: GitHub OAuth callback
|
||||
tags:
|
||||
- auth
|
||||
/posts:
|
||||
|
||||
Reference in New Issue
Block a user