REST API

Entry Point

https://dashboard.appartement-construction.com/api


Annonce
Contact

à ajouter POST /annonce/count/country

à ajouter POST /annonce/count/regions


Annonce Service


Common accepted JSON Reponse


Common JSON Error Response


Method : List

POST

Returns all published annonce (perfect method for testing)

[ENTRY POINT]/annonce/index

Exemple

curl -X POST -k -H 'Content-Type: application/json' -i 'https://dashboard.appartement-construction.com/api/annonce/index' --data '{"paginate":15, "website":"ACdev"}'


Method : Show

POST

Returns one result tobe shown

[ENTRY POINT]/annonce/show


Method : Search By Zip Code and Range

POST

Returns all published annonce by zip code and range from the average point to the most wildly

[ENTRY POINT]/annonce/search/zip

Exemple

curl -X POST -k -H 'Content-Type: application/json' -i 'https://dashboard.appartement-construction.com/api/annonce/search/zip/68420/country/fr/range/10/paginate/15' --data '{"zip":"68280", "country":"fr", "range":0, "paginate":15, "website":"ACdev","order_on":"updated_at","oder_dir":"DESC","max_price":500000, "room":2}'


Method : Search By State

POST

Returns all published by state code and range

[ENTRY POINT]/annonce/search/state

Exemple

curl -X POST -k -H 'Content-Type: application/json' -i 'https://dashboard.appartement-construction.com/api/annonce/search/state' --data '{"state":"68", "country":"fr", "paginate":15, "website":"ACdev","order_on":"updated_at","order_dir":"DESC","max_price":500000, "room":2}'


Method : Search By Region

POST

Returns all published by region code and range

[ENTRY POINT]/annonce/search/region

Exemple

curl -X POST -k -H 'Content-Type: application/json' -i 'https://dashboard.appartement-construction.com/api/annonce/search/region' --data '{"region":"alsace", "country":"fr", "paginate":15, "website":"ACdev","order_on":"updated_at","order_dir":"DESC","max_price":500000, "room":2}'

Contact Service


Method : Create

POST

Returns all published annonce (perfect method for testing)

[ENTRY POINT]/contact/create

Exemple

curl -X POST -k -H 'Content-Type: application/json' -i 'https://dashboard.appartement-construction.com/api/contact/create' --data '{"prenom":"Prenom", "nom":"Nom", "email":"mail@free.fr","programme_id":"178","website":"ACdev"}'