Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/plopezgit/sprint4_extra_springboot_api_rest_postgresql

Build a CRUD Web Application with PostgreSQL persistence.
https://github.com/plopezgit/sprint4_extra_springboot_api_rest_postgresql

api api-rest crud crud-api crud-operation postgres postgresql postman webservice

Last synced: 1 day ago
JSON representation

Build a CRUD Web Application with PostgreSQL persistence.

Awesome Lists containing this project

README

        

# Sprint4_T2_Spring Boot_PostgreSQL

We have an entity called "Fruit", which has the following properties:

- int id
- String name
- Int kilograms

Taking advantage of the JPA specification, you will have to persist this entity to an **MongoDB database**, following the MVC pattern. For this, depending on the main Package, you will create a package structure, where you will place the classes you need:

cat.itacademy.barcelonactiva.surnames.name.s04.t02.n01.controllers
cat.itacademy.barcelonactiva.surnames.name.s04.t02.n01.model.domain
cat.itacademy.barcelonactiva.surnames.name.s04.t02.n01.model.services
cat.itacademy.barcelonactiva.surnames.nom.s04.t02.n01.model.repository

The class located in the controllers package (FruitaController, for example), must be able to respond to the following requests to update and consult information:

- http://localhost:8080/fruit/add
- http://localhost:8080/fruit/update
- http://localhost:8080/fruita/delete/{id}
- http://localhost:8080/fruita/getOne/{id}
- http://localhost:8080/fruit/getAll

>Important:
You 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).

>Very important
In addition to the Git link for the solved assignment, you must include at least two different links to the resources we have provided you with on campus, which have helped you, or could have helped you, to solve the entire assignment or some parts