swisnl / openapi-spec-generator

Creates Open API spec for a Laravel JSON:API
Apache License 2.0
23 stars 11 forks source link

Allow developers to add descriptions to endpoints #2

Closed Rocksheep closed 2 years ago

Rocksheep commented 2 years ago

This commit allows developers to add descriptions to their generated documents. I have added the change to schema so that developers can create their descriptions without having to create controllers.

See tests/Feature/OpenApiSchemaTest.php and tests/Support/JsonApi/V1/Posts/PostSchema.php for an example.