Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vladimir-dejanovic/springboot-protobuffer-jersey-sample

Demo code for my talk https://www.slideshare.net/VladimirDejanovic2/protocol-buffers-and-microservices
https://github.com/vladimir-dejanovic/springboot-protobuffer-jersey-sample

protobuf protocol-buffers rest-api

Last synced: 19 days ago
JSON representation

Demo code for my talk https://www.slideshare.net/VladimirDejanovic2/protocol-buffers-and-microservices

Awesome Lists containing this project

README

        

# springboot-protobuffer-jersey-sample

This is sample application written in SpringBoot, which use Jersey for REST end points.

Demo example for my talk https://www.slideshare.net/VladimirDejanovic2/protocol-buffers-and-microservices

This is demo application which demonstrate very simple end points

- Plain Text
- JSON
- XML
- Protocol Buffer

```
mvn clean install

java -jar target/springboot-protobuffer-jersey-sample-0.0.1-SNAPSHOT.jar

curl http://localhost:8080/text

curl http://localhost:8080/json | json_pp

curl http://localhost:8080/xml > 1.xml ; xmllint --format 1.xml

curl http://localhost:8080/proto
```