Public
Documentation Settings

SOS1920-02-rural-tourism-stats Copy

GETloadInitialData

https://sos1920-02.herokuapp.com/api/v2/rural-tourism-stats/loadInitialData
HEADERS
Content-Type

application/json

Example Request
curl
curl --location 'https://sos1920-02.herokuapp.com/api/v2/rural-tourism-stats/loadInitialData' \
--header 'Content-Type: application/json' \
--data ''
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers

GETGET /rural-tourism-stats

https://sos1920-02.herokuapp.com/api/v2/rural-tourism-stats/
HEADERS
Content-Type

application/json

Example Request
curl
curl --location 'https://sos1920-02.herokuapp.com/api/v2/rural-tourism-stats/' \
--header 'Content-Type: application/json' \
--data ''
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers

POSTPOST /rural-tourism-stats

https://sos1920-02.herokuapp.com/api/v2/rural-tourism-stats/
HEADERS
Content-Type

application/json

Bodyraw
    {
        "province": "madrid",
        "year": 2015,
        "traveller": 100,
        "overnightstay": 200,
        "averagestay": 2.7
    }
Example Request
curl
curl --location 'https://sos1920-02.herokuapp.com/api/v2/rural-tourism-stats/' \
--header 'Content-Type: application/json' \
--data '    {
        "province": "madrid",
        "year": 2015,
        "traveller": 100,
        "overnightstay": 200,
        "averagestay": 2.7
    }'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers

GETGET .../madrid/2015

https://sos1920-02.herokuapp.com/api/v2/rural-tourism-stats/madrid/2015
HEADERS
Content-Type

application/json

Example Request
curl
curl --location 'https://sos1920-02.herokuapp.com/api/v2/rural-tourism-stats/madrid/2015' \
--header 'Content-Type: application/json' \
--data ''
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers

DELETEDELETE .../madrid/2015

https://sos1920-02.herokuapp.com/api/v2/rural-tourism-stats/madrid/2015
HEADERS
Content-Type

application/json

Example Request
curl
curl --location --request DELETE 'https://sos1920-02.herokuapp.com/api/v2/rural-tourism-stats/madrid/2015' \
--header 'Content-Type: application/json' \
--data ''
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers