{"id":21835479,"url":"https://github.com/plopezgit/sprint5_t1_springboot_api_rest_crud_mysql","last_synced_at":"2026-04-18T14:34:08.060Z","repository":{"id":217461970,"uuid":"742966569","full_name":"plopezgit/Sprint5_T1_SpringBoot_API_REST_CRUD_MySQL","owner":"plopezgit","description":"Build a CRUD API REST with MySQL persistence.","archived":false,"fork":false,"pushed_at":"2024-01-23T18:16:36.000Z","size":211,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-21T14:23:58.352Z","etag":null,"topics":["api","api-rest","dto-entity-mapper","dto-pattern","entity","jpa","jparepository","model-mapper","mysql","openapi3","swagger","swagger-ui"],"latest_commit_sha":null,"homepage":"https://www.ibm.com/es-es/topics/rest-apis","language":"Java","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/plopezgit.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":"2024-01-13T22:33:36.000Z","updated_at":"2024-01-18T01:57:53.000Z","dependencies_parsed_at":"2024-01-17T17:32:30.914Z","dependency_job_id":"b47f1e2f-4f80-4e8a-9ce8-fe2fa1471786","html_url":"https://github.com/plopezgit/Sprint5_T1_SpringBoot_API_REST_CRUD_MySQL","commit_stats":null,"previous_names":["plopezgit/sprint5_t1_springboot_api_rest_crud_mysql"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/plopezgit/Sprint5_T1_SpringBoot_API_REST_CRUD_MySQL","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plopezgit%2FSprint5_T1_SpringBoot_API_REST_CRUD_MySQL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plopezgit%2FSprint5_T1_SpringBoot_API_REST_CRUD_MySQL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plopezgit%2FSprint5_T1_SpringBoot_API_REST_CRUD_MySQL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plopezgit%2FSprint5_T1_SpringBoot_API_REST_CRUD_MySQL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/plopezgit","download_url":"https://codeload.github.com/plopezgit/Sprint5_T1_SpringBoot_API_REST_CRUD_MySQL/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plopezgit%2FSprint5_T1_SpringBoot_API_REST_CRUD_MySQL/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31972413,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["api","api-rest","dto-entity-mapper","dto-pattern","entity","jpa","jparepository","model-mapper","mysql","openapi3","swagger","swagger-ui"],"created_at":"2024-11-27T20:21:19.592Z","updated_at":"2026-04-18T14:34:08.034Z","avatar_url":"https://github.com/plopezgit.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sprint5_T1_Spring Boot_API_REST_CRUD_MySQL\n\n## Requirement:\n\nWe have an entity called  FlorEntity , which has the following properties:\n- Integer id\n- String name\n- String country\n\nWe also have a DTO called  FlorDTO , which will have the same properties as the Branch entity, adding one:\n\n- String type\n\nThis property, depending on the country of origin of the flower, must indicate whether it is \"EU\" or \"Non-EU\". To do this, you can have a private list in the same DTO (for example: List\u003cString\u003e countries), with the countries that are part of the EU.\n\nTaking advantage of the JPA specification  , you will have to persist the  FlorEntity entity to a MySQL  database  , following the MVC pattern  .\n\nThe advice is   to use  FlorDTO in the Controller, and FlorEntity  in the Repository. The service layer will be in charge of translating between the two.\n\nFor this, depending on the main package, you will create a package structure, where you will place the classes you need:\n\n- cat.itacademy.barcelonactiva.cognoms.nom.s05.t01.n02.controllers\n\n- cat.itacademy.barcelonactiva.surnames.nom.s05.t01.n02.model.domain\n\n- cat.itacademy.barcelonactiva.surnames.name.s05.t01.n02.model.dto\n\n- cat.itacademy.barcelonactiva.cognoms.nom.s05.t01.n02.model.services\n\n- cat.itacademy.barcelonactiva.cognoms.nom.s05.t01.n02.model.repository\n\nThe class located in the controllers package ( FlorController , for example), must be able to respond to the following requests to update and consult information:\n\n- http://localhost:9001/flor/add\n- http://localhost:9001/flor/update\n- http://localhost:9001/flor/delete/{id}\n- http://localhost:9001/flor/getOne/{id}\n- http://localhost:9001/flor/getAll\n\nAs you can see, in the application.properties file, you must configure that the port to use is 9001.\n\nImportant\n\nYou will need to consider good API design practices, using correct error codes and responses in case of incorrect invocations. (You can check information about ResponseEntity).\nYou should include  swagger  so that any developer can get a quick idea of ​​the resources available in the API.\n\nVery important\n\nIn addition to the Git link for the solved assignment,  you must include at least two links , other than the resources we have provided you with on campus, that have helped you, or could have helped you, to solve the entire assignment or some parts.\n\n\n## Appendix\n\n### Documentation\n![](/Users/pedrolopez/Proyectos/S5T1_SpringBoot_API_REST_CRUD_MySQL/Documentation.png)\n\n### Postman\n![](/Users/pedrolopez/Proyectos/S5T1_SpringBoot_API_REST_CRUD_MySQL/Postman.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplopezgit%2Fsprint5_t1_springboot_api_rest_crud_mysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplopezgit%2Fsprint5_t1_springboot_api_rest_crud_mysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplopezgit%2Fsprint5_t1_springboot_api_rest_crud_mysql/lists"}