yii2-swagger
yii2-swagger copied to clipboard
Documentation of Annotation for POST, PUT request is missing
I tried following annotation for post request but the form in Swagger UI does not show up. /** * @SWG\Post(path="/admin/add", * tags={"Admin"}, * summary="Signup Admin", * @SWG\Response( * response = 201, * description = "Added admin information", * @SWG\Schema(ref = "#/definitions/Admin"), * @SWG\Schema(@SWG\Property(property="username", type="string"), * @SWG\Parameter( * name="username", * in="formData", * description="Username of admin", * required=true, * type="string" * ), * ) * ), * ) */