{"id":21922792,"url":"https://github.com/hennyfeliz/nodejs-express-mysql-api-rest","last_synced_at":"2026-04-13T03:03:48.031Z","repository":{"id":142277578,"uuid":"530909947","full_name":"hennyfeliz/nodejs-express-mysql-api-rest","owner":"hennyfeliz","description":"A simple rest api with nodejs and express, plus databases with mysql","archived":false,"fork":false,"pushed_at":"2022-09-12T21:50:24.000Z","size":35,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T11:15:19.399Z","etag":null,"topics":["apirest","database","expressjs","mysql","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/hennyfeliz.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":"2022-08-31T02:37:43.000Z","updated_at":"2023-02-07T07:15:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"01f5cfbd-2c8d-4643-afc0-42c38e8ca894","html_url":"https://github.com/hennyfeliz/nodejs-express-mysql-api-rest","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/hennyfeliz%2Fnodejs-express-mysql-api-rest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hennyfeliz%2Fnodejs-express-mysql-api-rest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hennyfeliz%2Fnodejs-express-mysql-api-rest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hennyfeliz%2Fnodejs-express-mysql-api-rest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hennyfeliz","download_url":"https://codeload.github.com/hennyfeliz/nodejs-express-mysql-api-rest/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hennyfeliz%2Fnodejs-express-mysql-api-rest/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259204801,"owners_count":22821159,"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":["apirest","database","expressjs","mysql","nodejs"],"created_at":"2024-11-28T21:07:14.124Z","updated_at":"2026-04-13T03:03:47.955Z","avatar_url":"https://github.com/hennyfeliz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NodeJS Controller of housing and housing contracts API REST - MySQL, Express.\n\nSimple Crud for managing and administering homes with a database and all the services of the CRUD concept.\n\nYou 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'.\n\n* run the project: `npm run dev`\n\n* Port: `http://localhost:8081`\n* Don't forget to change the MySQL user settings in `./config/db.config.js`\n\n## Methods of use [you can use Postman to try it]\n\n# * VIVIENDAS * \n\n1. Create :\nHTTP Method: POST.\n```\nPOST - http:/localhost:8081/api/viviendas/\n```\n\n2. Read :\n\nHTTP Method: GET.\n```\nGET -  http://localhost:8081/api/viviendas/\n```\n\nHTTP Method: GET [for specific id].\n```\nGET -  http://localhost:8081/api/viviendas/{id}\n```\n\n3. Update :\nHTTP Method: PUT.\n```\nPUT - http://localhost:8081/api/viviendas/{id}\n```\n\n4. Delete :\nHTTP Method: DELETE.\n```\nDELETE  - http://localhost:8081/api/viviendas/{id}\n```\n\n\n# * CONTRATOS * \n\n1. Create :\nHTTP Method: POST.\n```\nPOST - http:/localhost:8081/api/contratos/\n```\n\n2. Read :\n\nHTTP Method: GET.\n```\nGET -  http://localhost:8081/api/contratos/\n```\n\nHTTP Method: GET [for specific id].\n```\nGET -  http://localhost:8081/api/contratos/{id}\n```\n\n3. Update :\nHTTP Method: PUT.\n```\nPUT - http://localhost:8081/api/contratos/{id}\n```\n\n4. Delete :\nHTTP Method: DELETE.\n```\nDELETE  - http://localhost:8081/api/contratos/{id}\n```\n\n\n\n# * PROPIETARIOS * \n\n1. Create :\nHTTP Method: POST.\n```\nPOST - http:/localhost:8081/api/propietarios/\n```\n\n2. Read :\n\nHTTP Method: GET.\n```\nGET -  http://localhost:8081/api/propietarios/\n```\n\nHTTP Method: GET [for specific id].\n```\nGET -  http://localhost:8081/api/propietarios/{id}\n```\n\n3. Update :\nHTTP Method: PUT.\n```\nPUT - http://localhost:8081/api/propietarios/{id}\n```\n\n4. Delete :\nHTTP Method: DELETE.\n```\nDELETE  - http://localhost:8081/api/propietarios/{id}\n```\n# * INQUILINOS * \n\n1. Create :\nHTTP Method: POST.\n```\nPOST - http:/localhost:8081/api/inquilinos/\n```\n\n2. Read :\n\nHTTP Method: GET.\n```\nGET -  http://localhost:8081/api/inquilinos/\n```\n\nHTTP Method: GET [for specific id].\n```\nGET -  http://localhost:8081/api/inquilinos/{id}\n```\n\n3. Update :\nHTTP Method: PUT.\n```\nPUT - http://localhost:8081/api/inquilinos/{id}\n```\n\n4. Delete :\nHTTP Method: DELETE.\n```\nDELETE  - http://localhost:8081/api/inquilinos/{id}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhennyfeliz%2Fnodejs-express-mysql-api-rest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhennyfeliz%2Fnodejs-express-mysql-api-rest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhennyfeliz%2Fnodejs-express-mysql-api-rest/lists"}