Simple Crud for managing and administering homes with a database and all the services of the CRUD concept.
You must make sure to create a database according to the models and controllers of the project, so that the edpoints return the correct content, you will find the queries to create the database in the root folder in a file called 'sql'.
-
run the project:
npm run dev
-
Port:
http://localhost:8081
-
Don't forget to change the MySQL user settings in
./config/db.config.js
- Create : HTTP Method: POST.
POST - http:/localhost:8081/api/viviendas/
- Read :
HTTP Method: GET.
GET - http://localhost:8081/api/viviendas/
HTTP Method: GET [for specific id].
GET - http://localhost:8081/api/viviendas/{id}
- Update : HTTP Method: PUT.
PUT - http://localhost:8081/api/viviendas/{id}
- Delete : HTTP Method: DELETE.
DELETE - http://localhost:8081/api/viviendas/{id}
- Create : HTTP Method: POST.
POST - http:/localhost:8081/api/contratos/
- Read :
HTTP Method: GET.
GET - http://localhost:8081/api/contratos/
HTTP Method: GET [for specific id].
GET - http://localhost:8081/api/contratos/{id}
- Update : HTTP Method: PUT.
PUT - http://localhost:8081/api/contratos/{id}
- Delete : HTTP Method: DELETE.
DELETE - http://localhost:8081/api/contratos/{id}
- Create : HTTP Method: POST.
POST - http:/localhost:8081/api/propietarios/
- Read :
HTTP Method: GET.
GET - http://localhost:8081/api/propietarios/
HTTP Method: GET [for specific id].
GET - http://localhost:8081/api/propietarios/{id}
- Update : HTTP Method: PUT.
PUT - http://localhost:8081/api/propietarios/{id}
- Delete : HTTP Method: DELETE.
DELETE - http://localhost:8081/api/propietarios/{id}
- Create : HTTP Method: POST.
POST - http:/localhost:8081/api/inquilinos/
- Read :
HTTP Method: GET.
GET - http://localhost:8081/api/inquilinos/
HTTP Method: GET [for specific id].
GET - http://localhost:8081/api/inquilinos/{id}
- Update : HTTP Method: PUT.
PUT - http://localhost:8081/api/inquilinos/{id}
- Delete : HTTP Method: DELETE.
DELETE - http://localhost:8081/api/inquilinos/{id}