{"id":19439237,"url":"https://github.com/siopipin/resfullapi-express-mongo","last_synced_at":"2025-02-25T07:22:13.946Z","repository":{"id":121111492,"uuid":"179700691","full_name":"siopipin/resfullapi-express-mongo","owner":"siopipin","description":"Restfull api on express js with mongodb and mongose","archived":false,"fork":false,"pushed_at":"2019-04-05T14:48:23.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-07T21:37:09.172Z","etag":null,"topics":["javascript","mongodb","mongoose","nodejs","resfull-api","rest-api"],"latest_commit_sha":null,"homepage":null,"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/siopipin.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":"2019-04-05T14:47:13.000Z","updated_at":"2019-06-02T12:04:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"a46443e2-1563-428b-afee-dbc755d88bbe","html_url":"https://github.com/siopipin/resfullapi-express-mongo","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/siopipin%2Fresfullapi-express-mongo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siopipin%2Fresfullapi-express-mongo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siopipin%2Fresfullapi-express-mongo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siopipin%2Fresfullapi-express-mongo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/siopipin","download_url":"https://codeload.github.com/siopipin/resfullapi-express-mongo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240619712,"owners_count":19830256,"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":["javascript","mongodb","mongoose","nodejs","resfull-api","rest-api"],"created_at":"2024-11-10T15:22:07.375Z","updated_at":"2025-02-25T07:22:13.930Z","avatar_url":"https://github.com/siopipin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RESTful API with Node.js, Express.js, Mongoose and MongoDB.\n\nExample of a RESTful API built with Node.js, Express.js, Mongoose and MongoDB.\n\n## RESTful API endpoints\n\n### GET `/api/items`\n\nGet all items.\n\n+ Method: `GET`\n+ URL: `/api/items`\n\n### POST `/api/items`\n\nCreate a new item.\n\n+ Method: `POST`\n+ URL: `/api/items`\n+ Body:\n\n```js\n{\n  \"id\": \"1\",\n  \"name\": \"React.js Essentials\",\n  \"description\": \"A fast-paced guide to designing and building scalable and maintainable web apps with React.js.\",\n  \"quantity\": \"10\"\n}\n```\n\n### GET `/api/items/:itemId`\n\nGet item with specific id.\n\n+ Method: `GET`\n+ URL: `/api/items/1`\n\n### PUT `/api/items/:itemId`\n\nUpdate entire item with specific id.\n\n+ Method: `PUT`\n+ URL: `/api/items/1`\n+ Body:\n\n```js\n{\n  \"id\": \"1\",\n  \"name\": \"React.js Essentials\",\n  \"description\": \"A fast-paced guide to designing and building scalable and maintainable web apps with React.js.\",\n  \"quantity\": \"20\"\n}\n```\n\n### PATCH `/api/items/:itemId`\n\nUpdate part of the item with specific id.\n\n+ Method: `PATCH`\n+ URL: `/api/items/1`\n+ Body:\n\n```js\n{\n  \"quantity\": \"30\"\n}\n```\n\n### DELETE `/api/items/:itemId`\n\nDelete item with specific id.\n\n+ Method: `DELETE`\n+ URL: `/api/items/1`\n\n## Install\n\n`npm install`\n\n## Run\n\n0. Make sure MongoDB is running, if not: `sudo ~/mongodb/bin/mongod` (assuming you have `~/mongodb` directory).\n1. `npm run start`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiopipin%2Fresfullapi-express-mongo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiopipin%2Fresfullapi-express-mongo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiopipin%2Fresfullapi-express-mongo/lists"}