Your IP : 216.73.216.91


Current Path : /var/www/html/inatote/api-rest/v1/docs/
Upload File :
Current File : /var/www/html/inatote/api-rest/v1/docs/swagger.json

{
  "openapi": "3.0.0",
  "servers": [
    {
      "url": "http://inatote.com/api/inatote/",
      "description": "Production server (uses live data)"
    }
  ],
  "paths": {
    "/signup": {
      "post": {
        "tags": [
          "AUTHENTICATION"
        ],
        "summary": "Create User",
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "default" : "rTx8fj@!n@tot3c6fYQR4$!",
                    "required" : true
                  },
                  "email": {
                    "type": "string",
                    "required" : true
                  },
                  "password": {
                    "type": "string",
                    "required" : true
                  },
                  "first_name": {
                    "type": "string"
                  },
                  "last_name": {
                    "type": "string"
                  },
                  "invitation_code": {
                    "type": "string"
                  },
                  "phone": {
                    "type": "string"
                  }
                },
                "required": [
                  "token",
                  "email",
                  "password",
                  "first_name",
                  "last_name",
                  "phone"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/login": {
      "post": {
        "tags": [
          "AUTHENTICATION"
        ],
        "summary": "Get User Information Using Token, Email And Password",
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "default" : "rTx8fj@!n@tot3c6fYQR4$!",
                    "required" : true
                  },
                  "email": {
                    "type": "string",
                    "required" : true
                  },
                  "password": {
                    "type": "string",
                    "required" : true
                  }
                },
                "required": [
                  "token",
                  "email",
                  "password"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/stores": {
      "post": {
        "tags": [
          "STORE"
        ],
        "summary": "Get Stores using latitude and longitude",
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "default" : "rTx8fj@!n@tot3c6fYQR4$!",
                    "required" : true
                  },
                   "user_id": {
                    "type": "string",
                    "required" : true
                  },
                  "latitude": {
                    "type": "string",
                    "required" : true,
                    "default" : 43.59714
                  },
                  "longitude": {
                    "type": "string",
                    "required" : true,
                    "default" : -79.66282
                  },
                  "search": {
                    "type": "string"
                  }
                },
                "required": [
                  "token",
                  "user_id",
                  "latitude",
                  "longitude"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/store_products": {
      "post": {
        "tags": [
          "STORE"
        ],
        "summary": "Get Stores Products",
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "default" : "rTx8fj@!n@tot3c6fYQR4$!",
                    "required" : true
                  },
                   "user_id": {
                    "type": "int",
                    "required" : true
                  },
                   "store_id": {
                    "type": "int",
                    "required" : true
                  }
                },
                "required": [
                  "token",
                  "user_id",
                  "store_id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/store_favorite": {
      "post": {
        "tags": [
          "WISHLIST"
        ],
        "summary": "Add Store To Favorite",
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "default" : "rTx8fj@!n@tot3c6fYQR4$!",
                    "required" : true
                  },
                   "user_id": {
                    "type": "int",
                    "required" : true
                  },
                   "store_id": {
                    "type": "int",
                    "required" : true
                  }
                },
                "required": [
                  "token",
                  "user_id",
                  "store_id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/product_favorite": {
      "post": {
        "tags": [
          "WISHLIST"
        ],
        "summary": "Add Product To Favorite",
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "default" : "rTx8fj@!n@tot3c6fYQR4$!",
                    "required" : true
                  },
                   "user_id": {
                    "type": "int",
                    "required" : true
                  },
                   "product_id": {
                    "type": "int",
                    "required" : true
                  }
                },
                "required": [
                  "token",
                  "user_id",
                  "product_id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/store_rating": {
      "post": {
        "tags": [
          "RATING"
        ],
        "summary": "Rate Store",
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "default" : "rTx8fj@!n@tot3c6fYQR4$!",
                    "required" : true
                  },
                   "user_id": {
                    "type": "int",
                    "required" : true
                  },
                   "store_id": {
                    "type": "int",
                    "required" : true
                  },
                   "rating": {
                    "type": "int",
                    "required" : true
                  }
                },
                "required": [
                  "token",
                  "user_id",
                  "store_id",
                  "rating"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/product_rating": {
      "post": {
        "tags": [
          "RATING"
        ],
        "summary": "Rate Product",
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "default" : "rTx8fj@!n@tot3c6fYQR4$!",
                    "required" : true
                  },
                   "user_id": {
                    "type": "int",
                    "required" : true
                  },
                   "product_id": {
                    "type": "int",
                    "required" : true
                  },
                   "rating": {
                    "type": "int",
                    "required" : true
                  }
                },
                "required": [
                  "token",
                  "user_id",
                  "product_id",
                  "rating"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  }
}