meeshkan / unmock-js

Fuzz test your REST API calls
https://unmock.io
93 stars 8 forks source link

Add admin endpoint for managing services. #379

Closed ksaaskil closed 4 years ago

ksaaskil commented 4 years ago

Adds the admin API, closes #376.

Endpoints

Get all services:

$ curl http://localhost:8888/services

Post a new service with name my-service:

$ curl -X POST http://localhost:8888/services/my-service -H "Content-Type: application/json" --data "@/path/to/openapi.json"

Note that this doesn't yet accept YAML.

Get OpenAPI schema for service with name my-service:

$ curl http://localhost:8888/services/my-service

TODO