Draft: feat login

This commit is contained in:
2025-09-05 03:59:25 +08:00
parent 6d7074198f
commit b190a50e90
19 changed files with 589 additions and 83 deletions

View File

@@ -1 +1,53 @@
{"swagger":"2.0","info":{"title":"NASAOJ v3","contact":{},"license":{"name":"0BSD"},"version":"2.0"},"basePath":"/","paths":{}}
{
"swagger": "2.0",
"info": {
"title": "Intro. to Network Programming Game",
"contact": {},
"license": {
"name": "0BSD"
},
"version": "0.0.1-alpha"
},
"basePath": "/",
"paths": {
"/auth/register": {
"post": {
"consumes": [
"application/json"
],
"parameters": [
{
"description": "query params",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.User"
}
}
],
"responses": {
"200": {
"description": "OK"
},
"400": {
"description": "Bad Request"
}
}
}
}
},
"definitions": {
"models.User": {
"type": "object",
"properties": {
"password": {
"type": "string"
},
"username": {
"type": "string"
}
}
}
}
}