Skip to content

add status code 400 for update endpoints in swagger.yml#32464

Merged
vdemeester merged 1 commit intomoby:masterfrom
allencloud:add-status-code-400-for-update-endpoint
Apr 13, 2017
Merged

add status code 400 for update endpoints in swagger.yml#32464
vdemeester merged 1 commit intomoby:masterfrom
allencloud:add-status-code-400-for-update-endpoint

Conversation

@allencloud
Copy link
Copy Markdown
Contributor

@allencloud allencloud commented Apr 10, 2017

Signed-off-by: allencloud [email protected]

I think in docker/master we should add status code 400 for endpoint node update and secret update.

First pic is for node update.
wechatimg1
I test docker 1.12.x,

Second pic is for secret update:
wechatimg2

- What I did

  1. add status code 400 for endpoint POST /node/{id}/update;
  2. add status code 400 for endpoint POST /secret/{id}/update;

- How I did it

- How to verify it

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

Copy link
Copy Markdown
Member

@cpuguy83 cpuguy83 left a comment

Choose a reason for hiding this comment

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

LGTM

@allencloud
Copy link
Copy Markdown
Contributor Author

ping @vdemeester @thaJeztah

Copy link
Copy Markdown
Member

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

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

LGTM 🐯

@vdemeester vdemeester merged commit 0593012 into moby:master Apr 13, 2017
@vdemeester vdemeester added this to the 17.05.0 milestone Apr 13, 2017
@allencloud allencloud deleted the add-status-code-400-for-update-endpoint branch April 13, 2017 09:38
@thaJeztah
Copy link
Copy Markdown
Member

oh, ugh, I was about to comment but was in the airplane already; discussing with @justincormack, but this 400 should probably be a 404 given that the requested resource doesn't exist?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants