git clone https://github.com/ndidplatform/api-stub
cd api-stub
docker build -t "api-stub:latest" .
docker run -it -p 8000:8000 api-stub:latest
curl -X POST http://localhost:8000/identity -H 'Content-Type: application/json' -d '{"namespace": "cid", "identifier": "1234567890129", "secret": "This is my secret", "accessor_type": "ed25519", "accessor_key": "pub_key", "accessor_id": "aid" }"'
curl -X GET http://localhost:8000/identity/cid/1234567890129
curl -X POST http://localhost:8000/identity/cid/1234567890100 -H 'Content-Type: application/json' -d '{"identifiers": ["string"]}'
curl -X GET http://localhost:8000/identity/cid/1234567890129/endorsement
curl -X POST http://localhost:8000/identity/cid/1234567890129/endorsement -H 'Content-Type: application/json' -d '{"secret": "string", "accessor_type": "string", "accessor_key": "string", "accessor_id": "string"}'
curl -X GET 'http://localhost:8000/identity/cid/1234567890123/requests/history?count=5'
https://github.com/ndidplatform/api-stub/tree/master/example