0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

laravel apidoc

Posted at

laravel apidoc

<?php
/**
 * @api {get} /posts/:id posts get
 * @apiVersion 0.1.0
 * @apiName posts get
 * @apiGroup posts
 *
 * @apiParam {Number} id posts id.
 *
 * @apiSuccess {String} post post.
 *
 * @apiSuccessExample Success-Response:
 *     HTTP/1.1 200 OK
 *     {
 *       "post": "post"
 *     }
 *
 * @apiError PostNotFound .
 *
 * @apiErrorExample Error-Response:
 *     HTTP/1.1 404 Not Found
 *     {
 *       "error": "PostNotFound"
 *     }
 */

 /**
 * @api {post} /posts posts post
 * @apiVersion 0.1.0
 * @apiName posts post
 * @apiGroup posts
 *
 * @apiParam {Number} id posts id.
 *
 * @apiSuccess {String} post post.
 *
 * @apiSuccessExample Success-Response:
 *     HTTP/1.1 200 OK
 *     {
 *       "post": "post"
 *     }
 *
 * @apiError PostNotFound .
 *
 * @apiErrorExample Error-Response:
 *     HTTP/1.1 404 Not Found
 *     {
 *       "error": "PostNotFound"
 *     }
 */
namespace App\Http\Controllers;

use Illuminate\Http\Request;

class PostsController extends Controller
{
    //
}
mkdir doc
apidoc -i app/Http/Controllers/ -o doc/
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?