You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 30, 2021. It is now read-only.
reebayroo edited this page Jan 2, 2015
·
3 revisions
Players
export HOST=https://armored-farseer.herokuapp.com
-- Read Players
curl $HOST/api/players/
-- Create a new Player
curl -H 'Content-Type: application/json' -X POST -d '{"name":"Pedro","email":"pribeiro@pillartechnology.com"}' $HOST/api/players/
-- Retrieve one player
export IDENTIFIER=54a6f7ef676a090000135782
curl $HOST/api/players/$IDENTIFIER
-- Update one player
curl -H 'Content-Type: application/json' -X PUT -d '{"name":"Pedro Ribeiro","email":"pribeiro@pillartechnology.com"}' $HOST/api/players/$IDENTIFIER
-- Delete on player
curl -X DELETE $HOST/api/players/$IDENTIFIER