PHP code example of nickkuijpers / laravel-apidoc-generator
1. Go to this page and download the library: Download nickkuijpers/laravel-apidoc-generator library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
nickkuijpers / laravel-apidoc-generator example snippets
/**
* @group User management
*
* APIs for managing users
*/
class UserController extends Controller
{
/**
* Create a user
*
* [Insert optional longer description of the API endpoint here.]
*
*/
public function createUser()
{
}
/**
* @group Account management
*
*/
public function changePassword()
{
}
}
/**
* @bodyParam title string ired The title of the post.
* @bodyParam type string The type of post to create. Defaults to 'textophonious'.
* @bodyParam author_id int the ID of the author
* @bodyParam thumbnail image This is / ...
}
/**
* @queryParam location_id e id of the user. Example: me
* @queryParam page _id string The id of the room.
* @bodyParam forever boolean Whether to ban the user forever. Example: false
*/
/**
* @bodyParam title string ired The title of the post.
* @bodyParam type string The type of post to create. Defaults to 'textophonious'.
* @bodyParam author_id int the ID of the author
* @bodyParam thumbnail image This is