Skip to content
This repository was archived by the owner on Dec 8, 2025. It is now read-only.

Latest commit

 

History

History
45 lines (33 loc) · 716 Bytes

File metadata and controls

45 lines (33 loc) · 716 Bytes

Backend

The backend is an HTTP server for author data.

Running

For testing purposes, you may run it with Docker:

docker build -t graphql-server-benchmark/backend .
docker run --network host -it graphql-server-benchmark/backend

Or, if you have a JDK8 (or JDK11) and Maven on your machine:

mvn clean vertx:run

Testing

Author data can be retrieved with HTTPie or curl:

http :8181/author/3

Which returns:

HTTP/1.1 200 OK
content-length: 102
content-type: application/json

{
    "bio": "Small controls avoids most enlightenments.",
    "firstName": "William",
    "id": 3,
    "lastName": "Raymond"
}