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

Remove all V1 functionality #24

Merged
merged 5 commits into from
Jun 30, 2019
Merged

Remove all V1 functionality #24

merged 5 commits into from
Jun 30, 2019

Conversation

swcraig
Copy link
Owner

@swcraig swcraig commented Jun 30, 2019

Oxford Dictionaries has made a V2 upgrade to their API and will be
taking their V1 API offline on June 30, 2019.

Reference the following PRs for the new usage:

This should have been removed as part of
#21.
This was only used by the V1 endpoints which have all been removed.
We use VCR instead of this hand-rolled stubbing nonsense.
Instead of parsing the JSON response from the API into one of these
entities we instead parse the response into a nested OpenStruct.

Reference OxfordDictionary::Deserialize to see the implementation.
Instead of using this for V2, if the API gives us a 404 the OpenStruct
we translate the response into will have an `error` key with the
relevant messaging.
@swcraig swcraig merged commit 965a805 into master Jun 30, 2019
@swcraig swcraig deleted the remove-all-v1-functionality branch June 30, 2019 05:30
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.

1 participant