{
  "opencollection": "1.0.0",
  "info": {
    "name": "Outdoorsy API Documentation Locations API",
    "version": "0.0.1"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Authorization",
      "value": "{{Authorization}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "locations",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "listLocations",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "/v0/locations",
            "params": [
              {
                "name": "location_id",
                "value": "",
                "type": "query"
              },
              {
                "name": "location_ids",
                "value": "",
                "type": "query"
              },
              {
                "name": "owner_id",
                "value": "",
                "type": "query"
              },
              {
                "name": "owner_ids",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query"
              },
              {
                "name": "order",
                "value": "",
                "type": "query"
              },
              {
                "name": "archived",
                "value": "",
                "type": "query"
              },
              {
                "name": "keyword",
                "value": "",
                "type": "query"
              },
              {
                "name": "discard_limit",
                "value": "",
                "type": "query"
              },
              {
                "name": "IDs",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List dealer locations"
        },
        {
          "info": {
            "name": "createLocation",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "/v0/locations",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create dealer location"
        },
        {
          "info": {
            "name": "getLocationByOwner",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "/v0/locations/:id"
          },
          "docs": "Retrieve location by id"
        },
        {
          "info": {
            "name": "updateLocation",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "/v0/locations/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update dealer location details"
        },
        {
          "info": {
            "name": "deleteLocation",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "/v0/locations/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete dealer location"
        },
        {
          "info": {
            "name": "getLocationsByOwnerID",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "/v0/locations/:owner_id/for-pro-page",
            "params": [
              {
                "name": "owner_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "List dealer locations for his pro page (locations with connected bank account, ordered by having the most rentals desc). Provide falback in the form of city and state with most bookable rentals"
        }
      ]
    }
  ],
  "bundled": true
}