github.com/litesolutions/justifay-api@v1.0.0-2.0.20220707114139-46f28a909481/third_party/OpenAPI/iam/iam.swagger.json (about) 1 { 2 "swagger": "2.0", 3 "info": { 4 "title": "Resonate Service Documentation: IAM", 5 "version": "2.0.1" 6 }, 7 "schemes": [ 8 "https" 9 ], 10 "consumes": [ 11 "application/json" 12 ], 13 "produces": [ 14 "application/json" 15 ], 16 "paths": { 17 "/api/v1/refresh": { 18 "post": { 19 "summary": "Refresh a token", 20 "description": "Provide token and get refreshed token response ", 21 "operationId": "ResonateIAM_Refresh", 22 "responses": { 23 "200": { 24 "description": "A successful response.", 25 "schema": { 26 "$ref": "#/definitions/iamRefreshResp" 27 } 28 }, 29 "default": { 30 "description": "An unexpected error response.", 31 "schema": { 32 "$ref": "#/definitions/rpcStatus" 33 } 34 } 35 }, 36 "parameters": [ 37 { 38 "name": "body", 39 "in": "body", 40 "required": true, 41 "schema": { 42 "$ref": "#/definitions/iamRefreshReq" 43 } 44 } 45 ], 46 "tags": [ 47 "IAM" 48 ] 49 } 50 }, 51 "/api/v1/token": { 52 "post": { 53 "summary": "Request a token", 54 "description": "Provide credentials and get token response ", 55 "operationId": "ResonateIAM_Auth", 56 "responses": { 57 "200": { 58 "description": "A successful response.", 59 "schema": { 60 "$ref": "#/definitions/iamAuthResp" 61 } 62 }, 63 "default": { 64 "description": "An unexpected error response.", 65 "schema": { 66 "$ref": "#/definitions/rpcStatus" 67 } 68 } 69 }, 70 "parameters": [ 71 { 72 "name": "body", 73 "in": "body", 74 "required": true, 75 "schema": { 76 "$ref": "#/definitions/iamAuthReq" 77 } 78 } 79 ], 80 "tags": [ 81 "IAM" 82 ], 83 "security": [] 84 } 85 } 86 }, 87 "definitions": { 88 "iamAuthReq": { 89 "type": "object", 90 "properties": { 91 "auth": { 92 "type": "string", 93 "title": "Required" 94 }, 95 "password": { 96 "type": "string", 97 "title": "Required" 98 } 99 }, 100 "title": "Password authentication request" 101 }, 102 "iamAuthResp": { 103 "type": "object", 104 "properties": { 105 "token": { 106 "type": "string", 107 "title": "Access token" 108 }, 109 "refreshToken": { 110 "type": "string", 111 "title": "Refresh token" 112 } 113 }, 114 "title": "Password authentication response" 115 }, 116 "iamRefreshReq": { 117 "type": "object", 118 "properties": { 119 "token": { 120 "type": "string", 121 "title": "Required" 122 } 123 }, 124 "title": "Refresh token request" 125 }, 126 "iamRefreshResp": { 127 "type": "object", 128 "properties": { 129 "token": { 130 "type": "string", 131 "title": "Access token" 132 } 133 }, 134 "title": "Refresh token response" 135 }, 136 "protobufAny": { 137 "type": "object", 138 "properties": { 139 "typeUrl": { 140 "type": "string" 141 }, 142 "value": { 143 "type": "string", 144 "format": "byte" 145 } 146 } 147 }, 148 "rpcStatus": { 149 "type": "object", 150 "properties": { 151 "code": { 152 "type": "integer", 153 "format": "int32" 154 }, 155 "message": { 156 "type": "string" 157 }, 158 "details": { 159 "type": "array", 160 "items": { 161 "$ref": "#/definitions/protobufAny" 162 } 163 } 164 } 165 } 166 }, 167 "externalDocs": { 168 "description": "gRPC-gateway resonate-user-api repository", 169 "url": "https://github.com/resonatecoop/user-api" 170 } 171 }