Prepare docs and Swagger definition for automatically generated API docs#28506
Prepare docs and Swagger definition for automatically generated API docs#28506thaJeztah merged 5 commits intomoby:masterfrom
Conversation
bd08987 to
de31a0e
Compare
|
So excited about this, thanks @bfirsh. Slowly, we are killing all these hand-rolled markdown files and I couldn't be happier. To be getting such nice-looking API docs is just an added bonus! cc @mstanleyjones |
|
Is there an easy way to generate these docs for preview / reviewing pull requests? |
|
@thaJeztah I think the easiest way is to copy That could be documented somewhere I suppose. Perhaps a "API documentation" section in the contributing docs? |
dnephin
left a comment
There was a problem hiding this comment.
Some minor requests for changes to OperationID.
Thanks for adding all the missing endpoints.
LGTM
api/swagger.yaml
Outdated
There was a problem hiding this comment.
Could we make this PluginPush ? I've been normalizing everything to be singular.
api/swagger.yaml
Outdated
api/swagger.yaml
Outdated
api/swagger.yaml
Outdated
de31a0e to
c794bfe
Compare
|
If we want this included in 1.13, then these changes need cherry-picking to the 1.13 branch. I see no reason why not to include it – it's purely a documentation change. Following an offline discussion with @thaJeztah, I'm also going to add some docs about how to write and test the API docs. |
|
Adding to the milestone, but /cc @vieux |
c794bfe to
b728b24
Compare
mdlinville
left a comment
There was a problem hiding this comment.
This is so cool!! Thank you so much, @bfirsh !
ef307d0 to
1b1c71b
Compare
See: docker/docs#606 Also: - Add missing redirects to API reference pages - Remove v1.25 and 1.26, because they are being replaced with swagger generated docs. - Remove all other docs which aren't reference material, because this can live in docker/docker.github.io Signed-off-by: Ben Firshman <[email protected]>
Implementation of moby#28319 Signed-off-by: Ben Firshman <[email protected]>
- Tidied up copy - API version is now mandatory - Links to previous API versions Signed-off-by: Ben Firshman <[email protected]>
Up to and including 673c5ee Signed-off-by: Ben Firshman <[email protected]>
1b1c71b to
00873a9
Compare
00873a9 to
79a9ee0
Compare
api/README.md
Outdated
There was a problem hiding this comment.
Replace v1.25 with something like <API_VERSION> so we don't have to update this file every release? (we've already updated master to v1.26)
There was a problem hiding this comment.
Heh, good point. I'll just remove the version number actually, because /engine/api/ redirects to /engine/api/v1.25/!
Signed-off-by: Ben Firshman <[email protected]>
79a9ee0 to
109c54c
Compare
|
LGTM |
|
There we go! |
|
@bfirsh can you create a PR against the 1.13.x branch directly ? this one is tricky to cherry-pick since it's 5 commits and the version changed in master |
|
@bfirsh nevermind I got it |
|
@vieux Nice, thank you! Appreciate that, because I realise it was non-trivial... |
|
@vieux They will exist once docker/docs#606 exists. :) Well, 1.26 won't, but the |
…r-docs Prepare docs and Swagger definition for automatically generated API docs
- What I did
This is some preparation for automatically generating API documentation from a Swagger definition. See #22931.
It is the Engine half of this documentation pull request. This pull request should be merged before the documentation pull request.
It consists of a bunch of things:
api/swagger.yaml, which the documentation is automatically generated from.api/swagger.yamlwith some more documentation and some recent API changes.- A picture of a cute animal (not mandatory but encouraged)
/cc @dnephin @johndmulhausen