- I can store a message as a string and be given an id for that message.
- I can retrieve a previously saved string using it's unique id.
To store a message using a curl command:
curl https://fierce-shelf-71001.herokuapp.com/messages/ -d "Your message here"
{ "id": 12345 }
To retrieve a previously saved message using a curl command:
curl https://fierce-shelf-71001.herokuapp.com/messages/12345
Your message here
- Empty strings will not throw an error and will be stored as an empty string.