This repository has been archived by the owner on Jan 27, 2020. It is now read-only.
forked from slampenny/Swaggervel
-
Notifications
You must be signed in to change notification settings - Fork 40
TypeError: Failed to execute 'fetch' on 'Window': Request with GET/HEAD method cannot have body. #24
Comments
Using the -d option will set the POST-Data. So you will have a body included in the request. Just append the GET parameters to the URL like this:
|
WHERE should i add this? |
/**
|
Is it working in Postman or is it working in SwaggerUI? |
Yes its working in postman |
the api's in which i donnot have to pass parameters are geetting data in swagger but like this one i shared in which i have to pass parameter it give me this error |
and same path and with method every api is working in postman |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
curl -X GET "http://127.0.0.1:8000/api/v1/store/getStoreByCat" -H "accept: application/json" -H "Content-Type: application/x-www-form-urlencoded" -d "category_id=481&language_id=3"
Everything is running in Postman with same Methods and i dont know where is the problem can any one help me with this
/**
@swg\GET (path="/store/getStoreByCat",
}
}
)
*/
The text was updated successfully, but these errors were encountered: