docker-compose up
It may take a few exponential backoff-restarts for the HTTP service to access the mysql
container.
POST /customers
{
"name": "name",
"email": "email@site.com",
"password": "helloworld"
}
Passwords are bcrypt
hashed before storage and hashes are not returned via API.
POST /customers/:id/certificates
{
"publicKey": "209jf09jq09ajwf209fjaweifjaw",
"privateKey": "f2039jf2390fj209fj209fj",
"active": true
}
Private keys will never be returned to the
PATCH /certificates/:id
{
"active": false
}
This will send a POST
to the httpbin defined in the environment variable HTTPBIN
.
The MySQL datastore is persisted to the Docker volume sqldata
.
node test.js
from the host.
docker-compose up
- docker push localhost:5000/testservice
- kubectl apply -f deployment.yaml