Skip to content

Maintain order in which paths are added to spec#87

Merged
sloria merged 1 commit intomarshmallow-code:devfrom
ranjanashish:maintain-added-paths-order
Aug 15, 2016
Merged

Maintain order in which paths are added to spec#87
sloria merged 1 commit intomarshmallow-code:devfrom
ranjanashish:maintain-added-paths-order

Conversation

@ranjanashish
Copy link
Copy Markdown
Contributor

Providing API documentation in a particular order, in general, makes the API design more obvious and API usage more easier for the users.

For example, in petstore documentation, what if the API /pet/{petId}/uploadImage was mentioned before the API for adding a new pet to the store. In a quick glance, the end user would not be so happy to see the jumbled APIs.

swagger-petstore

Currently, the generated spec (via APISpec.to_dict) does not maintain the order in which paths were added (via APISpec.add_path) to APISpec.

@sloria sloria merged commit b1a77cf into marshmallow-code:dev Aug 15, 2016
@sloria
Copy link
Copy Markdown
Member

sloria commented Aug 15, 2016

Thanks again!

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.

2 participants