ammardev / larecipe-api-ref
A LaRecipe asset.
Installs: 670
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Language:Vue
Requires
- php: >=7.1.0
This package is auto-updated.
Last update: 2024-10-20 18:07:15 UTC
README
Installation
composer require ammardev/larecipe-api-ref
Example:
<api-ref title="Login request" verb="post" route="/api/login" :response-codes="[200, 401]"> <template v-slot:description> From here you can send your email and password and recieve token for authrizing </template> <template v-slot:body> <api-ref-item name="username" :required="true" type="string"> The unique username </api-ref-item> <api-ref-item name="password" :required="true" type="string"> Your password </api-ref-item> </template> <template v-slot:headers> <api-ref-item name="Accept" :required="true" type="string" example="application/json"> Accept json responses </api-ref-item> </template> <template v-slot:200> <pre> { "message": "Success", "token": "123" } </pre> </template> <template v-slot:401> <pre> { "message": "Unauthorized" } </pre> </template> </api-ref>