feat: update docs, fix repository, full working github callback, fix healthcheck in docker file, update makefile

This commit is contained in:
d3m0k1d
2026-02-12 23:57:58 +03:00
parent bce5ad2f9a
commit d9cf0ade7f
9 changed files with 182 additions and 34 deletions

View File

@@ -4,22 +4,58 @@
"contact": {}
},
"paths": {
"/auth/github": {
"get": {
"description": "Redirects to GitHub authorization",
"tags": [
"auth"
],
"summary": "Start GitHub OAuth login",
"responses": {
"302": {
"description": "Found"
}
}
}
},
"/callback/github": {
"get": {
"description": "Callback for oauth2 providers",
"consumes": [
"application/json"
],
"description": "Exchanges authorization code for access token",
"produces": [
"application/json"
],
"tags": [
"auth"
],
"summary": "Callback for oauth2 providers",
"summary": "GitHub OAuth callback",
"parameters": [
{
"type": "string",
"description": "Authorization code",
"name": "code",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"description": "Access token",
"schema": {
"type": "object",
"additionalProperties": true
}
},
"400": {
"description": "Missing code",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Exchange failed",
"schema": {
"type": "object",
"additionalProperties": {
@@ -216,7 +252,7 @@
"content": {
"type": "string"
},
"createdAt": {
"created_at": {
"type": "string"
},
"id": {