{ "openapi": "3.0.2", "info": { "title": "My API", "version": "1.0.0", "description": "OpenAPI schema cho Auth vĂ  FaceCheck" }, "paths": { "/face/check": { "get": { "summary": "Face check", "operationId": "face_check", "tags": ["face"], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "example": { "msg": "face check" } } } } } } }, "/auth/login": { "post": { "summary": "User login", "operationId": "auth_login", "tags": ["auth"], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "username": { "type": "string" }, "password": { "type": "string" } }, "required": ["username", "password"] } } } }, "responses": { "200": { "description": "Successful login", "content": { "application/json": { "example": { "msg": "User demo logged in" } } } } } } }, "/auth/register": { "post": { "summary": "User register", "operationId": "auth_register", "tags": ["auth"], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "username": { "type": "string" }, "password": { "type": "string" } }, "required": ["username", "password"] } } } }, "responses": { "200": { "description": "Successful register", "content": { "application/json": { "example": { "msg": "User demo registered" } } } } } } } } }