Page MenuHomePhabricator

🐊 Provide data of aliases in a given language on properties
Closed, ResolvedPublic5 Estimated Story Points

Description

As a tool developer I want to get data of aliases of properties so I can show them in my tool.

GET /entities/properties/{property_id}/aliases/{language_code}

Notes

Error cases to consider

HTTP response coderesponse payload
Property does not exist 404"code": "property-not-found"
"message": "Could not find a property with the ID: {property_id}"
Invalid property ID 400"code": "invalid-property-id"
"message": "Not a valid property ID: {property_id}"
"context": {"property": "{property-id}"}
Invalid language code 400{ "code": "invalid-language-code", "message": "Not a valid language code: {language_code}"}
Property does not have aliases in the give language 404{ "code": "aliases-not-defined", "message": "Property with the ID {property_id} does not have aliases in the language: {language_code}" }

Possibly relevant pointers:

Event Timeline

β€’ Muhammad_Yasser_Jazirahly_WMDE renamed this task from Provide data of aliases in a given language on properties to 🐊Provide data of aliases in a given language on properties.Sep 22 2023, 2:24 PM
β€’ Muhammad_Yasser_Jazirahly_WMDE renamed this task from 🐊Provide data of aliases in a given language on properties to 🐊 Provide data of aliases in a given language on properties.