0
그냥 laravel 5.1 (이전 프로젝트) 용으로 꾸며 놓았습니다 내 프로젝트의 전체 문서를 작성했지만 문제는 바로 그 때입니다 사용해보십시오! 빈 요청을 보냅니다. 그리고 나는 우편 배달부와 똑같은 것을 시도 할 때 그것과 같이 작동합니다. 비어있는 포스트 요청을 보내시겠습니까
이
은 예입니다/**
* @SWG\Post(
* path="/api-routes/verify-report",
* consumes={"multipart/form-data"},
* description="Verify report",
* operationId="verifyReport",
* @SWG\Parameter(
* description="Application report id",
* format="int64",
* in="path",
* name="report_id",
* required=true,
* type="string"
* ),
* produces={"application/json"},
* @SWG\Response(
* response="200",
* description="successful operation"
* ),
* summary="Verify report",
* tags={
* "Verify report"
* }
*)
* */
public function verifyReport() {
}
그리고
"darkaonline/l5-swagger": "~3.0"
"비어있는 요청"은 본문없이 요청을 의미합니까? 그렇다면 코드 주석이 요청에 대한 매개 변수 (이 경우에는 'in = "formData"매개 변수)를 정의하지 않기 때문일 수 있습니다. 아니면 뭔가 다른 것을 의미합니까? – Helen