Comment 0 for bug 1321555

John Vrbanac (john.vrbanac) wrote :

Request:
curl -X POST -d '{
  "payload": "my-secret-here",
  "payload_content_type": "text/plain"
}
' http://localhost:9311/v1/12345/secrets

Response:
Status Code: 500
{"code": 500, "description": "Secret creation failure seen - please contact site administrator.", "title": "Internal Server Error"}

Expected Response:
Status Code: 201
{"secret_ref": "http://localhost:9311/v1/12345/secrets/a6a11dde-ad9b-48bb-85b8-a1774b5ddb8b"}