-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix JSON request to always specify content type so sending in a JSON body works * Add update story endpoint * Test for updating story * Update README to contain story PUT * Updating documentation to have correct funct name
- Loading branch information
Showing
5 changed files
with
67 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
[ | ||
{ | ||
"request": { | ||
"body": "{\"name\":\"Name From Test\"}", | ||
"headers": { | ||
"Content-Type": "application/json", | ||
"User-agent": "extracker", | ||
"X-TrackerToken": "d55c3bc1f74346b843ca84ba340b29bf" | ||
}, | ||
"method": "put", | ||
"options": [], | ||
"request_body": "", | ||
"url": "https://www.pivotaltracker.com/services/v5/stories/66727974" | ||
}, | ||
"response": { | ||
"body": "{\"kind\":\"story\",\"id\":66727974,\"project_id\":1027488,\"name\":\"Name From Test\",\"description\":\"We need 2 machines set up\",\"story_type\":\"chore\",\"current_state\":\"accepted\",\"accepted_at\":\"2014-02-11T00:00:00Z\",\"requested_by_id\":1266314,\"owner_ids\":[],\"labels\":[],\"created_at\":\"2014-02-10T00:00:00Z\",\"updated_at\":\"2016-07-01T23:37:17Z\",\"url\":\"https://www.pivotaltracker.com/story/show/66727974\"}", | ||
"headers": { | ||
"Content-Type": "application/json; charset=utf-8", | ||
"Transfer-Encoding": "chunked", | ||
"Status": "200 OK", | ||
"Cache-Control": "max-age=0, private, must-revalidate", | ||
"Date": "Fri, 01 Jul 2016 23:37:17 GMT", | ||
"X-Tracker-Project-Version": "145", | ||
"X-Request-Id": "406a244d4c7fd5c55d5bc87e594bdfe1", | ||
"X-UA-Compatible": "IE=Edge,chrome=1", | ||
"ETag": "\"080d23e10d0537d78e12a9f6dfe73941\"", | ||
"X-Runtime": "0.147122", | ||
"X-Rack-Cache": "invalidate, pass", | ||
"X-Powered-By": "Phusion Passenger Enterprise", | ||
"Server": "nginx + Phusion Passenger", | ||
"Access-Control-Allow-Origin": "*", | ||
"Access-Control-Allow-Credentials": "false", | ||
"Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, OPTIONS", | ||
"Access-Control-Allow-Headers": "X-TrackerToken,DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,X-Tracker-Warn-Unless-Project-Version-Is", | ||
"X-Tracker-Client-Pinger-Interval": "12" | ||
}, | ||
"status_code": 200, | ||
"type": "ok" | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters