{"id":19791991,"url":"https://github.com/making/spring-mvc-tutorial-protobuf","last_synced_at":"2025-10-16T02:50:53.662Z","repository":{"id":21761325,"uuid":"25083407","full_name":"making/spring-mvc-tutorial-protobuf","owner":"making","description":"ProtocolBuffers + Spring MVC 4.1","archived":false,"fork":false,"pushed_at":"2014-12-14T15:58:19.000Z","size":128,"stargazers_count":4,"open_issues_count":0,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-01T01:39:01.457Z","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":"2014-10-11T15:10:26.000Z","updated_at":"2021-03-07T17:57:48.000Z","dependencies_parsed_at":"2022-08-19T22:00:50.411Z","dependency_job_id":null,"html_url":"https://github.com/making/spring-mvc-tutorial-protobuf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/making/spring-mvc-tutorial-protobuf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/making%2Fspring-mvc-tutorial-protobuf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/making%2Fspring-mvc-tutorial-protobuf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/making%2Fspring-mvc-tutorial-protobuf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/making%2Fspring-mvc-tutorial-protobuf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/making","download_url":"https://codeload.github.com/making/spring-mvc-tutorial-protobuf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/making%2Fspring-mvc-tutorial-protobuf/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265905116,"owners_count":23846696,"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-12T07:05:38.490Z","updated_at":"2025-10-16T02:50:48.611Z","avatar_url":"https://github.com/making.png","language":"Java","readme":"Sample app using ProtocolBuffers + Spring MVC\n\n### Get protobuf\n\n``` bash\n$ curl -v http://localhost:8080/person\n\u003e GET /person 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 X-Protobuf-Schema: src/main/proto/tutorial/addressbook.proto\n\u003c X-Protobuf-Message: tutorial.Person\n\u003c Content-Type: application/x-protobuf;charset=UTF-8\n\u003c Content-Length: 45\n\u003c Date: Sun, 14 Dec 2014 15:39:05 GMT\n\u003c\n\nJohn Doe�\tjdoe@example.com\"\n```\n\n### Get JSON\n\n``` bash\n$ curl -v http://localhost:8080/person.json\n\u003e GET /person.json 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: Sun, 14 Dec 2014 15:39:42 GMT\n\u003c\n{\"name\": \"John Doe\",\"id\": 1234,\"email\": \"jdoe@example.com\",\"phone\": [{\"number\": \"555-4321\",\"type\": \"HOME\"}]}\n```\n\nor\n\n``` bash\n$ curl -v -H \"Accept: application/json\" http://localhost:8080/person\n\u003e GET /person 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: Sun, 14 Dec 2014 15:40:35 GMT\n\u003c\n{\"name\": \"John Doe\",\"id\": 1234,\"email\": \"jdoe@example.com\",\"phone\": [{\"number\": \"555-4321\",\"type\": \"HOME\"}]}\n```\n### Get XML\n\n``` bash\n$ curl -v http://localhost:8080/person.xml\n\u003e GET /person.xml 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/xml;charset=UTF-8\n\u003c Transfer-Encoding: chunked\n\u003c Date: Sun, 14 Dec 2014 15:41:48 GMT\n\u003c\n\u003cPerson\u003e\u003cname\u003eJohn Doe\u003c/name\u003e\u003cid\u003e1234\u003c/id\u003e\u003cemail\u003ejdoe@example.com\u003c/email\u003e\u003cphone\u003e\u003cnumber\u003e555-4321\u003c/number\u003e\u003ctype\u003eHOME\u003c/type\u003e\u003c/phone\u003e\u003c/Person\u003e\n```\n\nor\n\n``` bash\n$ curl -v -H \"Accept: application/xml\" http://localhost:8080/person\n\u003e GET /person HTTP/1.1\n\u003e User-Agent: curl/7.30.0\n\u003e Host: localhost:8080\n\u003e Accept: application/xml\n\u003e\n\u003c HTTP/1.1 200 OK\n\u003c Server: Apache-Coyote/1.1\n\u003c Content-Type: application/xml;charset=UTF-8\n\u003c Transfer-Encoding: chunked\n\u003c Date: Sun, 14 Dec 2014 15:42:26 GMT\n\u003c\n\u003cPerson\u003e\u003cname\u003eJohn Doe\u003c/name\u003e\u003cid\u003e1234\u003c/id\u003e\u003cemail\u003ejdoe@example.com\u003c/email\u003e\u003cphone\u003e\u003cnumber\u003e555-4321\u003c/number\u003e\u003ctype\u003eHOME\u003c/type\u003e\u003c/phone\u003e\u003c/Person\u003e\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaking%2Fspring-mvc-tutorial-protobuf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaking%2Fspring-mvc-tutorial-protobuf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaking%2Fspring-mvc-tutorial-protobuf/lists"}