Skip to content

Latest commit

 

History

History
28 lines (27 loc) · 690 Bytes

README.md

File metadata and controls

28 lines (27 loc) · 690 Bytes

Message Storage Microservice

User stories:

  1. I can store a message as a string and be given an id for that message.
  2. I can retrieve a previously saved string using it's unique id.

Example Input:

To store a message using a curl command:

curl https://fierce-shelf-71001.herokuapp.com/messages/ -d "Your message here"

Example Output:

{ "id": 12345 }

Example Input:

To retrieve a previously saved message using a curl command:

curl https://fierce-shelf-71001.herokuapp.com/messages/12345

Example Output:

Your message here

Notes:

  • Empty strings will not throw an error and will be stored as an empty string.