Slide 54
Slide 54 text
Small GraphQL vs. Big REST
Rest API Response:
{
"stationnumber": 1866,
"name": "Frankfurt (Main) Hbf",
"facilities": [
{
"equipmentnumber": 10313104,
"type": "ESCALATOR",
"description": "zu Gleis 103/104 (S-Bahn)",
"geocoordX": 8.66231455,
"geocoordY": 50.10727055,
"state": "INACTIVE",
"stateExplanation": "under construction",
"stationnumber": 1866
},
{
"equipmentnumber": 10313109,
"type": "ESCALATOR",
"description": "zu Gleis 101/102 (S-Bahn)",
"geocoordX": 8.66341625,
"geocoordY": 50.1074703,
"state": "INACTIVE",
"stateExplanation": "under construction",
"stationnumber": 1866
},
GraphQL API Response:
{
"data": {
"stationWithEvaId": {
"facilities": [
{
"type": "ESCALATOR",
"description": "zu Gleis 103/104 (S-Bahn)"
},
{
"type": "ESCALATOR",
"description": "zu Gleis 101/102 (S-Bahn)"
},