Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update HTTP method requirement example#6062

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
xabbuh merged 1 commit intosymfony:2.3fromwouterj:routing_method_requirement
Jan 11, 2016

Conversation

@wouterj
Copy link
Member

QA
Doc fix?yes
New docs?no
Applies to2.3+
Fixed tickets#5583

After many reports (#5779,#5659) of the text no longer matching the example, I think it's time to update the example.

The example now uses an API, which is a very common thing now and often needs this feature. API's are already used in the Page Creation article, which is placed before this article, so it shouldn't be too hard to understand.

I know that from a REST prespective, HEAD and GET using the same action doesn't seem that great, but it's the only action I could think of that may support 2 methods.

@xabbuh
Copy link
Member

👍 I really like this.

@OskarStark
Copy link
Contributor

like it too 👍

Status: Reviewed

@xabbuh
Copy link
Member

@javiereguiluz@weaverryan What do you think about it?

Choose a reason for hiding this comment

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

Just asking: shouldapi_show_post beapi_post_show? I usually do "global preffix" (api_) + "item" (post) + "action" (show).

Copy link
Member

Choose a reason for hiding this comment

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

yea, that makes sense - so there would be a loose standard ofapi_CONTROLLERNAME_ACTIONNAME

Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@weaverryan
Copy link
Member

👍 This is very well done

@xabbuhxabbuh merged commit30c2750 intosymfony:2.3Jan 11, 2016
xabbuh added a commit that referenced this pull requestJan 11, 2016
This PR was merged into the 2.3 branch.Discussion----------Update HTTP method requirement example| Q | A| --- | ---| Doc fix? | yes| New docs? | no| Applies to | 2.3+| Fixed tickets |#5583After many reports (#5779,#5659) of the text no longer matching the example, I think it's time to update the example.The example now uses an API, which is a very common thing now and often needs this feature. API's are already used in the Page Creation article, which is placed before this article, so it shouldn't be too hard to understand.I know that from a REST prespective, HEAD and GET using the same action doesn't seem that great, but it's the only action I could think of that may support 2 methods.Commits-------30c2750 Update method requirement example
xabbuh added a commit that referenced this pull requestJan 11, 2016
@xabbuh
Copy link
Member

Thanks Wouter! Changes are merged and route names updated in87d3167.

Copy link
Contributor

Choose a reason for hiding this comment

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

i dislike posts here, this is unnecessary ambiguous. (post vs posts)

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

a common practice is to have consistent URLs for your API (to avoid the inconsistency stuff like github's pulls and issues urls). Also, without it the example wouldn't make any sense anymore.

@wouterjwouterj deleted the routing_method_requirement branchJanuary 25, 2016 15:38
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

6 participants

@wouterj@xabbuh@OskarStark@weaverryan@javiereguiluz@timglabisch

[8]ページ先頭

©2009-2025 Movatter.jp