Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "basePath": "/",
- "definitions": {
- "CanUserSignDocumentRequest": {
- "properties": {
- "user_id": {
- "type": "string"
- }
- },
- "type": "object"
- },
- "CanUserSignDocumentResponse": {
- "properties": {
- "data": {
- "properties": {
- "can_user_sign_document": {
- "type": "boolean"
- }
- },
- "type": "object"
- },
- "success": {
- "type": "boolean"
- }
- },
- "type": "object"
- },
- "ErrorResponse": {
- "default": "{\"errors\": [{\"code\": \"400\",\"description\": \"Bad request\"}],\"success\": false}",
- "properties": {
- "errors": {
- "items": {
- "$ref": "#/definitions/ErrorResponse_Error"
- },
- "type": "array"
- },
- "success": {
- "type": "boolean"
- }
- },
- "type": "object"
- },
- "ErrorResponse_Error": {
- "properties": {
- "code": {
- "type": "string"
- },
- "data": {
- "$ref": "#/definitions/Struct"
- },
- "description": {
- "type": "string"
- }
- },
- "type": "object"
- },
- "SignDocumentRequest": {
- "properties": {
- "document_type": {
- "type": "string"
- },
- "session_id": {
- "type": "string"
- },
- "time": {
- "$ref": "#/definitions/Timestamp"
- },
- "user_id": {
- "type": "string"
- }
- },
- "type": "object"
- },
- "SignDocumentResponse": {
- "properties": {
- "data": {
- "properties": {
- "document_id": {
- "format": "int32",
- "type": "integer"
- },
- "document_url": {
- "type": "string"
- },
- "hash": {
- "type": "string"
- },
- "salt": {
- "type": "string"
- }
- },
- "type": "object"
- },
- "success": {
- "type": "boolean"
- }
- },
- "type": "object"
- },
- "Struct": {
- "properties": {
- "fields": {
- "additionalProperties": {
- "$ref": "#/definitions/Value"
- },
- "type": "object"
- }
- },
- "type": "object"
- },
- "Timestamp": {
- "properties": {
- "nanos": {
- "format": "int32",
- "type": "integer"
- },
- "seconds": {
- "format": "int64",
- "type": "integer"
- }
- },
- "type": "object"
- },
- "Value": {
- "type": "object"
- }
- },
- "info": {
- "contact": {
- "name": ""
- },
- "description": "desc... =)",
- "license": {
- "name": ""
- },
- "termsOfService": "",
- "title": "Docs API",
- "version": "1.0"
- },
- "paths": {
- "/canUserSignDocument": {
- "post": {
- "description": "Can user sign document",
- "parameters": [
- {
- "in": "body",
- "name": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/CanUserSignDocumentRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "Request success",
- "schema": {
- "$ref": "#/definitions/CanUserSignDocumentResponse"
- }
- },
- "400": {
- "description": "Bad request",
- "schema": {
- "$ref": "#/definitions/ErrorResponse"
- }
- },
- "401": {
- "description": "Unauthorized"
- },
- "403": {
- "description": "Forbidden"
- },
- "404": {
- "description": "Not found"
- },
- "500": {
- "description": "Internal server error"
- }
- },
- "summary": "",
- "tags": [
- "Private"
- ]
- }
- },
- "/signDocument": {
- "post": {
- "description": "Sign document",
- "parameters": [
- {
- "in": "body",
- "name": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/SignDocumentRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "Request success",
- "schema": {
- "$ref": "#/definitions/SignDocumentResponse"
- }
- },
- "400": {
- "description": "Bad request",
- "schema": {
- "$ref": "#/definitions/ErrorResponse"
- }
- },
- "401": {
- "description": "Unauthorized"
- },
- "403": {
- "description": "Forbidden"
- },
- "404": {
- "description": "Not found"
- },
- "500": {
- "description": "Internal server error"
- }
- },
- "summary": "",
- "tags": [
- "Private"
- ]
- }
- }
- },
- "schemes": [
- "http",
- "https"
- ],
- "swagger": "2.0"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement