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

add operation id to documentation #393

Merged
merged 4 commits into from
Apr 4, 2019
Merged

add operation id to documentation #393

merged 4 commits into from
Apr 4, 2019

Conversation

garygitton
Copy link
Contributor

I added this field to be able to personalized methods of the sdks generated with swagger-codegen and zf-apigility-documentation-swagger.

'PUT' => ['description' => null, 'request' => null, 'response' => null],
'PATCH' => ['description' => null, 'request' => null, 'response' => null],
'DELETE' => ['description' => null, 'request' => null, 'response' => null],
'GET' => ['operationId' => null, 'description' => null, 'request' => null, 'response' => null],
Copy link
Member

Choose a reason for hiding this comment

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

My primary concern with adding this field is that it is highly specific to Swagger. Does API Blueprint have a similar feature? If so, we can generalize this so that it has meaning across all supported documentation type.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

On API Blueprint, the equivalent is "identifier" => https://apiblueprint.org/documentation/specification.html#section-structure
So should we use identifier instead of operationId ? Or just id ?

Copy link
Member

Choose a reason for hiding this comment

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

I'd argue identifier, and then zf-apigility-documentation-swagger and zf-apigility-documentation-apiblueprint would translate it to the appropriate key.

garygitton and others added 4 commits April 4, 2019 09:22
A number of lines in `getSchemaTemplate()` exceeded the max line length.
This patch adds comments for disabling CS checks in that method.
@weierophinney weierophinney changed the base branch from master to develop April 4, 2019 14:27
@weierophinney weierophinney merged commit a26d062 into zfcampus:develop Apr 4, 2019
@weierophinney
Copy link
Member

Thanks, @garygitton!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants