MyHome icon indicating copy to clipboard operation
MyHome copied to clipboard

Endpoint for booking an amenity

Open jmprathab opened this issue 4 years ago • 19 comments

⚠️ Is your feature request related to a problem? Please describe

  • Endpoint for booking an amenity

💡 Describe the solution you'd like

  • POST /amenities/{amenityId}/bookings
  • Update postman collection

Task Relationship

Subtask of: jmprathab/MyHome#94

jmprathab avatar Aug 08 '20 09:08 jmprathab

@jmprathab Hello, I'm new in open source, can I take this task?

zhupanovdm avatar Sep 09 '20 17:09 zhupanovdm

@zhupanovdm Sure. Request you to comment on your approach before implementing.

jmprathab avatar Sep 14 '20 13:09 jmprathab

@zhupanovdm Any update from you?

mslowiak avatar Oct 02 '20 16:10 mslowiak

Hi. Sorry for silence. There was a lack of spare time. But now I'm in.

zhupanovdm avatar Oct 03 '20 17:10 zhupanovdm

@zhupanovdm How it is going?

mslowiak avatar Oct 10 '20 09:10 mslowiak

It has been 9 days since last update, task is still up for grabs :)

mslowiak avatar Oct 12 '20 20:10 mslowiak

Shall I take this up?

tomsajuk avatar Oct 16 '20 17:10 tomsajuk

Hi @jmprathab had some queries regarding the issue. Posting it below:

  1. Should a user be able to book an amenity for another user? (neighbours maybe)
  2. Any restrictions on the number of bookings and people at a particular time-slot? (There would be rush during weekends)
  3. Can assume that the user can only book an amenity available in his community? (Would be throwing error if outside the community, so what error should I throw?)
  4. Whats the purpose of the 'price' attribute in the Amenity domain? Should the user be paying at the time of booking or its a membership fee?

If you could answer these queries would help a lot in the implementation. :) If you add your thinking that would also be good.

tomsajuk avatar Oct 18 '20 13:10 tomsajuk

Hi @jmprathab had some queries regarding the issue. Posting it below:

  1. Should a user be able to book an amenity for another user? (neighbours maybe)
  2. Any restrictions on the number of bookings and people at a particular time-slot? (There would be rush during weekends)
  3. Can assume that the user can only book an amenity available in his community? (Would be throwing error if outside the community, so what error should I throw?)
  4. Whats the purpose of the 'price' attribute in the Amenity domain? Should the user be paying at the time of booking or its a membership fee?

If you could answer these queries would help a lot in the implementation. :) If you add your thinking that would also be good.

Great thoughts BTW.

  1. Let's not do this.
  2. Yes. Booking overlap should be restricted.
  3. HTTP 403 can be returned in case. Note: Implementation has to use AuthorizationFilter rather than having the logic in the controller. master has similar implementations already.
  4. User is not expected to pay for the amenity while booking. The idea is, CommunityAdmin might be able to generate a payment for a particular user for using an amenity.

jmprathab avatar Oct 19 '20 14:10 jmprathab

@tomsajuk Are you working into this task? If not, can I please get it? Thanks 👍

@douglas-oliveira-talkdesk sure you can go ahead. Not getting time to work on this. @jmprathab assign it to him please

tomsajuk avatar Oct 24 '20 08:10 tomsajuk

can I take this?

DDmit04 avatar Mar 05 '21 21:03 DDmit04

@DDmit04 yes ;)

mslowiak avatar Mar 05 '21 22:03 mslowiak

Hello, Could I take this? Regards

jfjara avatar Sep 19 '21 16:09 jfjara

Hi @mslowiak @jmprathab could I take this task?

bayotheman avatar Oct 08 '22 01:10 bayotheman

Hi @mslowiak @jmprathab just another reminder, could I take this task?

bayotheman avatar Oct 19 '22 14:10 bayotheman

is this task up for grabs?

alexniko44 avatar Feb 12 '23 16:02 alexniko44

Hi @mslowiak, @jmprathab,

Is anyone working on this?? or its up for Grabs?

aman-junaid avatar Oct 16 '23 03:10 aman-junaid

Hi @mslowiak, @jmprathab,

Is this up for grabs? I'd like to look into it.

cjhier avatar Apr 01 '24 01:04 cjhier