| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- {
- "swagger": "2.0",
- "info": {
- "title": "auth.proto",
- "version": "version not set"
- },
- "schemes": [
- "http",
- "https"
- ],
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "paths": {
- "/api/v1/auth/authenticate": {
- "post": {
- "operationId": "Authenticate",
- "responses": {
- "200": {
- "description": "",
- "schema": {
- "$ref": "#/definitions/pbAuthAuthenticateResponse"
- }
- }
- },
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/pbAuthAuthenticateRequest"
- }
- }
- ],
- "tags": [
- "AuthService"
- ]
- }
- },
- "/api/v1/auth/status": {
- "get": {
- "operationId": "Status",
- "responses": {
- "200": {
- "description": "",
- "schema": {
- "$ref": "#/definitions/pbAuthStatusResponse"
- }
- }
- },
- "tags": [
- "AuthService"
- ]
- }
- }
- },
- "definitions": {
- "UserResponseUser": {
- "type": "object",
- "properties": {
- "username": {
- "type": "string"
- },
- "server_serial_number": {
- "type": "string"
- },
- "cert": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "ip_net": {
- "type": "string"
- },
- "no_gw": {
- "type": "boolean",
- "format": "boolean"
- },
- "host_id": {
- "type": "integer",
- "format": "int64"
- },
- "is_admin": {
- "type": "boolean",
- "format": "boolean"
- },
- "is_connected": {
- "type": "boolean",
- "format": "boolean"
- },
- "connected_since": {
- "type": "string"
- },
- "bytes_sent": {
- "type": "string",
- "format": "uint64"
- },
- "bytes_received": {
- "type": "string",
- "format": "uint64"
- },
- "expires_at": {
- "type": "string"
- }
- }
- },
- "pbAuthAuthenticateRequest": {
- "type": "object",
- "properties": {
- "username": {
- "type": "string"
- },
- "password": {
- "type": "string"
- }
- }
- },
- "pbAuthAuthenticateResponse": {
- "type": "object",
- "properties": {
- "token": {
- "type": "string"
- }
- }
- },
- "pbAuthStatusResponse": {
- "type": "object",
- "properties": {
- "user": {
- "$ref": "#/definitions/UserResponseUser"
- },
- "is_root": {
- "type": "boolean",
- "format": "boolean"
- }
- }
- }
- }
- }
|