Sign inSign up

rvancea/json-api-mockserver

By rvancea

•Updated over 2 years ago

REST API CRUD Mockserver application

Image
0

993

rvancea/json-api-mockserver repository overview

REST API Mockserver that can be used to practice testing on local environments.

Start the app with the following command: docker run --rm -d -p 3112:3112 --name "json-api-mockserver" rvancea/json-api-mockserver

AVAILABLE ROUTES

  1. GET http://localhost:3112/employees⁠

  2. POST http://localhost:3112/employees⁠

  3. PUT http://localhost:3112/employees/{id}⁠

  4. DELETE http://localhost:3112/employees/{id}⁠

  5. PATCH http://localhost:3112/employees/{id}⁠

  6. GET http://localhost:3112/internal⁠ returns status code 500

  7. GET http://localhost:3112/badreq⁠ returns status code 400

  8. GET http://localhost:3112/forbidden⁠ returns status code 403

JWT AUTH example

  1. POST http://localhost:3112/register⁠ returns status code 201

  2. POST http://localhost:3112/login⁠ requires Authorization header with value 'Bearer token' (token value returned by the previous POST /register endpoint)returns status code 201; otherwise will return 401.

For feedback / other endpoints feel free to reach out to [email protected]⁠

Happy testing!

Tag summary

Content type

Image

Digest

sha256:fa4cf6549…

Size

344.7 MB

Last updated

over 2 years ago

docker pull rvancea/json-api-mockserver