-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to PUT to Story #4
Merged
Merged
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
a78a69f
Fix JSON request to always specify content type so sending in a JSON …
69140d4
Add update story endpoint
e7c91ca
Test for updating story
0ed1467
Update README to contain story PUT
08f9533
Updating documentation to have correct funct name
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pivotal wouldn't recognize the PUT request's data unless Content-Type was set. Open to any better ways of doing this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works for now. I'll think on it and refactor later if the need arises.