{"id":16119483,"url":"https://github.com/downgoon/jresty","last_synced_at":"2025-04-06T10:19:32.220Z","repository":{"id":57719724,"uuid":"76770405","full_name":"downgoon/jresty","owner":"downgoon","description":"a tranditional but rapid development RESTful API framework based on Struts2 and Spring","archived":false,"fork":false,"pushed_at":"2017-09-05T10:56:41.000Z","size":250,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-12T15:51:56.301Z","etag":null,"topics":["jresty","rest-api","ssh"],"latest_commit_sha":null,"homepage":null,"language":"Java","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/downgoon.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}},"created_at":"2016-12-18T08:00:50.000Z","updated_at":"2017-11-07T14:35:43.000Z","dependencies_parsed_at":"2022-09-26T22:10:33.733Z","dependency_job_id":null,"html_url":"https://github.com/downgoon/jresty","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/downgoon%2Fjresty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/downgoon%2Fjresty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/downgoon%2Fjresty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/downgoon%2Fjresty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/downgoon","download_url":"https://codeload.github.com/downgoon/jresty/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247464465,"owners_count":20943010,"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":["jresty","rest-api","ssh"],"created_at":"2024-10-09T20:54:15.313Z","updated_at":"2025-04-06T10:19:32.200Z","avatar_url":"https://github.com/downgoon.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jresty\n\n- jresty-rest-example\n- jresty-rest\n\n- jresty-data-orm\n- jresty-data-cache\n- jresty-data-http\n\n- jresty-commons\n\n- jresty-security\n\n\n\n---\n\n# jresty-rest-example\n\n[hello-world-jresty](https://github.com/downgoon/hello-world-jresty): a quick start example\n\n## how to run\n\n- **run in eclipse**\n\n\torg.example.jresty.runner.JettyEmbedRunner\n\t\n- **run with maven**\n\t\n\t// in rd env (development environment)\n\tmvn -Djetty.port=8080 jetty:run -Dmaven.test.skip=true -Prd\n\t\n\t// in op env (production environment)\n\tmvn -Djetty.port=8080 jetty:run -Pop\n\t\n\t\n## how to access\n\n## multi representation\n\n\tcurl http://localhost:8080/jresty/ping.json -i\n\tcurl http://localhost:8080/jresty/ping.jsonp -i\n\tcurl http://localhost:8080/jresty/ping.xml -i\n\tcurl http://localhost:8080/jresty/ping.html -i\n\tcurl http://localhost:8080/jresty/ping.jsp -i\n\t\n\t# redirect support for .html|.jsp\n\thttp://localhost:8080/jresty/ping.jsp?redirect=http://www.baidu.com\n\thttp://localhost:8080/jresty/ping.html?redirect=http://www.baidu.com\n\t\n\n## two URLs for one method\n\t\n\t# GET ping.json is equal to GET ping-index.json\n\t# POST ping.json is equal to GET ping-create.json\n\t# DELETE ping.json is equal to GET ping-remove.json\n\t# PUT ping.json is equal to GET ping-update.json\n\t# GET ping/ABC.json is equal to GET ping-view.json?id=ABC\n\n\tcurl http://localhost:8080/jresty/ping.json -i\n\tcurl http://localhost:8080/jresty/ping-index.json -i\n\t\n\n## some examples \n\n\t$ curl http://localhost:8080/jresty/ping.json -i\n\tHTTP/1.1 200 OK\n\tContent-Language: zh-cn\n\tAccess-Control-Allow-Origin: *\n\tContent-Length: 97\n\tContent-Type: application/json;charset=UTF-8\n\tCache-Control: max-age=0\n\tServer: Jetty(7.2.0.v20101020)\n\t\n\t$ curl http://localhost:8080/jresty/ping.xml -i\n\tHTTP/1.1 200 OK\n\tContent-Language: zh-cn\n\tAccess-Control-Allow-Origin: *\n\tContent-Length: 200\n\tContent-Type: application/xml;charset=UTF-8\n\tCache-Control: max-age=0\n\tServer: Jetty(7.2.0.v20101020)\n\n\t\u003cio.downgoon.jresty.rest.model.UnifiedResponse\u003e\n  \t\t\u003cstatus\u003e200\u003c/status\u003e\n  \t\t\u003cmessage\u003eOK\u003c/message\u003e\n  \t\t\u003cdebug\u003e20161218152559257318:系统正在运行\u003c/debug\u003e\n\t\u003c/io.downgoon.jresty.rest.model.UnifiedResponse\n\t\n\t\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdowngoon%2Fjresty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdowngoon%2Fjresty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdowngoon%2Fjresty/lists"}