Block search party is implemented with the Rest Template and Web Client. For reference data set are coming from Berlin.de
Supported formats are :
- Json - it is suppored for both items and each item details
- GeoJson - only supported for items, because the thirdparty endpoint is broken. It doesn't return any response. e.g id = 363
Config file contains all the necessary properties.
-
For the Rest Template implementation with caching mechanism using redis cache -
a. GET /party/query?id={id}
b. POST /parties, body : {}
-
For the Web Client implementation -
a. GET /client/party/query?id={id}
b. POST /client/parties, body : {}
c. POST /client/parties/geolocation, body : {}
NOTE: Body of the post request (if sort order is given in the request body then it must contain type and order both)
{ "searchKeyWord": "", "district": "", "resultPerPage": 10, "sortOrder": { "type": "", "order": "" } }
Supported type and order are in German -
type : bezirk, plz, tage order : ASC, DESC
Postman API test using postman and curl.sh script is added to run these request from the bash terminal. Both the files exists in the /src/test/resources folder.