Simple Application to demo the use of Protocol Buffers alongside JSON
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper
src
.gitignore
README.md
build.gradle
gradlew
gradlew.bat

README.md

spring-boot-protobuf-example

Usage

./gradlew bootRun
curl http://localhost:8080/person/json
curl http://localhost:8080/person/protoBuf

JSON response

{
    "firstName": "Jake",
    "lastName": "Partusch",
    "emailAddress": "jakepartusch@abc.com",
    "homeAddress": "123 Seasame Street",
    "phoneNumbers": [
        {
            "areaCode": 123,
            "phoneNumber": 1234567
        }
    ]
}

ProtoBuf response

�Jake��Partusch��jakepartusch@abc.com"�123 Seasame Street*��{���K