{"id":21607892,"url":"https://github.com/ark930/online-compiler","last_synced_at":"2025-03-18T15:23:28.867Z","repository":{"id":75422353,"uuid":"145437875","full_name":"ark930/Online-Compiler","owner":"ark930","description":"一个在线编译器的简单实现","archived":false,"fork":false,"pushed_at":"2018-08-20T15:48:57.000Z","size":377,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-24T19:36:46.190Z","etag":null,"topics":["compiler","online"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/ark930.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":"2018-08-20T15:44:24.000Z","updated_at":"2023-02-16T16:13:20.000Z","dependencies_parsed_at":"2023-06-06T11:15:25.705Z","dependency_job_id":null,"html_url":"https://github.com/ark930/Online-Compiler","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/ark930%2FOnline-Compiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ark930%2FOnline-Compiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ark930%2FOnline-Compiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ark930%2FOnline-Compiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ark930","download_url":"https://codeload.github.com/ark930/Online-Compiler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244246572,"owners_count":20422461,"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":["compiler","online"],"created_at":"2024-11-24T20:34:28.259Z","updated_at":"2025-03-18T15:23:28.845Z","avatar_url":"https://github.com/ark930.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"#### 1 用户注册\n#### 接口调用说明\n\n\t请求方式：GET\n\t请求url：/register\n\t\n#### 请求参数说明\n\n参数名   |   必填   |   类型   |  示例值    | 描述\n-------- | -------- | -------- | ---------- | ---------\nname  |   是     |   string    |   小明   | 用户姓名\nemail  |   是     |   string    |       | 经度\npassword  |   是     |   string    |       | 密码\npassword_confirmation  |   是     |   string    |       | 确认密码\n\n#### 返回示例\n```\n{\n  \"id\": 1,\n  \"name\": \"ark\",\n  \"email\": \"ark@qq.com\",\n  \"updated_at\": \"2017-11-09 12:42:19\",\n  \"created_at\": \"2017-11-09 12:42:19\",\n}\n```\n#### 2 用户登录\n#### 接口调用说明\n\n\t请求方式：POST\n\t请求url：/login\n\t\n#### 请求参数说明\n参数名   |   必填   |   类型   |  示例值    | 描述\n-------- | -------- | -------- | ---------- | ---------\nemail  |   是     |   string    |       | 用户名\npassword  |   是     |   string    |       | 密码\n\n#### 返回示例\n```\n{\n  \"id\": 1,\n  \"email\": \"ark@qq.com\",\n  \"name\": \"ark\",\n  \"created_at\": \"2017-11-04 04:08:29\",\n  \"updated_at\": \"2017-11-04 04:08:29\"\n}\n```\n#### 3 用户登出\n#### 接口调用说明\n\n\t请求方式：POST\n\t请求url：/logout\n\t\n#### 请求参数说明\n无\n\n#### 4 新建终端\n#### 接口调用说明\n\n\t请求方式：POST\n\t请求url：/terminals\n\t\n#### 请求参数说明\n无\n#### 返回示例\n```\n{\n    \"pid\": 24176\n}\n```\n#### 5 保存代码\n#### 接口调用说明\n\n\t请求方式：POST\n\t请求url：/codes\n\t\n#### 请求参数说明\n\n参数名   |   必填   |   类型   |  示例值    | 描述\n-------- | -------- | -------- | ---------- | ---------\nlanguage  |   是     |   string    |  C语言    | 语言，可用值为“C语言”、“C++”、“Python2.7'”、“Python3”、“Java”、“PHP”\ncode  |   是     |   string    |       | 代码\nfilename  |   是     |   string    |   hello.c    | 保存代码的文件名\n#### 返回示例\n```\n{\n  \"id\": 1\n  \"user_id\": 1,\n  \"language\": \"c\",\n  \"code\": \"#include \u003cstdio.h\u003e\\n int main()\\n {\\n    printf(\\\"hello world\\\\n\\\");\\n    return 0;\\n }\",\n  \"filename\": \"HelloWorld.c\",\n  \"updated_at\": \"2017-11-09 12:48:05\",\n  \"created_at\": \"2017-11-09 12:48:05\",\n}\n```\n\n#### 6 运行代码\n#### 接口调用说明\n\n\t请求方式：POST\n\t请求url：/run\n\t\n#### 请求参数说明\n\n参数名   |   必填   |   类型   |  示例值    | 描述\n-------- | -------- | -------- | ---------- | ---------\nlanguage  |   是     |   string    |  C语言    | 语言，可用值为“C语言”、“C++”、“Python2.7'”、“Python3”、“Java”、“PHP”\ncode  |   是     |   string    |       | 代码\n\n\n#### 7 用户代码列表\n#### 接口调用说明\n\n\t请求方式：GET\n\t请求url：/codes\n\t\n#### 请求参数说明\n无\n#### 返回示例\n```\n[\n  {\n    \"id\": 8,\n    \"user_id\": 5,\n    \"filename\": \"HelloWorld.c\",\n    \"language\": \"c\",\n    \"code\": \"#include \u003cstdio.h\u003e\\n int main()\\n {\\n    printf(\\\"hello world\\\\n\\\");\\n    return 0;\\n }\",\n    \"created_at\": \"2017-11-09 12:48:05\",\n    \"updated_at\": \"2017-11-09 12:48:05\"\n  },\n  {\n    \"id\": 7,\n    \"user_id\": 5,\n    \"filename\": \"tt\",\n    \"language\": \"c\",\n    \"code\": \"\",\n    \"created_at\": \"2017-11-09 12:46:50\",\n    \"updated_at\": \"2017-11-09 12:46:50\"\n  }\n]\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fark930%2Fonline-compiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fark930%2Fonline-compiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fark930%2Fonline-compiler/lists"}