Public
Documentation Settings

Finca Raiz

Properties

GETgetPropertiess

http://127.0.0.1:8000/properties
Example Request
curl
curl --location 'http://127.0.0.1:8000/properties' \
--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

GETgetProperties by Category

http://127.0.0.1:8000/properties/3/
Example Request
curl
curl --location 'http://127.0.0.1:8000/properties/3/' \
--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

POSTpostProperties

http://127.0.0.1:8000/properties
Bodyraw (json)
json
{
    "title": "RR Valley",
    "image": "https://frontend-test-api.vercel.app/properties/architecture-1836070_1280.webp",
    "price": 176261,
    "baths": 0,
    "beds": 2,
    "sqft": 1844,
    "city": 4,
    "category": 1
}
Example Request
curl
curl --location 'http://127.0.0.1:8000/properties' \
--data '{
    "title": "RR Valley",
    "image": "https://frontend-test-api.vercel.app/properties/architecture-1836070_1280.webp",
    "price": 176261,
    "baths": 0,
    "beds": 2,
    "sqft": 1844,
    "city": 4,
    "category": 1
}'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers

PUTputProperties

http://127.0.0.1:8000/properties/3/
Bodyraw (json)
json
{
    "title": "",
    "image": "",
    "price": null,
    "baths": null,
    "beds": null,
    "sqft": null,
    "city": null,
    "category": null
}
Example Request
curl
curl --location --request PUT 'http://127.0.0.1:8000/properties/3/' \
--data '{
    "title": "",
    "image": "",
    "price": null,
    "baths": null,
    "beds": null,
    "sqft": null,
    "city": null,
    "category": null
}'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers

PATCHpatchProperties

http://127.0.0.1:8000/properties/3/
Bodyraw (json)
json
{
    "category":3
}
Example Request
curl
curl --location --request PATCH 'http://127.0.0.1:8000/properties/3/' \
--data '{
    "category":3
}'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers