如何在Laravel 5.8中使用DarkanLine/L5 Swagger记录回调
我需要记录一个回调,我尝试了类似的方法,但不起作用:如何在Laravel 5.8中使用DarkanLine/L5 Swagger记录回调,laravel,laravel-5,swagger,Laravel,Laravel 5,Swagger,我需要记录一个回调,我尝试了类似的方法,但不起作用: /** * @OA\Post( * path="/myurl-service", * operationId="Id", * tags={"Services"}, * summary="Summary", * description="Desc", * security={ *
/**
* @OA\Post(
* path="/myurl-service",
* operationId="Id",
* tags={"Services"},
* summary="Summary",
* description="Desc",
* security={
* {"bearerAuth": {}}
* },
* @OA\RequestBody(
* required=true,
* @OA\JsonContent(ref="#/components/schemas/Request")
* ),
* callbacks={
* "Notification": {
* "{$request.body#/notification_url}":
* @OA\Post(
* @OA\RequestBody(
* required=true
* ),
* @OA\Response(
* response=200,
* description="Successful operation"
* ),
* ),
* }
* }
* )
*/
有没有人记录了这件事,能帮我一把
提前感谢。使用JSON表示法很有效。
例如:
使用JSON表示法很有效。
例如:
* callbacks={
* "Notification"={
* "{$requestBody.notification_url}"={
* "post"={
* "requestBody"={
* "required": true,
* "content": {
* "application/json": {
* "schema": {
* "$ref": "#/components/schemas/Schema"
* }
* }
* }
* },
* "responses"={
* "200"={}
* }
* }
* }
* }