|
8 | 8 | checks, plugins, initialisation hooks, service introspection, and more.
|
9 | 9 | termsOfService: https://www.localstack.cloud/legal/tos
|
10 | 10 | title: LocalStack REST API for Community
|
11 |
| - version: 3.6.1.dev |
| 11 | + version: latest |
12 | 12 | externalDocs:
|
13 | 13 | description: LocalStack Documentation
|
14 | 14 | url: https://docs.localstack.cloud
|
@@ -211,6 +211,58 @@ components:
|
211 | 211 | - error
|
212 | 212 | - subscription_arn
|
213 | 213 | type: object
|
| 214 | + ReceiveMessageRequest: |
| 215 | + type: object |
| 216 | + description: https://github.com/boto/botocore/blob/develop/botocore/data/sqs/2012-11-05/service-2.json |
| 217 | + required: |
| 218 | + - QueueUrl |
| 219 | + properties: |
| 220 | + QueueUrl: |
| 221 | + type: string |
| 222 | + format: uri |
| 223 | + AttributeNames: |
| 224 | + type: array |
| 225 | + items: |
| 226 | + type: string |
| 227 | + MessageSystemAttributeNames: |
| 228 | + type: array |
| 229 | + items: |
| 230 | + type: string |
| 231 | + MessageAttributeNames: |
| 232 | + type: array |
| 233 | + items: |
| 234 | + type: string |
| 235 | + MaxNumberOfMessages: |
| 236 | + type: integer |
| 237 | + VisibilityTimeout: |
| 238 | + type: integer |
| 239 | + WaitTimeSeconds: |
| 240 | + type: integer |
| 241 | + ReceiveRequestAttemptId: |
| 242 | + type: string |
| 243 | + ReceiveMessageResult: |
| 244 | + type: object |
| 245 | + description: https://github.com/boto/botocore/blob/develop/botocore/data/sqs/2012-11-05/service-2.json |
| 246 | + properties: |
| 247 | + Messages: |
| 248 | + type: array |
| 249 | + items: |
| 250 | + $ref: '#/components/schemas/Message' |
| 251 | + Message: |
| 252 | + type: object |
| 253 | + properties: |
| 254 | + MessageId: |
| 255 | + type: [string, 'null'] |
| 256 | + ReceiptHandle: |
| 257 | + type: [string, 'null'] |
| 258 | + MD5OfBody: |
| 259 | + type: [string, 'null'] |
| 260 | + Body: |
| 261 | + type: [string, 'null'] |
| 262 | + Attributes: |
| 263 | + type: object |
| 264 | + MessageAttributes: |
| 265 | + type: object |
214 | 266 | CloudWatchMetrics:
|
215 | 267 | additionalProperties: false
|
216 | 268 | properties:
|
@@ -529,14 +581,52 @@ paths:
|
529 | 581 | '200':
|
530 | 582 | content:
|
531 | 583 | text/xml: {}
|
| 584 | + application/json: |
| 585 | + schema: |
| 586 | + $ref: '#/components/schemas/ReceiveMessageResult' |
532 | 587 | description: SQS queue messages
|
533 | 588 | '400':
|
534 | 589 | content:
|
535 | 590 | text/xml: {}
|
| 591 | + application/json: {} |
536 | 592 | description: Bad request
|
537 | 593 | '404':
|
538 | 594 | content:
|
539 | 595 | text/xml: {}
|
| 596 | + application/json: {} |
| 597 | + description: Not found |
| 598 | + post: |
| 599 | + summary: Retrieves one or more messages from the specified queue. |
| 600 | + description: | |
| 601 | + This API receives messages from an SQS queue. |
| 602 | + https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_ReceiveMessage.html#API_ReceiveMessage_ResponseSyntax |
| 603 | + operationId: receive_message |
| 604 | + requestBody: |
| 605 | + required: true |
| 606 | + content: |
| 607 | + application/x-www-form-urlencoded: |
| 608 | + schema: |
| 609 | + $ref: '#/components/schemas/ReceiveMessageRequest' |
| 610 | + application/json: |
| 611 | + schema: |
| 612 | + $ref: '#/components/schemas/ReceiveMessageRequest' |
| 613 | + responses: |
| 614 | + '200': |
| 615 | + content: |
| 616 | + text/xml: {} |
| 617 | + application/json: |
| 618 | + schema: |
| 619 | + $ref: '#/components/schemas/ReceiveMessageResult' |
| 620 | + description: SQS queue messages |
| 621 | + '400': |
| 622 | + content: |
| 623 | + text/xml: {} |
| 624 | + application/json: {} |
| 625 | + description: Bad request |
| 626 | + '404': |
| 627 | + content: |
| 628 | + text/xml: {} |
| 629 | + application/json: {} |
540 | 630 | description: Not found
|
541 | 631 | /_aws/sqs/messages/{region}/{account_id}/{queue_name}:
|
542 | 632 | get:
|
@@ -566,14 +656,19 @@ paths:
|
566 | 656 | '200':
|
567 | 657 | content:
|
568 | 658 | text/xml: {}
|
| 659 | + application/json: |
| 660 | + schema: |
| 661 | + $ref: '#/components/schemas/ReceiveMessageResult' |
569 | 662 | description: SQS queue messages
|
570 | 663 | '400':
|
571 | 664 | content:
|
572 | 665 | text/xml: {}
|
| 666 | + application/json: {} |
573 | 667 | description: Bad request
|
574 | 668 | '404':
|
575 | 669 | content:
|
576 | 670 | text/xml: {}
|
| 671 | + application/json: {} |
577 | 672 | description: Not found
|
578 | 673 | /_localstack/config:
|
579 | 674 | get:
|
|
0 commit comments