Skip to content
This repository was archived by the owner on Jan 27, 2020. It is now read-only.
This repository was archived by the owner on Jan 27, 2020. It is now read-only.

TypeError: Failed to execute 'fetch' on 'Window': Request with GET/HEAD method cannot have body. #24

@ikramulmustafa

Description

@ikramulmustafa

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",

  • tags={"Get Store By Category"},
    
  • @SWG\Parameter(
    
  •     name="category_id",
    
  •     in="formData",
    
  •     type="string",
    
  •     description="ID recieved to Show Sellers base on Category ID",
    
  •     required=true,
    
  • ),
    
  •   @SWG\Parameter(
    
  •     name="language_id",
    
  •     in="formData",
    
  •     type="string",
    
  •     description="ID recieved to Show Sellers base on language",
    
  •  ),
    
  • summary="Show Sellers base on Categories",
    
  • @SWG\Response(
    
  •     response = 200,
    
  •     description = "ID recieved to Show Sellers base on Category ID where 'seller_id' in categories is 1.",
    
  •     examples={
    
  • "application/json": {
    
  • "data":{
    
  •       "category_id": 481,
    
  •       "category_name": "Computer",
    
  •       "description": "GOOD ",
    
  •       "id": 19,
    
  •       "image": "Aswaq_Wadi/aswaq-wadi-logo.jpg",
    
  •       "banner": "Aswaq_Wadi/Aswaq-wadi.jpg",
    
  •       "minimum_order": 99,
    
  •       "delivery_charges": 15,
    
  •       "latitude": 25,
    
  •       "longitude": 47,
    
  •      "rating": "0",
    
  •       "name": "Aswaq Wadi",
    
  •      "delivery": "Next Delivery  Today 09:00 am - 11:00 am"
    
  •      },"statusCode":true
    
  • }
    
  • }

  • ), @SWG\Response(
    
  •     response = 422,
    
  •     description = "No Seller Categories against this category ID.",
    
  •     examples={
    
  • "application/json": {
    
  • "error":{
    
  • {
    
  •   "field"="category_id",
    
  •   "message"="missing ID"
    
  • },
    
  • {
    
  •   "field"="language_id",
    
  •   "message"="missing ID"
    
  • }
    
  • },"statusCode":false
    
  • }

  • }
    
  • ),
    
  • )
    */

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions