Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
6 lines (5 sloc) 665 Bytes
curl -i -H"Content-Type:application/json" -d "{\"pstatus\":\"interviewed\",\"name\":\"position\",\"details\":\"position description\"}" http://localhost:3000/users/1/positions.json #create a position for a user
curl -i http://localhost:3000/users/1/positions.json # get all positions for a user
curl -i http://localhost:3000/users/1/positions/2.json # get a position for a user
curl -i -XPUT -H"Content-Type:application/json" http://localhost:3000/users/1/positions/2.json -d "{\"name\":\"position\",\"details\":\"position description\"}"
curl -i -XPUT -H"Content-Type:application/json" http://localhost:3000/users/1/positions/2.json -d "{\"pstatus\":\"applied\"}"