Skip to content

Feat: UTH-245 Add Endpoint to Get Listings with Parking Space#290

Merged
mittistormen merged 6 commits intomainfrom
feat/uth-245-Add-Endpoint-to-Get-Listings-With-Parking-Space
Jun 4, 2025
Merged

Feat: UTH-245 Add Endpoint to Get Listings with Parking Space#290
mittistormen merged 6 commits intomainfrom
feat/uth-245-Add-Endpoint-to-Get-Listings-With-Parking-Space

Conversation

@mittistormen
Copy link
Contributor

@mittistormen mittistormen commented May 13, 2025

Core should provide an endpoint to get listings with parking spaces with options for published, rental rule (Scored/NonScored) and validToRentForContactCode. The option validToRentForContactCode should filter the result on the residential area code of the current or upcoming contract of the contact provided so that the returned listings only contains entries that are valid to rent for the contact.

  • New adapter function to get listings from leasing
  • New route for GET /listings
  • If validToRentForContactCode is provided, get contact and filter resulting list
  • To support existing listings: update the endpoints that gets listings (listings with applicants) to also get the a parking space
  • Error handling & logging
  • Testa igenom med mer data från testmiljön

Core should provide an endpoint to get listings with parking spaces with options for published and rental rule (Scored/NonScored)

* New adapter function to get listings from leasing
* New route for GET /listings
@linear
Copy link

linear bot commented May 13, 2025

@mittistormen mittistormen marked this pull request as ready for review June 2, 2025 09:42
Copy link
Contributor

@sandnuggah sandnuggah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ser toppen ut hos mig 👍


it('responds with 200 on success with filter on published', async () => {
const listing = factory.listing.build({
id: 1337,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

h4xx0r

@mittistormen mittistormen merged commit c940291 into main Jun 4, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants