{"id":20900439,"url":"https://github.com/rahul-ghadge/node-superhero-api","last_synced_at":"2026-04-09T08:09:08.516Z","repository":{"id":102526688,"uuid":"226861219","full_name":"rahul-ghadge/node-superhero-api","owner":"rahul-ghadge","description":"Super hero apis - get data related to marvel super heros in json format using node express JS","archived":false,"fork":false,"pushed_at":"2019-12-10T09:27:29.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-12T20:22:38.624Z","etag":null,"topics":["expressjs","json","nodejs","restful-api"],"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/rahul-ghadge.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-12-09T12:02:13.000Z","updated_at":"2020-08-31T16:27:05.000Z","dependencies_parsed_at":"2023-07-09T07:31:17.366Z","dependency_job_id":null,"html_url":"https://github.com/rahul-ghadge/node-superhero-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rahul-ghadge/node-superhero-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahul-ghadge%2Fnode-superhero-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahul-ghadge%2Fnode-superhero-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahul-ghadge%2Fnode-superhero-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahul-ghadge%2Fnode-superhero-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rahul-ghadge","download_url":"https://codeload.github.com/rahul-ghadge/node-superhero-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahul-ghadge%2Fnode-superhero-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267093918,"owners_count":24034958,"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","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"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":["expressjs","json","nodejs","restful-api"],"created_at":"2024-11-18T11:19:31.937Z","updated_at":"2026-04-09T08:09:08.474Z","avatar_url":"https://github.com/rahul-ghadge.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-superhero-api\nSuper hero apis - get data related to marvel super heros\n\n\nThis application exposes REST APIs for Super heros data\u003cbr\u003e\nIt will provide out the json response in return for success.\n\n\u003cb\u003e Features Implemented : \u003c/b\u003e\n\n* `package.json` file constains information about application and dependencies.\n* `server.js` file conntains configuration of application like port, body parsing, express, importing routing.\n* `routers.js` form `app \u003e routers` directory contains routing for API Endpoints, and calls respective functions from **controller.js**.\n* `controller.js` form `app \u003e controller` directory contains functions which returns data on-demand related to super heros in JSON format.\n* `superHeros.js` form `app \u003e models` directory holding static data for Super Heros.\n\n---------------------------------------------------------\n\n\u003cstrong\u003e Run server which will listen requests coming on port: 3000 \u003c/strong\u003e\n\n\u003e node server.js\n\n\n---------------------------------------------------------\n## API Endpoints\nGet all super heros via `http://host:port/super-heros`\n\n\nhttp://localhost:3000/super-heros **(GET Method)**\u003c/br\u003e\n\u0026nbsp;\u0026nbsp;- This API will return all super heros from `superHeros.js`\u003c/br\u003e\n\n\nhttp://localhost:3000/super-heros/Tony **(GET Method)**\u003c/br\u003e\n\u0026nbsp;\u0026nbsp;- This API will return Iron Mans data\u003c/br\u003e\n\n\nhttp://localhost:3000/super-heros **(POST Method)**\u003c/br\u003e\nRequest- ```{\n        \"name\": \"Black panther\",\n        \"superName\": \"Black panther\",\n        \"profession\": \"King\",\n        \"age\": 30,\n        \"canFly\": false\n    }```\n\u0026nbsp;\u0026nbsp;- This API will return success message along with all super hero present in team\u003c/br\u003e\n\n\n\nhttp://localhost:3000/super-heros/Wade **(PUT Method)**\u003c/br\u003e\nRequest:- ```{\n        \"name\": \"Wade\",\n        \"superName\": \"Deadpool\",\n        \"profession\": \"Street fighter\",\n        \"age\": 28,\n        \"canFly\": false    \n    }```\n\u0026nbsp;\u0026nbsp;- This API will update Deadpools data from flying to non-flying\u003c/br\u003e\nResponse:- ```{\n    \"message\": \"Super hero's data updated secretly\",\n    \"superHero\": {\n        \"name\": \"Wade\",\n        \"superName\": \"Deadpool\",\n        \"profession\": \"Street fighter\",\n        \"age\": 28,\n        \"canFly\": false\n    }\n}```\n\n\nhttp://localhost:3000/super-heros/Wade **(DELETE Method)**\n\u0026nbsp;\u0026nbsp;- This API will remove Wade from super heros and return back all other heros\u003c/br\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahul-ghadge%2Fnode-superhero-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frahul-ghadge%2Fnode-superhero-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahul-ghadge%2Fnode-superhero-api/lists"}