reapit / foundations

Foundations platform mono repo
57 stars 21 forks source link

Extra Fields Request for OPL #9154

Closed Adkar closed 1 year ago

Adkar commented 1 year ago

Customer: Oliver Bernard Private (OPL)

We're migrating their property feed from Reapit JET to Foundations API and have a few fields I'm not sure about the naming of in Foundations API, namely:

Fields needed:

  1. SituationExtra - Currently being used to display a list of amenities and using Parsedown library here to generate HTML from Markdown
  2. LocationExtra (string) - looking through old Issues this is most likely pLocation
  3. Available (bool)

Reason: For displaying on website

If any other information needed let me know.

Thank you

Specification

github-actions[bot] commented 1 year ago

This issue has been updated and moved to our ‘Near Term’ column (typically completed within 0 - 4 months). We have assessed the effort required and outlined a technical specification - please take the time to review this detail. When we're ready to schedule the issue, it will be assigned to the relevant board where you can continue to track its progress to completion. For more information on our processes, please click here

plittlewood-rpt commented 1 year ago

Hi @Adkar

The Location and Situation extra fields have now been enabled for this customer. You need to explicitly request them using the extrasField query string parameter:

eg

GET https://platform.reapit.cloud/properties?extrasField=pLocation&extrasField=pSituation

and

GET https://platform.reapit.cloud/properties/ABC123456?extrasField=pLocation&extrasField=pSituation

Where a property has these values set, they will be returned in the extrasField collection in the response model for each resource.

The Available flag is governed by the property status. Please refer to the Swagger documentation for more details on understanding the options available.

Many thanks Pete