Skip to content

Commit

Permalink
feat: world manifest (#446)
Browse files Browse the repository at this point in the history
  • Loading branch information
aleortega authored Apr 17, 2024
1 parent 410ba8d commit 7853c9d
Show file tree
Hide file tree
Showing 5 changed files with 102,139 additions and 13 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ This will return the url of the queue

```
{
"QueueUrl": "http://localhost:4566/000000000000/places_test"
"QueueUrl": "http://sqs.us-east-1.localhost.localstack.cloud:4566/000000000000/places_test"
}
```

Expand All @@ -151,7 +151,7 @@ The message to be received from the SQS must be sent using `awslocal`. This mess
And this must be sent as a message body like this using awslocal `awslocal sqs send-message --queue-url {queue-url} --message-body {message}` like:

```
$ awslocal sqs send-message --queue-url http://localhost:4566/00000000000/places_test --message-body '{"Message":"{\"entity\":{\"entityId\":\"bafkreietumuqvq6kyy5k3dnn4z57j45isf5e2rjn46w2hrcpfghwmausvy\",\"authChain\":\"authChain\"},\"contentServerUrls\":[\"https://peer.decentraland.org/content\"]}"}'
$ awslocal sqs send-message --queue-url http://sqs.us-east-1.localhost.localstack.cloud:4566/000000000000/places_test --message-body '{"Message":"{\"entity\":{\"entityId\":\"bafkreietumuqvq6kyy5k3dnn4z57j45isf5e2rjn46w2hrcpfghwmausvy\",\"authChain\":\"authChain\"},\"contentServerUrls\":[\"https://peer.decentraland.org/content\"]}"}'
```

This will answer with a JSON with the message id like
Expand All @@ -167,7 +167,7 @@ To return the messages set in the SQS, a curl command can be executed `http://lo

```
$ curl -H "Accept: application/json" \
"http://localhost:4566/_aws/sqs/messages?QueueUrl=http://queue.localhost.localstack.cloud:4566/000000000000/places_test"
"http://localhost:4566/_aws/sqs/messages?QueueUrl=http://sqs.us-east-1.localhost.localstack.cloud:4566/000000000000/places_test"
```

And the response should be something like
Expand Down Expand Up @@ -211,5 +211,5 @@ And the response should be something like
Finally to purge the SQS `awslocal sqs purge-queue --queue-url {queue_url}`

```
$ awslocal sqs purge-queue --queue-url http://localhost:4566/00000000000/places_test
$ awslocal sqs purge-queue --queue-url http://sqs.us-east-1.localhost.localstack.cloud:4566/000000000000/places_test
```
Loading

0 comments on commit 7853c9d

Please sign in to comment.