-
Notifications
You must be signed in to change notification settings - Fork 3
Example Responses
Martin Myslík edited this page Oct 12, 2016
·
6 revisions
Optional query params for each GET request:
- from (default 0)
- to (default 20)
/people
{
"content": [
{
"id": 1,
"firstName": "Peter",
"lastName": "Smith",
"email": "[email protected]",
"gender": "MALE",
"location": "London",
"dateOfBirth": "1980-04-07",
"skills": [
{
"id": 1,
"instrument": "GUITAR",
"level": "BEGINNER"
}
]
},
{
"id": 2,
"firstName": "John",
"lastName": "Doe",
"email": "[email protected]",
"gender": "MALE",
"location": "London",
"dateOfBirth": "1985-06-11",
"skills": [
{
"id": 2,
"instrument": "BASS",
"level": "ADVANCED"
}
]
},
{
"id": 3,
"firstName": "Gandalf",
"lastName": "Grey",
"email": "[email protected]",
"gender": "MALE",
"location": "New York",
"dateOfBirth": "1990-02-28",
"skills": [
{
"id": 3,
"instrument": "DRUMS",
"level": "BEGINNER"
},
{
"id": 4,
"instrument": "PIANO",
"level": "PROFESSIONAL"
}
]
},
{
"id": 4,
"firstName": "Gandal",
"lastName": "White",
"email": "[email protected]",
"gender": "MALE",
"location": "Mordor",
"dateOfBirth": "1978-06-05",
"skills": [
{
"id": 6,
"instrument": "VIOLIN",
"level": "BEGINNER"
},
{
"id": 5,
"instrument": "GUITAR",
"level": "ADVANCED"
}
]
},
{
"id": 5,
"firstName": "Aragorn",
"lastName": "Paragon",
"email": "[email protected]",
"gender": "MALE",
"location": "Rohan",
"dateOfBirth": "1982-01-07",
"skills": [
{
"id": 7,
"instrument": "DRUMS",
"level": "PROFESSIONAL"
}
]
},
{
"id": 6,
"firstName": "Samuel",
"lastName": "Jaxon",
"email": "[email protected]",
"gender": "MALE",
"location": "Prague",
"dateOfBirth": "1987-11-24",
"skills": [
{
"id": 8,
"instrument": "BASS",
"level": "ADVANCED"
}
]
},
{
"id": 7,
"firstName": "Leopold",
"lastName": "Janacek",
"email": "[email protected]",
"gender": "MALE",
"location": "Prague",
"dateOfBirth": "1995-08-27",
"skills": []
},
{
"id": 8,
"firstName": "Sue",
"lastName": "Widow",
"email": "[email protected]",
"gender": "FEMALE",
"location": "Prague",
"dateOfBirth": "1967-10-11",
"skills": []
}
],
"last": true,
"totalElements": 8,
"totalPages": 1,
"sort": null,
"first": true,
"numberOfElements": 8,
"size": 20,
"number": 0
}
/events
{
"content": [
{
"id": 1,
"name": "Hard Rock Night",
"venue": {
"id": 1,
"name": "Vagon Klub",
"lat": 50.0822,
"lon": 14.418
},
"startDate": "2016-12-01 19:00",
"endDate": "2016-12-01 22:00",
"people": [
{
"id": 1,
"firstName": "Peter",
"lastName": "Smith",
"email": "[email protected]",
"gender": "MALE",
"location": "London",
"dateOfBirth": "1980-04-07",
"skills": [
{
"id": 1,
"instrument": "GUITAR",
"level": "BEGINNER"
}
]
},
{
"id": 2,
"firstName": "John",
"lastName": "Doe",
"email": "[email protected]",
"gender": "MALE",
"location": "London",
"dateOfBirth": "1985-06-11",
"skills": [
{
"id": 2,
"instrument": "BASS",
"level": "ADVANCED"
}
]
}
]
},
{
"id": 2,
"name": "Christmas Chill",
"venue": {
"id": 2,
"name": "Rudolfinum",
"lat": 50.0899,
"lon": 14.4154
},
"startDate": "2016-12-24 18:00",
"endDate": "2016-12-24 21:00",
"people": [
{
"id": 3,
"firstName": "Gandalf",
"lastName": "Grey",
"email": "[email protected]",
"gender": "MALE",
"location": "New York",
"dateOfBirth": "1990-02-28",
"skills": [
{
"id": 4,
"instrument": "PIANO",
"level": "PROFESSIONAL"
},
{
"id": 3,
"instrument": "DRUMS",
"level": "BEGINNER"
}
]
},
{
"id": 4,
"firstName": "Gandal",
"lastName": "White",
"email": "[email protected]",
"gender": "MALE",
"location": "Mordor",
"dateOfBirth": "1978-06-05",
"skills": [
{
"id": 5,
"instrument": "GUITAR",
"level": "ADVANCED"
},
{
"id": 6,
"instrument": "VIOLIN",
"level": "BEGINNER"
}
]
}
]
}
],
"last": true,
"totalElements": 2,
"totalPages": 1,
"sort": null,
"first": true,
"numberOfElements": 2,
"size": 20,
"number": 0
}
/ensembles
{
"content": [
{
"id": 1,
"name": "Skull Crashers",
"ensembleType": "BAND",
"people": [
{
"id": 2,
"firstName": "John",
"lastName": "Doe",
"email": "[email protected]",
"gender": "MALE",
"location": "London",
"dateOfBirth": "1985-06-11",
"skills": [
{
"id": 2,
"instrument": "BASS",
"level": "ADVANCED"
}
]
},
{
"id": 1,
"firstName": "Peter",
"lastName": "Smith",
"email": "[email protected]",
"gender": "MALE",
"location": "London",
"dateOfBirth": "1980-04-07",
"skills": [
{
"id": 1,
"instrument": "GUITAR",
"level": "BEGINNER"
}
]
},
{
"id": 3,
"firstName": "Gandalf",
"lastName": "Grey",
"email": "[email protected]",
"gender": "MALE",
"location": "New York",
"dateOfBirth": "1990-02-28",
"skills": [
{
"id": 3,
"instrument": "DRUMS",
"level": "BEGINNER"
},
{
"id": 4,
"instrument": "PIANO",
"level": "PROFESSIONAL"
}
]
}
]
},
{
"id": 2,
"name": "Abortion Orchestra",
"ensembleType": "ORCHESTRA",
"people": [
{
"id": 5,
"firstName": "Aragorn",
"lastName": "Paragon",
"email": "[email protected]",
"gender": "MALE",
"location": "Rohan",
"dateOfBirth": "1982-01-07",
"skills": [
{
"id": 7,
"instrument": "DRUMS",
"level": "PROFESSIONAL"
}
]
},
{
"id": 4,
"firstName": "Gandal",
"lastName": "White",
"email": "[email protected]",
"gender": "MALE",
"location": "Mordor",
"dateOfBirth": "1978-06-05",
"skills": [
{
"id": 5,
"instrument": "GUITAR",
"level": "ADVANCED"
},
{
"id": 6,
"instrument": "VIOLIN",
"level": "BEGINNER"
}
]
},
{
"id": 3,
"firstName": "Gandalf",
"lastName": "Grey",
"email": "[email protected]",
"gender": "MALE",
"location": "New York",
"dateOfBirth": "1990-02-28",
"skills": [
{
"id": 3,
"instrument": "DRUMS",
"level": "BEGINNER"
},
{
"id": 4,
"instrument": "PIANO",
"level": "PROFESSIONAL"
}
]
}
]
},
{
"id": 3,
"name": "Lalas",
"ensembleType": "BAND",
"people": [
{
"id": 6,
"firstName": "Samuel",
"lastName": "Jaxon",
"email": "[email protected]",
"gender": "MALE",
"location": "Prague",
"dateOfBirth": "1987-11-24",
"skills": [
{
"id": 8,
"instrument": "BASS",
"level": "ADVANCED"
}
]
},
{
"id": 4,
"firstName": "Gandal",
"lastName": "White",
"email": "[email protected]",
"gender": "MALE",
"location": "Mordor",
"dateOfBirth": "1978-06-05",
"skills": [
{
"id": 5,
"instrument": "GUITAR",
"level": "ADVANCED"
},
{
"id": 6,
"instrument": "VIOLIN",
"level": "BEGINNER"
}
]
}
]
}
],
"last": true,
"totalElements": 3,
"totalPages": 1,
"sort": null,
"first": true,
"numberOfElements": 3,
"size": 20,
"number": 0
}
/venues
{
"content": [
{
"id": 1,
"name": "Vagon Klub",
"lat": 50.0822,
"lon": 14.418
},
{
"id": 2,
"name": "Rudolfinum",
"lat": 50.0899,
"lon": 14.4154
}
],
"last": true,
"totalPages": 1,
"totalElements": 2,
"sort": null,
"first": true,
"numberOfElements": 2,
"size": 20,
"number": 0
}