{"id":21006293,"url":"https://github.com/leninpaulino/hotels-api","last_synced_at":"2025-12-29T23:30:54.732Z","repository":{"id":127324388,"uuid":"245153821","full_name":"leninpaulino/hotels-api","owner":"leninpaulino","description":"Hotels API built using Laravel applying TDD practices.","archived":false,"fork":false,"pushed_at":"2020-04-12T15:10:23.000Z","size":174,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-09T05:38:50.995Z","etag":null,"topics":["hotels-api","laravel","rest-api","tdd","testing"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leninpaulino.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-05T12:10:55.000Z","updated_at":"2023-03-05T06:38:46.000Z","dependencies_parsed_at":"2023-08-15T23:30:27.554Z","dependency_job_id":null,"html_url":"https://github.com/leninpaulino/hotels-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leninpaulino%2Fhotels-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leninpaulino%2Fhotels-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leninpaulino%2Fhotels-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leninpaulino%2Fhotels-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leninpaulino","download_url":"https://codeload.github.com/leninpaulino/hotels-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243428421,"owners_count":20289315,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hotels-api","laravel","rest-api","tdd","testing"],"created_at":"2024-11-19T08:50:34.270Z","updated_at":"2025-12-29T23:30:54.704Z","avatar_url":"https://github.com/leninpaulino.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hotels API\n\nCreate a basic Hotel API - Coding Challenge\n\n## Installation\n\nUse [Valet](https://laravel.com/docs/6.x/valet) or [Homestead](https://laravel.com/docs/6.x/homestead) to run this project.\n\n## Usage\n\n\n```bash \ndocker-compose up -d\n```\n\nVisit [`localhost:8081`](http://localhost:8081/) to see the OpenAPI Specification. Use any HTTP Client tool you want for interacting with the API.\n\n## TO-DO\nThe workflow I'm using for building every feature of this API is:\n\n1. Design the API using the OpenAPI Spec\n2. Write tests according to the API Specification\n3. Write the code needed for making those tests pass\n\n\n- [x] Create project scaffolding\n- [x] Add SwaggerUI to docker-compose\n- [x] Add Accommodation schema to yml\n- [x] Add user authentication via API\n- [x] Add Accommodations model, migration and factory\n- [x] Add Locations model, migration and factory\n- [x] Make users able to post an accommodation\n- [x] Make users able to retrieve all accommodations\n- [x] Make users able to retrieve a single accommodation\n- [x] Make users able to update accommodations\n- [x] Make users able to delete accomodations\n- [x] Add booking endpoint than whenever is called reduces the accommodation availability, and that fails if there is no availability. \n- [x] Make all errors and exceptions to follow the RFC7807 spec\n- [x] Add tests for each validation\n- [x] Add installation instructions ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleninpaulino%2Fhotels-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleninpaulino%2Fhotels-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleninpaulino%2Fhotels-api/lists"}