Skip to content

ThreeWiseMen/ResTest

Repository files navigation

This project hopes soon to illustrate an efficient and accurate REST server.

Testing REST with curl:

curl -i -H “Accept: application/json” -H “Content-Type: application/json” -X POST -d ‘{“first_name”:“Stacey”,“email”:“stacey@threewisemen.ca”}’ restest.threewisemen.ca/people

curl -i -H “Accept: application/json” -H “Content-Type: application/json” -H “X-Http-Method-Override: PUT” -X POST -d ‘{“last_name”:“Vetzal”}’ restest.threewisemen.ca/people/1

curl -i -H “Accept: application/json” -H “Content-Type: application/json” restest.threewisemen.ca/people/1

curl -i -H “Accept: application/json” -H “Content-Type: application/json” -H “X-Http-Method-Override: DELETE” -X POST -d ‘{“first_name”:“Stacey”,“email”:“stacey@threewisemen.ca”}’ restest.threewisemen.ca/people/1

About

Sample project to illustrate semantically correct REST implementation in Rails

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •