Page MenuHomePhabricator

๐ŸŒ• Get data of aliases of property
Closed, ResolvedPublic8 Estimated Story Points

Description

Description:
As tool builder I want to read data of aliases on a property so that I can use them in my tool.

AC:

  • Following endpoint is developed:

GET /entities/properties/{property_id}/aliases

  • Following error cases have to be considered:
HTTP response coderesponse payload
Property does not exist404"code": "property-not-found"
"message": "Could not find a property with the ID: {property_id}"
Invalid property ID400"code": "invalid-property-id"
"message": "Not a valid property ID: <PROPERTY_ID>"
"context": { "property-id": "<PROPERTY_ID>" }

Notes:

  • Handle HTTP conditional request headers as in GET /entities/items/{item_id}/aliases
  • Handle user authentication/authorization like in GET /entities/items/{item_id}/aliases

Possibly relevant pointers:

Event Timeline

Restricted Application added a subscriber: Aklapper. ยท View Herald TranscriptAug 10 2023, 10:58 AM

Notes from task breakdown:
Subtasks:

  • Add GET property aliases route to OAS doc
  • Create a PropertyAliasesRetriever interface
  • Create GetPropertyAliases happy path
  • Add ETag and Last-modified headers; also check whether the Property exists
  • Add the usual middlewares
  • Add property ID validation to GetPropertyAliases
  • Create openapi-validation tests for GetPropertyAliases
  • Mark "Get Property aliases" as production ready
Muhammad_Yasser_Jazirahly_WMDE renamed this task from Get data of aliases of property to ๐ŸŒ• Get data of aliases of property.Sep 19 2023, 1:12 PM