clone this repo and create env file, here you should define your access token for POST request.
Example:
Endpoint : http://localhost:3000/commands
{ { "token": "YOUR-TOKEN", "type": "register", "aggregateId": 9, "aggregateName": "cars", "payload": { "brand": "toyota", "model": "hilux", "year": "2012" } } }
After save the payload, endpoint response to client with object witch contain an ID, with this, you can test the query endpoint.
Endpoint http://localhost:3000/query/cars/get?id=RESPONSE_FROM_REGISTER