github.com/decred/dcrlnd@v0.7.6/lnrpc/verrpc/verrpc.swagger.json (about) 1 { 2 "swagger": "2.0", 3 "info": { 4 "title": "verrpc/verrpc.proto", 5 "version": "version not set" 6 }, 7 "tags": [ 8 { 9 "name": "Versioner" 10 } 11 ], 12 "consumes": [ 13 "application/json" 14 ], 15 "produces": [ 16 "application/json" 17 ], 18 "paths": { 19 "/v2/versioner/version": { 20 "get": { 21 "summary": "lncli: `version`\nGetVersion returns the current version and build information of the running\ndaemon.", 22 "operationId": "Versioner_GetVersion", 23 "responses": { 24 "200": { 25 "description": "A successful response.", 26 "schema": { 27 "$ref": "#/definitions/verrpcVersion" 28 } 29 }, 30 "default": { 31 "description": "An unexpected error response.", 32 "schema": { 33 "$ref": "#/definitions/rpcStatus" 34 } 35 } 36 }, 37 "tags": [ 38 "Versioner" 39 ] 40 } 41 } 42 }, 43 "definitions": { 44 "protobufAny": { 45 "type": "object", 46 "properties": { 47 "type_url": { 48 "type": "string" 49 }, 50 "value": { 51 "type": "string", 52 "format": "byte" 53 } 54 } 55 }, 56 "rpcStatus": { 57 "type": "object", 58 "properties": { 59 "code": { 60 "type": "integer", 61 "format": "int32" 62 }, 63 "message": { 64 "type": "string" 65 }, 66 "details": { 67 "type": "array", 68 "items": { 69 "$ref": "#/definitions/protobufAny" 70 } 71 } 72 } 73 }, 74 "verrpcVersion": { 75 "type": "object", 76 "properties": { 77 "commit": { 78 "type": "string", 79 "description": "A verbose description of the daemon's commit." 80 }, 81 "commit_hash": { 82 "type": "string", 83 "description": "The SHA1 commit hash that the daemon is compiled with." 84 }, 85 "version": { 86 "type": "string", 87 "description": "The semantic version." 88 }, 89 "app_major": { 90 "type": "integer", 91 "format": "int64", 92 "description": "The major application version." 93 }, 94 "app_minor": { 95 "type": "integer", 96 "format": "int64", 97 "description": "The minor application version." 98 }, 99 "app_patch": { 100 "type": "integer", 101 "format": "int64", 102 "description": "The application patch number." 103 }, 104 "app_pre_release": { 105 "type": "string", 106 "description": "The application pre-release modifier, possibly empty." 107 }, 108 "build_tags": { 109 "type": "array", 110 "items": { 111 "type": "string" 112 }, 113 "description": "The list of build tags that were supplied during compilation." 114 }, 115 "go_version": { 116 "type": "string", 117 "description": "The version of go that compiled the executable." 118 } 119 } 120 } 121 } 122 }