|
191 | 191 | }
|
192 | 192 | }
|
193 | 193 | },
|
| 194 | + "GetStatusRequest": { |
| 195 | + "description": "Defines the parameters for retrieving the status of the HTLC swap.", |
| 196 | + "required": [ |
| 197 | + "ids", |
| 198 | + "web3SigningCredential", |
| 199 | + "connectorId", |
| 200 | + "keychainId" |
| 201 | + ], |
| 202 | + "additionalProperties": false, |
| 203 | + "properties": { |
| 204 | + "ids": { |
| 205 | + "type": "array", |
| 206 | + "items": { |
| 207 | + "type": "string" |
| 208 | + } |
| 209 | + }, |
| 210 | + "web3SigningCredential": { |
| 211 | + "$ref": "https://raw.githubusercontent.com/hyperledger/cactus/v0.8.0/packages/cactus-plugin-ledger-connector-besu/src/main/json/openapi.json#/components/schemas/Web3SigningCredential" |
| 212 | + }, |
| 213 | + "connectorId": { |
| 214 | + "type": "string" |
| 215 | + }, |
| 216 | + "keychainId": { |
| 217 | + "type": "string" |
| 218 | + } |
| 219 | + } |
| 220 | + }, |
| 221 | + "GetSingleStatusRequest": { |
| 222 | + "description": "Defines the parameters for retrieving the single status of the HTLC swap.", |
| 223 | + "required": [ |
| 224 | + "id", |
| 225 | + "web3SigningCredential", |
| 226 | + "connectorId", |
| 227 | + "keychainId" |
| 228 | + ], |
| 229 | + "additionalProperties": false, |
| 230 | + "properties": { |
| 231 | + "id": { |
| 232 | + "type": "string" |
| 233 | + }, |
| 234 | + "web3SigningCredential": { |
| 235 | + "$ref": "https://raw.githubusercontent.com/hyperledger/cactus/v0.8.0/packages/cactus-plugin-ledger-connector-besu/src/main/json/openapi.json#/components/schemas/Web3SigningCredential" |
| 236 | + }, |
| 237 | + "connectorId": { |
| 238 | + "type": "string" |
| 239 | + }, |
| 240 | + "keychainId": { |
| 241 | + "type": "string" |
| 242 | + } |
| 243 | + } |
| 244 | + }, |
194 | 245 | "InitializeRequest": {
|
195 | 246 | "type": "object",
|
196 | 247 | "required": [
|
|
325 | 376 | }
|
326 | 377 | },
|
327 | 378 | "/api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/get-status": {
|
328 |
| - "get": { |
| 379 | + "post": { |
329 | 380 | "x-hyperledger-cactus": {
|
330 | 381 | "http": {
|
331 |
| - "verbLowerCase": "get", |
| 382 | + "verbLowerCase": "post", |
332 | 383 | "path": "/api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/get-status"
|
333 | 384 | }
|
334 | 385 | },
|
335 | 386 | "operationId": "getStatusV1",
|
336 |
| - "summary": "Get array of status of a hashtimelock contract, the status are ( 0 - Invalid, 1 - Active, 2 - Refunded, 3 - Withdrawn, 4 - Expired)", |
337 |
| - "parameters": [ |
338 |
| - { |
339 |
| - "name": "ids", |
340 |
| - "in": "query", |
341 |
| - "required": true, |
342 |
| - "schema": { |
343 |
| - "type": "array", |
344 |
| - "items": { |
345 |
| - "type": "string", |
346 |
| - "format": "bytes32" |
| 387 | + "requestBody": { |
| 388 | + "content": { |
| 389 | + "application/json": { |
| 390 | + "schema": { |
| 391 | + "$ref": "#/components/schemas/GetStatusRequest" |
347 | 392 | }
|
348 | 393 | }
|
349 |
| - }, |
350 |
| - { |
351 |
| - "name": "web3SigningCredential", |
352 |
| - "in": "query", |
353 |
| - "required": true, |
354 |
| - "schema": { |
355 |
| - "$ref": "https://raw.githubusercontent.com/hyperledger/cactus/v0.8.0/packages/cactus-plugin-ledger-connector-besu/src/main/json/openapi.json#/components/schemas/Web3SigningCredential" |
356 |
| - } |
357 |
| - }, |
358 |
| - { |
359 |
| - "name": "connectorId", |
360 |
| - "in": "query", |
361 |
| - "required": true, |
362 |
| - "schema": { |
363 |
| - "type": "string" |
364 |
| - } |
365 |
| - }, |
366 |
| - { |
367 |
| - "name": "keychainId", |
368 |
| - "in": "query", |
369 |
| - "required": true, |
370 |
| - "schema": { |
371 |
| - "type": "string" |
372 |
| - } |
373 | 394 | }
|
374 |
| - ], |
| 395 | + }, |
375 | 396 | "responses": {
|
376 | 397 | "200": {
|
377 | 398 | "description": "OK",
|
|
381 | 402 | }
|
382 | 403 | },
|
383 | 404 | "/api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/get-single-status": {
|
384 |
| - "get": { |
| 405 | + "post": { |
385 | 406 | "x-hyperledger-cactus": {
|
386 | 407 | "http": {
|
387 |
| - "verbLowerCase": "get", |
| 408 | + "verbLowerCase": "post", |
388 | 409 | "path": "/api/v1/plugins/@hyperledger/cactus-plugin-htlc-eth-besu-erc20/get-single-status"
|
389 | 410 | }
|
390 | 411 | },
|
391 | 412 | "operationId": "getSingleStatusV1",
|
392 |
| - "summary": "Get a status of a hashtimelock contract, the status are ( 0 - Invalid, 1 - Active, 2 - Refunded, 3 - Withdrawn, 4 - Expired)", |
393 |
| - "parameters": [ |
394 |
| - { |
395 |
| - "name": "id", |
396 |
| - "in": "query", |
397 |
| - "required": true, |
398 |
| - "schema": { |
399 |
| - "type": "string", |
400 |
| - "format": "bytes32" |
401 |
| - } |
402 |
| - }, |
403 |
| - { |
404 |
| - "name": "web3SigningCredential", |
405 |
| - "in": "query", |
406 |
| - "required": true, |
407 |
| - "schema": { |
408 |
| - "$ref": "https://raw.githubusercontent.com/hyperledger/cactus/v0.8.0/packages/cactus-plugin-ledger-connector-besu/src/main/json/openapi.json#/components/schemas/Web3SigningCredential" |
409 |
| - } |
410 |
| - }, |
411 |
| - { |
412 |
| - "name": "connectorId", |
413 |
| - "in": "query", |
414 |
| - "required": true, |
415 |
| - "schema": { |
416 |
| - "type": "string" |
417 |
| - } |
418 |
| - }, |
419 |
| - { |
420 |
| - "name": "keychainId", |
421 |
| - "in": "query", |
422 |
| - "required": true, |
423 |
| - "schema": { |
424 |
| - "type": "string" |
| 413 | + "requestBody": { |
| 414 | + "content": { |
| 415 | + "application/json": { |
| 416 | + "schema": { |
| 417 | + "$ref": "#/components/schemas/GetSingleStatusRequest" |
| 418 | + } |
425 | 419 | }
|
426 | 420 | }
|
427 |
| - ], |
| 421 | + }, |
428 | 422 | "responses": {
|
429 | 423 | "200": {
|
430 | 424 | "description": "OK",
|
|
0 commit comments