Skip to content

Conversation

@kostysh
Copy link
Contributor

@kostysh kostysh commented Jun 4, 2022

This PR adds the following API endpoints:

  • GET: /facility/{facilityId}/space/{spaceId}/availability/{date | 'default'}: returns actual availability as Availability object
  • POST: /facility/{facilityId}/space/{spaceId}/availability: creates/updates the 'default' space availability
  • POST: /facility/{facilityId}/space/{spaceId}/availability/{date}: adds availability at the date (formatted as yyyy-DD-MM)

Both POST endpoints accepting as requestBody a valid Availability object.

NOTE:

  • when creating a default availability of type its value will be overwritten by the new value
  • when creating availability for date its value will be incremented

kostysh added 2 commits June 3, 2022 17:41
Created FacilityController; FacilitiesService renamed to
FacilityService; added createDefaultAvailability function in the
SpaceAvailabilityRepository class
@kostysh kostysh self-assigned this Jun 4, 2022
@kostysh kostysh added D-easy Difficulty: easy P-high Priority: high T-feature Type: feature labels Jun 4, 2022
@kostysh kostysh requested review from Galeaf11 and mfw78 June 4, 2022 15:17
Copy link
Contributor

@Galeaf11 Galeaf11 left a comment

Choose a reason for hiding this comment

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

All is ok

@mfw78 mfw78 merged commit 98be7c6 into main Jun 6, 2022
@github-actions
Copy link

github-actions bot commented Jun 6, 2022

🎉 This PR is included in version 1.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@mfw78 mfw78 deleted the feat/avail-apis branch June 6, 2022 16:01
@xdaluca xdaluca added this to the ETHBarcelona & ETHcc milestone Jun 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

D-easy Difficulty: easy P-high Priority: high released T-feature Type: feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants