Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URI’s:

GET /creatures

returns all creatures in JSON format

GET /creature/name/:name

returns all creatures with the name == :name in JSON format

GET /creature/id/:id

returns creature with id == :id in JSON format

POST /creature

takes in a JSON object representation of the creature's attributes, inserts the creature into the database and then returns it in JSON format with the id

PUT /creature

takes in a JSON object representation of the creature's attributes, retrieves the creature from the database with the matching id, updates the attributes, and returns the updated creature in JSON format

DELETE /creature

takes in a JSON object representation of the creature's atributes, retrieves the creature from the database where all attributes match and deletes the creature

DELETE /creature/id/:id

retrieves the creature from the database with the matching id and deletes it

About

A small RESTful service written in Ruby for use with a cross platform demo

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages