Multiverse-Travel-Plans-Booker
Multiverse Travels Booker
REST API Kemal to plan travels in Rick and Morty's Multiverse
Features
- Jennifer, ORM for Crystal.
- Rick and Morty API, API used to get Rick and Morty's locations data
- Database use PostgreSQL.
- Unitaries and integrations specs.
Installation
- Run shards install
- Run make sam db:create
- Run make sam db:migrate
- Create and full fill database.yml -> WARN: host must be db to work with docker compose.
Endpoints
HTTP Method | Path | Description |
---|---|---|
GET | /travel_plan | Get all existing travel plans data |
GET | /travel_plan /:id | Get existing travel plan data by Id |
GET | /travel_plans/:id/locations_img | Get existing travel plan with img url source using webscrapping |
POST | /api/travel plan | Insert new customer travel plan |
PUT | /travel plan /:id | Change all locations in existing travel plan data by Id |
PATCH | /travel plan /:id/append | Add new locations in existing travel plan data by Id |
DELETE | /travel plan/:id | Delete existing travel plan data by Id |
Development
- To run spec tests:
- The db must be created and migrated, and database.yml file must be full filled with db in localhost
- Run command KEMAL_ENV=test crystal spec
Contributing
- Fork it (https://github.com/your-github-user/81917b7c5f3c52afd7dbdf49723fc8df70ac1704/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- Bruno Pavanelli - Creator and Maintainer
Repository
Multiverse-Travel-Plans-Booker
Owner
Statistic
- 0
- 0
- 0
- 0
- 7
- over 1 year ago
- June 26, 2023
License
MIT License
Links
Synced at
Sat, 21 Dec 2024 14:15:12 GMT
Languages