Files
cqrs-eventsourcing-user-man…/rest-client-integration-tests.http
Maksim Kostromin 5468280674 Initial commit
2019-07-31 04:30:30 +03:00

52 lines
1.1 KiB
HTTP

# Read more: https://www.jetbrains.com/help/idea/http-client-in-product-code-editor.html
# curl localhost:8080/api/v1/messages/info
GET localhost:8080/api/v1/messages/info
Content-Type: application/json
Accept:: application/json
###
# curl localhost:8080/api/v1/messages
GET localhost:8080/api/v1/messages
Content-Type: application/json
Accept:: application/json
###
# curl localhost:8080/api/v1/messages -d'{"message": "hello"}' -H'content-type: application/json'
POST localhost:8080/api/v1/messages
Content-Type: application/json
Accept:: application/json
{
"message": "hello"
}
###
# curl localhost:8080/api/v1/messages -d'{"message": "world"}' -H'content-type: application/json'
POST localhost:8080/api/v1/messages
Content-Type: application/json
Accept:: application/json
{
"message": "world"
}
###
# curl localhost:8080/api/v1/messages
GET localhost:8080/api/v1/messages
Content-Type: application/json
Accept:: application/json
###
# curl localhost:8080/api/v1/messages/00000000-0000-0000-0000-000000000000
GET http://localhost:8080/api/v1/messages/{{uuid}}
Content-Type: application/json
Accept:: application/json
###