#167728045 Implements suppliers/hosts should create accommodation facility #52
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Implement user can make a return trip request
Description of Task to be completed?
available rooms
How should this be manually tested?
Open terminal
Clone this repo
run
npm install
run
npm run dev
Open Postman
Goto POST http://localhost:3000/api/v1/accommodation to create accommodation facility
Enter your accommodation facility details like so:
Goto POST http://localhost:3000/api/v1/room to create room for a particular accommodation facility
Enter your room details like so:
* accommodation_uuid : fd847314-71c5-4385-95ee-966c975a3ddd
* name: Gold 2
* type: 2 Bedroom flat
* cost: 50000
Goto GET http://localhost:3000/api/v1/accommodation to get all accommodation facilities
Goto GET http://localhost:3000/api/v1/accommodation/:accommodationUuid to get a particular accommodation facility plus available rooms
Any background context you want to provide?
None
What are the relevant stories?
#167728025
Screenshots (if appropriate)
![Postman 9_13_2019 2_00_08 AM](https://user-images.githubusercontent.com/39123908/64831191-65d4cb80-d5cc-11e9-8b57-3c048384b40e.png)
![Postman 9_13_2019 2_02_02 AM](https://user-images.githubusercontent.com/39123908/64831194-6cfbd980-d5cc-11e9-8dcb-b2d6a36829be.png)
![Postman 9_13_2019 2_03_04 AM](https://user-images.githubusercontent.com/39123908/64831197-738a5100-d5cc-11e9-9ac5-7891fa3ca605.png)
![Postman 9_13_2019 2_02_21 AM](https://user-images.githubusercontent.com/39123908/64831201-784f0500-d5cc-11e9-855d-e53809efce4a.png)
Questions:
None