Skip to content

AndrewRMorgan/message-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A simple web service to store and retrieve messages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published