{"id":19791977,"url":"https://github.com/making/spring-mvc-msgpack-sample","last_synced_at":"2025-10-04T01:53:25.814Z","repository":{"id":25911891,"uuid":"29352720","full_name":"making/spring-mvc-msgpack-sample","owner":"making","description":"Spring MVC + MessagePack sample","archived":false,"fork":false,"pushed_at":"2015-01-16T15:05:38.000Z","size":96,"stargazers_count":9,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-01T01:39:00.249Z","etag":null,"topics":[],"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/making.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":"2015-01-16T14:53:52.000Z","updated_at":"2023-04-28T23:05:16.000Z","dependencies_parsed_at":"2022-08-24T07:10:58.747Z","dependency_job_id":null,"html_url":"https://github.com/making/spring-mvc-msgpack-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/making/spring-mvc-msgpack-sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/making%2Fspring-mvc-msgpack-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/making%2Fspring-mvc-msgpack-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/making%2Fspring-mvc-msgpack-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/making%2Fspring-mvc-msgpack-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/making","download_url":"https://codeload.github.com/making/spring-mvc-msgpack-sample/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/making%2Fspring-mvc-msgpack-sample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278254458,"owners_count":25956598,"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-10-03T02:00:06.070Z","response_time":53,"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":[],"created_at":"2024-11-12T07:05:32.521Z","updated_at":"2025-10-04T01:53:25.788Z","avatar_url":"https://github.com/making.png","language":"Java","readme":"## Spring MVC + MessagePack sample\n\n### Run\n\n``` bash\n$ mvn spring-boot:run\n```\n\n```\n$ curl -v \"localhost:8080/calc?left=100\u0026right=300\"\n\u003e GET /calc?left=100\u0026right=300 HTTP/1.1\n\u003e User-Agent: curl/7.30.0\n\u003e Host: localhost:8080\n\u003e Accept: */*\n\u003e\n\u003c HTTP/1.1 200 OK\n\u003c Server: Apache-Coyote/1.1\n\u003c Content-Type: application/x-msgpack;charset=UTF-8\n\u003c Transfer-Encoding: chunked\n\u003c Date: Fri, 16 Jan 2015 15:00:26 GMT\n\u003c\n��leftd�right�,�answer��s\n```\n\nContent negotiation is supported.\n\n``` bash\n$ curl -v \"localhost:8080/calc.json?left=100\u0026right=300\"\n\u003e GET /calc.json?left=100\u0026right=300 HTTP/1.1\n\u003e User-Agent: curl/7.30.0\n\u003e Host: localhost:8080\n\u003e Accept: */*\n\u003e\n\u003c HTTP/1.1 200 OK\n\u003c Server: Apache-Coyote/1.1\n\u003c Content-Type: application/json;charset=UTF-8\n\u003c Transfer-Encoding: chunked\n\u003c Date: Fri, 16 Jan 2015 15:01:44 GMT\n\u003c\n{\"left\":100,\"right\":300,\"answer\":400}\n```\n\n`Accept` header is also available.\n\n``` bash\n$ curl -v -H \"Accept: application/x-msgpack\" \"localhost:8080/calc?left=100\u0026right=300\"\n\u003e GET /calc?left=100\u0026right=300 HTTP/1.1\n\u003e User-Agent: curl/7.30.0\n\u003e Host: localhost:8080\n\u003e Accept: application/x-msgpack\n\u003e\n\u003c HTTP/1.1 200 OK\n\u003c Server: Apache-Coyote/1.1\n\u003c Content-Type: application/x-msgpack;charset=UTF-8\n\u003c Transfer-Encoding: chunked\n\u003c Date: Fri, 16 Jan 2015 15:03:39 GMT\n\u003c\n��leftd�right�,�answer��s\n```\nand\n\n``` bash\n$ curl -v -H \"Accept: application/json\" \"localhost:8080/calc?left=100\u0026right=300\"\n\u003e GET /calc?left=100\u0026right=300 HTTP/1.1\n\u003e User-Agent: curl/7.30.0\n\u003e Host: localhost:8080\n\u003e Accept: application/json\n\u003e\n\u003c HTTP/1.1 200 OK\n\u003c Server: Apache-Coyote/1.1\n\u003c Content-Type: application/json;charset=UTF-8\n\u003c Transfer-Encoding: chunked\n\u003c Date: Fri, 16 Jan 2015 15:04:13 GMT\n\u003c\n{\"left\":100,\"right\":300,\"answer\":400}\n```\n\n### Test\n\n``` bash\n$ mvn test\n```\n\n### Create executable jar\n\n``` bash\n$ mvn package\n$ java -jar target/spring-mvc-msgpack-sample*.jar\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaking%2Fspring-mvc-msgpack-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaking%2Fspring-mvc-msgpack-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaking%2Fspring-mvc-msgpack-sample/lists"}