Created
June 20, 2022 12:05
-
-
Save xstefank/41ce35174ad6ecb0cbd405dbe6647264 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8a9,10 | |
> servers: | |
> - url: /lra-coordinator | |
30a33,43 | |
> "200": | |
> description: The LRAData json array which is known to coordinator | |
> headers: | |
> Narayana-LRA-API-version: | |
> $ref: '#/components/headers/Narayana-LRA-API-version' | |
> content: | |
> application/json: | |
> schema: | |
> type: array | |
> items: | |
> $ref: '#/components/schemas/LRAData' | |
47,57d59 | |
< "200": | |
< description: The LRAData json array which is known to coordinator | |
< headers: | |
< Narayana-LRA-API-version: | |
< $ref: '#/components/headers/Narayana-LRA-API-version' | |
< content: | |
< application/json: | |
< schema: | |
< type: array | |
< items: | |
< $ref: '#/components/schemas/LRAData' | |
257,260c259,263 | |
< description: "Specifies the maximum time in milli seconds that the LRA will\ | |
< \ exist for.\nIf the LRA is terminated because of a timeout, the LRA URL\ | |
< \ is deleted.\nAll further invocations on the URL will return 404.\nThe\ | |
< \ invoker can assume this was equivalent to a compensate operation." | |
--- | |
> description: |- | |
> Specifies the maximum time in milli seconds that the LRA will exist for. | |
> If the LRA is terminated because of a timeout, the LRA URL is deleted. | |
> All further invocations on the URL will return 404. | |
> The invoker can assume this was equivalent to a compensate operation. | |
311a315,324 | |
> "200": | |
> description: The LRA exists and the information is packed as JSON in the | |
> content body. | |
> headers: | |
> Narayana-LRA-API-version: | |
> $ref: '#/components/headers/Narayana-LRA-API-version' | |
> content: | |
> application/json: | |
> schema: | |
> $ref: '#/components/schemas/LRAData' | |
325,334d337 | |
< "200": | |
< description: The LRA exists and the information is packed as JSON in the | |
< content body. | |
< headers: | |
< Narayana-LRA-API-version: | |
< $ref: '#/components/headers/Narayana-LRA-API-version' | |
< content: | |
< application/json: | |
< schema: | |
< $ref: '#/components/schemas/LRAData' | |
376a380,397 | |
> "200": | |
> description: The participant was successfully registered with the LRA | |
> headers: | |
> Long-Running-Action-Recovery: | |
> description: |- | |
> It contains a unique resource reference for that participant: | |
> - HTTP GET on the reference returns the original participant URL; | |
> - HTTP PUT on the reference will overwrite the old participant URL with the new one supplied. | |
> style: simple | |
> schema: | |
> type: string | |
> Narayana-LRA-API-version: | |
> $ref: '#/components/headers/Narayana-LRA-API-version' | |
> content: | |
> application/json: | |
> schema: | |
> description: A URI representing the recovery id of this join request | |
> type: string | |
414,431d434 | |
< "200": | |
< description: The participant was successfully registered with the LRA | |
< headers: | |
< Long-Running-Action-Recovery: | |
< description: |- | |
< It contains a unique resource reference for that participant: | |
< - HTTP GET on the reference returns the original participant URL; | |
< - HTTP PUT on the reference will overwrite the old participant URL with the new one supplied. | |
< style: simple | |
< schema: | |
< type: string | |
< Narayana-LRA-API-version: | |
< $ref: '#/components/headers/Narayana-LRA-API-version' | |
< content: | |
< application/json: | |
< schema: | |
< description: A URI representing the recovery id of this join request | |
< type: string | |
450a454,462 | |
> "200": | |
> description: The compensate message was sent to all coordinators | |
> headers: | |
> Narayana-LRA-API-version: | |
> $ref: '#/components/headers/Narayana-LRA-API-version' | |
> content: | |
> application/json: | |
> schema: | |
> type: string | |
467,475d478 | |
< "200": | |
< description: The compensate message was sent to all coordinators | |
< headers: | |
< Narayana-LRA-API-version: | |
< $ref: '#/components/headers/Narayana-LRA-API-version' | |
< content: | |
< application/json: | |
< schema: | |
< type: string | |
494a498,506 | |
> "200": | |
> description: The complete message was sent to all coordinators | |
> headers: | |
> Narayana-LRA-API-version: | |
> $ref: '#/components/headers/Narayana-LRA-API-version' | |
> content: | |
> text/plain: | |
> schema: | |
> type: string | |
511,519d522 | |
< "200": | |
< description: The complete message was sent to all coordinators | |
< headers: | |
< Narayana-LRA-API-version: | |
< $ref: '#/components/headers/Narayana-LRA-API-version' | |
< content: | |
< text/plain: | |
< schema: | |
< type: string | |
534a538,542 | |
> "200": | |
> description: If the participant was successfully removed from the LRA | |
> headers: | |
> Narayana-LRA-API-version: | |
> $ref: '#/components/headers/Narayana-LRA-API-version' | |
558,562d565 | |
< "200": | |
< description: If the participant was successfully removed from the LRA | |
< headers: | |
< Narayana-LRA-API-version: | |
< $ref: '#/components/headers/Narayana-LRA-API-version' | |
587a591,596 | |
> "200": | |
> description: If the LRA time limit has been updated | |
> headers: | |
> Narayana-LRA-API-version: | |
> $ref: '#/components/headers/Narayana-LRA-API-version' | |
> content: {} | |
599,604d607 | |
< "200": | |
< description: If the LRA time limit has been updated | |
< headers: | |
< Narayana-LRA-API-version: | |
< $ref: '#/components/headers/Narayana-LRA-API-version' | |
< content: {} | |
621a625,633 | |
> "200": | |
> description: The LRA exists. The status is reported in the content body. | |
> headers: | |
> Narayana-LRA-API-version: | |
> $ref: '#/components/headers/Narayana-LRA-API-version' | |
> content: | |
> text/plain: | |
> schema: | |
> type: string | |
635,643d646 | |
< "200": | |
< description: The LRA exists. The status is reported in the content body. | |
< headers: | |
< Narayana-LRA-API-version: | |
< $ref: '#/components/headers/Narayana-LRA-API-version' | |
< content: | |
< text/plain: | |
< schema: | |
< type: string | |
652,664d654 | |
< URI: | |
< format: uri | |
< type: string | |
< LRAStatus: | |
< enum: | |
< - Active | |
< - Cancelled | |
< - Cancelling | |
< - Closed | |
< - Closing | |
< - FailedToCancel | |
< - FailedToClose | |
< type: string | |
667a658,660 | |
> lraId: | |
> format: uri | |
> type: string | |
669a663,671 | |
> status: | |
> $ref: '#/components/schemas/LRAStatus' | |
> isTopLevel: | |
> type: boolean | |
> isRecovering: | |
> type: boolean | |
> startTime: | |
> format: int64 | |
> type: integer | |
676,686d677 | |
< isRecovering: | |
< type: boolean | |
< isTopLevel: | |
< type: boolean | |
< lraId: | |
< $ref: '#/components/schemas/URI' | |
< startTime: | |
< format: int64 | |
< type: integer | |
< status: | |
< $ref: '#/components/schemas/LRAStatus' | |
689,690d679 | |
< recovering: | |
< type: boolean | |
692a682,693 | |
> recovering: | |
> type: boolean | |
> LRAStatus: | |
> enum: | |
> - Active | |
> - Cancelling | |
> - Cancelled | |
> - FailedToCancel | |
> - Closing | |
> - Closed | |
> - FailedToClose | |
> type: string | |
705a707 | |
> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment