Discussions
Parametros al invocar Property Search con filtros
Que tal, estoy intentando consumir la API de search de properties.
Estoy armando la url desde java.
Cuando invoco a la API sin encodear:
https://www.tokkobroker.com/api/v1/property/search?lang=es_ar&format=json&key=APIKEY&data={"current_localization_id":1,"current_localization_type":"country","price_from":0,"price_to":10000000,"operation_types":[1,2,3],"property_types":[1,2,3,4,5,6,7],"filters":[["branch_id","=","66038"]]}
Me tira el error
Exception: IllegalArgumentException
Code: DGB-500-FW
DevMessage: Internal server error
excMessage: Not enough variable values available to expand '"current_localization_id"'
Path: /api/test/66038
traceId: df6d25fb-24e6-4e60-8458-e2e44cd19d52
Date: Wed May 01 20:21:14 ART 2024
Y cuando encodeo el atributo data:
Me da el error:
Exception: BadRequest
Code: DGB-500-FW
DevMessage: Internal server error
excMessage: 400 Bad Request: "Error parsing search data object: No JSON object could be decoded"
Path: /api/test/66038
traceId: 18577134-e292-4e48-8bd2-e468472c9865
Date: Wed May 01 20:25:16 ART 2024
Que estaria haciendo mal...?
Desde ya muchas gracias!