API Versioning #182
-
Firstly, absolutely love this! Amazing and really easy to implement. So refreshing to find developer/s that have not ploughed in 'over-complexity' in to their product. Well done! I have question as I am putting together a strategy for versioning my API. Firstly, for the controller structure In Laravel I am doing: Controllers/API/v1/ProductController.php In the api.php (route), I am doing this: use App\Http\Controllers\API\v1\ProductController as V1ProductController; // Version 1 // Version 2 Now, when I visits the docs/api, I can see all my api resource methods links in the left column as expected, something like: Product - Is there an implementation for placing the v1 and v2 in their own drop down so it looks something ; Product - Or, is it a case of somehow having separate api/docs for each version AND if so, how is that done. Any hints, tips on this is much appreciated Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@AndrewMarkUK Released in |
Beta Was this translation helpful? Give feedback.
@AndrewMarkUK Released in
v0.10.*
. https://scramble.dedoc.co/usage/multiple-docs