Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Allow application/hal+json on incoming requests. #50

Merged
merged 1 commit into from
May 26, 2016

Conversation

Wilt
Copy link
Contributor

@Wilt Wilt commented Jul 28, 2015

I read this issue on HAL formatted data in incoming requests and think this PR contains all that is needed, but please have a critical look before merging.

I also see further chances to improve this class so we can think about implementing different content-types for future support of XML requests etc. An idea would to add a method getBodyParamsFromRequest and move all the content type checking, decoding and parsing inside this method.

I read [this issue](zfcampus/zf-apigility#114 (comment)) on HAL formatted data in incoming requests and think this PR contains all that is needed, but please have a critical look before merging.

I also see further chances to improve this class so we can think about implementing different content-types for future support of XML requests etc. An idea would to add a method `getBodyParamsFromRequest` and move all the content type checking, decoding and parsing inside this method.
@weierophinney weierophinney merged commit 71372a9 into zfcampus:master May 26, 2016
weierophinney added a commit that referenced this pull request May 26, 2016
Allow application/hal+json on incoming requests.
weierophinney added a commit that referenced this pull request May 26, 2016
Adds a test for #50, and fixes CS issues.
weierophinney added a commit that referenced this pull request May 26, 2016
weierophinney added a commit that referenced this pull request May 26, 2016
weierophinney added a commit that referenced this pull request May 26, 2016
@weierophinney weierophinney added this to the 1.1.2 milestone May 26, 2016
@weierophinney weierophinney self-assigned this May 26, 2016
@Wilt Wilt deleted the patch-2 branch August 19, 2016 07:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants