{"id":20173736,"url":"https://github.com/codeestx/my-restful-api","last_synced_at":"2025-09-18T00:45:32.728Z","repository":{"id":135858047,"uuid":"68533604","full_name":"codeestX/my-restful-api","owner":"codeestX","description":"My RESTful API based on node.js \u0026 koa2","archived":false,"fork":false,"pushed_at":"2016-10-09T15:23:48.000Z","size":5641,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T03:17:34.465Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codeestX.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2016-09-18T16:34:39.000Z","updated_at":"2019-08-16T05:57:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"764d490d-1dc6-4e6f-a909-01ec35ad13e9","html_url":"https://github.com/codeestX/my-restful-api","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/codeestX%2Fmy-restful-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeestX%2Fmy-restful-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeestX%2Fmy-restful-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeestX%2Fmy-restful-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeestX","download_url":"https://codeload.github.com/codeestX/my-restful-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248148247,"owners_count":21055548,"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":[],"created_at":"2024-11-14T01:37:39.613Z","updated_at":"2025-09-18T00:45:27.678Z","avatar_url":"https://github.com/codeestX.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"基于node.js + koa2搭建的restfulapi demo，扩展自[learn-javascript](https://github.com/michaelliao/learn-javascript)，基本涵盖了主要的api类型，联动文章：[编写](http://codeest.cn/2016/09/21/web-api-code/) [部署](http://codeest.cn/2016/09/24/web-api/)\n\n#Usage\n项目目录下执行，`node start`\n\n* GET (json)  \n`http://localhost:3000/api/geeknews/version`\n`http://localhost:3000/api/products`\n\n* GET (image)  \n`http://localhost:3000/img/test.jpg`\n\n* GET (file)  \n`http://localhost:3000/apk/geeknews.apk`\n\n* POST (json)  \n`http://localhost:3000/api/products`  \nbody {\"name\":\"XBox\",\"price\":3999}\n\n* DELETE (json)  \n`http://localhost:3000/api/products/p1`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeestx%2Fmy-restful-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeestx%2Fmy-restful-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeestx%2Fmy-restful-api/lists"}