{"id":22316771,"url":"https://github.com/yusufoglu218/cleaner-booking-api","last_synced_at":"2026-04-13T20:02:21.187Z","repository":{"id":170382489,"uuid":"574692985","full_name":"yusufoglu218/cleaner-booking-api","owner":"yusufoglu218","description":"Cleaner booking rest api using SpringBoot and MySql","archived":false,"fork":false,"pushed_at":"2024-03-21T13:44:41.000Z","size":113,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T03:29:17.558Z","etag":null,"topics":["booking","booking-system","java","java11","jpa","maven","mysql","relational-databases","rest","rest-api","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yusufoglu218.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-12-05T21:50:28.000Z","updated_at":"2022-12-05T23:58:03.000Z","dependencies_parsed_at":"2024-03-21T14:57:01.135Z","dependency_job_id":null,"html_url":"https://github.com/yusufoglu218/cleaner-booking-api","commit_stats":null,"previous_names":["yusufoglu218/cleaner-booking-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yusufoglu218/cleaner-booking-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusufoglu218%2Fcleaner-booking-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusufoglu218%2Fcleaner-booking-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusufoglu218%2Fcleaner-booking-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusufoglu218%2Fcleaner-booking-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yusufoglu218","download_url":"https://codeload.github.com/yusufoglu218/cleaner-booking-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusufoglu218%2Fcleaner-booking-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31768649,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["booking","booking-system","java","java11","jpa","maven","mysql","relational-databases","rest","rest-api","spring-boot"],"created_at":"2024-12-03T23:07:50.858Z","updated_at":"2026-04-13T20:02:21.172Z","avatar_url":"https://github.com/yusufoglu218.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cleaner Booking Rest Api\n\nCleaner Booking rest api that includes the following operations using spring boot and mySql DB.\n- Retrieving available cleaner list to book\n- Booking with one or more cleaners \n- Retrieving booking detail\n\n\n## Prerequisites\n- Java 11\n- [Maven](https://maven.apache.org/guides/index.html)\n- [MySql DB](https://www.mysql.com/downloads/)\n\n\n##  Build and Run application\n\n### Setup database tables\n- Run sql scripts in the [create_table.sql](src/main/resources/sql/create_table.sql) to create tables.\n- To add sample data [insert_data.sql](src/main/resources/sql/insert_data.sql) can be used.\n\n###  Build and Run application\n-   _GOTO \u003e_ **~/absolute-path-to-directory/cleaner-booking-api**  \nand try below command in terminal\n    \u003e **```mvn spring-boot:run```** it will run application as spring boot application\n\n    or\n    \u003e **```mvn clean install```** it will build application and create **jar** file under target directory\n\n    Run jar file from below path with given command\n    \u003e **```java -jar ~/path-to-cleaner-booking-api/target/cleaner-booking-api-0.0.1-SNAPSHOT.jar```**\n\n### Model class\n   Below are the model classes to perform database operations.  \n \n```\n    public class Booking {\n        private Long id;\n        private Long customerId;\n    }\n    \n    public class Cleaner {\n        private Long id;\n        private String name;\n        private String surname;\n    }\n    \n    public interface CleanerAvailableTime {\n        Long getId();\n        String getName();   \n        String getSurName();   \n        LocalDateTime getStartTime();  \n        LocalDateTime getEndTime();\n    }\n\n    public class BookingCleaner {\n        private Long id;\n        private Long bookingId;  \n        private Long cleanerId;  \n    }\n    \n    public class BookingTimePeriod {\n        private Long id;\n        private Long bookingId;\n        private Long timePeriodId;\n        private Status status;\n        private BookingType bookingType;\n    }\n    \n    public class TimePeriod {\n        private Long id;\n        private LocalDateTime startTime;\n        private LocalDateTime endTime;\n        private String status;\n    }\n   ```\n\n### Endpoints\n\n#### Swagger and root\n\n|HTTP Method|URL|Description|\n|---|---|---|\n|`GET`|http://localhost:8080/ | Root page |\n|`GET`|http://localhost:8080/swagger-ui/index.html | Swagger UI page |\n|`GET`|http://localhost:8080/actuator | Actuator page |\n\n#### Booking Service\n\n|HTTP Method|URL|Description|\n|---|---|---|\n|`POST`|http://localhost:8080/api/v1/booking | Create new Booking |\n|`PATCH`|http://localhost:8080/api/v1/booking/{id} | Update Booking by ID |\n|`GET`|http://localhost:8080/api/v1/booking/{id} | Get Booking by ID |\n\n#### Cleaner Service\n\n|HTTP Method|URL|Description|\n|---|---|---|\n|`GET`|http://localhost:8080/api/v1/cleaner/available?date={date}\u0026startTime={startTime}\u0026duration={duration}\u0026numberOfCleaner={numberOfCleaner} | Get available cleaner list |\n\n#### Postman Collection\nPostman collection file for all operations: [Cleaner-Booking-Api.postman_collection.json](src/main/resources/postman/Cleaner-Booking-Api.postman_collection.json)\n\n### Database ER Diagram\n\nThe ER Diagram of Database that is designed by requirements \n\n![](src/main/resources/images/db_table_diagram.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyusufoglu218%2Fcleaner-booking-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyusufoglu218%2Fcleaner-booking-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyusufoglu218%2Fcleaner-booking-api/lists"}