Skip to content
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

[WEBSITE-836] Switch to data platform API #55

Merged

Conversation

katylouise
Copy link
Contributor

  • Added Accept header to request in get method to set them to application/n-triples.

@katylouise katylouise force-pushed the katylouise/website-836_switch-api branch from 4eccbc4 to c3dfbf0 Compare March 23, 2017 16:07
* Added Accept header to request in get method to set them to application/n-triples.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling c3dfbf0 on katylouise:katylouise/website-836_switch-api into 5b8f1c9 on ukparliament:master.

@@ -108,7 +108,12 @@ def get(params: nil)
endpoint_uri = URI.parse(api_endpoint)
endpoint_uri.query = URI.encode_www_form(params.to_a) unless params.nil?

net_response = Net::HTTP.get_response(URI(endpoint_uri))
request = Net::HTTP::Get.new(URI(endpoint_uri))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to wrap this in an explicit URI call? as we are parsing the string into a uri above?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No...removing it

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling c3dfbf0 on katylouise:katylouise/website-836_switch-api into 5b8f1c9 on ukparliament:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling a99c04b on katylouise:katylouise/website-836_switch-api into 5b8f1c9 on ukparliament:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling a99c04b on katylouise:katylouise/website-836_switch-api into 5b8f1c9 on ukparliament:master.

@katylouise katylouise merged commit 81a6691 into ukparliament:master Mar 23, 2017
@katylouise katylouise deleted the katylouise/website-836_switch-api branch March 27, 2017 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants