requete Postman marche mais pas dans la doc API

Par Malaury, il y a 5 ans


Bonjour à tous !
voilà mon souci : entrain de creer un service API, lorsque j'envoie une requete GET dans mon postman ( avec authentification JWT) token ca marche tres bien , en revanche lorsque j'effectue la requete dans ma doc Nelmio, la meme j'ai un message : ##TypeError: Failed to execute 'fetch' on 'Window': Request with GET/HEAD method cannot have body.##
mon code correspondant est : mes annotations

/** *@Route("", name="phones_list", methods={"GET"}) * @OA\Response( * response=JsonResponse::HTTP_OK, * description="Liste des telephones", * @OA\Schema( * type="array", * @OA\Items( * ref=@Model(type=Phone::class, groups={"list"}) * ) * ) * ) * @OA\RequestBody( * @OA\MediaType( * mediaType = "application/json", * @OA\Schema( * @OA\Property( * property = "id", * description = "identifiant", * type = "integer" * ),
 je ne comprends pas pk  ca fonctionne  dans postman et pas dns la doc?   merci pour vos avis, voire conseils

Aucune réponse