How to document a callback using DarkaOnLine / L5-Swagger in Laravel 5.8

I need to document a callback, I tried something like this but it doesn't work:

   /**
* @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"
* ),
* ),
* }
* }
* )
*/

Has anyone documented this and can give me a hand?

Thanks in advance.



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2xGkusC
via IFTTT

تعليقات

المشاركات الشائعة من هذه المدونة

I am unable to figure out how to create payment collection request, after a form has been submitted in laravel

laravel, mysql transaction not working after failed one time