knuckleswtf / scribe

Generate API documentation for humans from your Laravel codebase.✍
https://scribe.knuckles.wtf/laravel/
MIT License
1.7k stars 303 forks source link

Generate response model of swagger using scribe #703

Closed bhattaxay closed 1 year ago

bhattaxay commented 1 year ago

Scribe version

4.22

Your question

Hi there,

I want to generate swagger response model as shown in below image:

image

Is it possible to generate response model as above image? Basically it will be useful for integrate in mobile app easily. Let me know if it is possible.

The scribe is not providing any option to add this object in response model. It will just take response from my api resource.

Docs

shalvah commented 1 year ago

Sorry, Scribe is mostly focused on human-readable documentation. If you need a detailed OpenAPI spec with full response models and types, you may need to look elsewhere.