Requests are received in the following order and are provided in the test file http00.json:
Sample Series of Requests Requests are received in the following order and are provided in the test file http00.json:
Consider the following POST requests (these are performed in the ascending order of event id):
{
"id":4055191679,
"type":"PushEvent",
"actor":{
"id":2790311,
"login":"daniel33",
"avatar_url":"https://avatars.com/2790311"
},
"repo":{
"id":352806,
"name":"johnbolton/exercitationem",
"url":"https://github.com/johnbolton/exercitationem"
},
"created_at":"2015-10-03 06:13:31"
}
{
"id":2712153979,
"type":"PushEvent",
"actor":{
"id":2907782,
"login":"eric66",
"avatar_url":"https://avatars.com/2907782"
},
"repo":{
"id":426482,
"name":"pestrada/voluptatem",
"url":"https://github.com/pestrada/voluptatem"
},
"created_at":"2014-07-13 08:13:31"
}
{
"id":4633249595,
"type":"PushEvent",
"actor":{
"id":4276597,
"login":"iholloway",
"avatar_url":"https://avatars.com/4276597"
},
"repo":{
"id":269910,
"name":"iholloway/aperiam-consectetur",
"url":"https://github.com/iholloway/aperiam-consectetur"
},
"created_at":"2016-04-18 00:13:31"
}
{
"id":1514531484,
"type":"PushEvent",
"actor":{
"id":3698252,
"login":"daniel51",
"avatar_url":"https://avatars.com/3698252"
},
"repo":{
"id":451024,
"name":"daniel51/quo-tempore-dolor",
"url":"https://github.com/daniel51/quo-tempore-dolor"
},
"created_at":"2013-06-16 02:13:31"
}
{
"id":1838493121,
"type":"PushEvent",
"actor":{
"id":4864659,
"login":"katrinaallen",
"avatar_url":"https://avatars.com/4864659"
},
"repo":{
"id":275832,
"name":"elizabethbailey/error-quod-a",
"url":"https://github.com/elizabethbailey/error-quod-a"
},
"created_at":"2013-09-28 01:13:31"
}
{
"id":1979554031,
"type":"PushEvent",
"actor":{
"id":3648056,
"login":"ysims",
"avatar_url":"https://avatars.com/3648056"
},
"repo":{
"id":292520,
"name":"svazquez/dolores-quidem",
"url":"https://github.com/svazquez/dolores-quidem"
},
"created_at":"2013-11-11 17:13:31"
}
{
"id":1536363444,
"type":"PushEvent",
"actor":{
"id":4949434,
"login":"millerlarry",
"avatar_url":"https://avatars.com/4949434"
},
"repo":{
"id":310964,
"name":"brownphilip/rerum-quidem",
"url":"https://github.com/brownphilip/rerum-quidem"
},
"created_at":"2013-06-23 08:13:31"
}
{
"id":4501280090,
"type":"PushEvent",
"actor":{
"id":2917996,
"login":"oscarschmidt",
"avatar_url":"https://avatars.com/2917996"
},
"repo":{
"id":301227,
"name":"oscarschmidt/doloremque-expedita",
"url":"https://github.com/oscarschmidt/doloremque-expedita"
},
"created_at":"2016-03-05 10:13:31"
}
{
"id":3822562012,
"type":"PushEvent",
"actor":{
"id":2222918,
"login":"xnguyen",
"avatar_url":"https://avatars.com/2222918"
},
"repo":{
"id":425512,
"name":"cohenjacqueline/quam-autem-suscipit",
"url":"https://github.com/cohenjacqueline/quam-autem-suscipit"
},
"created_at":"2015-07-15 15:13:31"
}
{
"id":1319379787,
"type":"PushEvent",
"actor":{
"id":3466404,
"login":"khunt",
"avatar_url":"https://avatars.com/3466404"
},
"repo":{
"id":478747,
"name":"ngriffin/rerum-aliquam-cum",
"url":"https://github.com/ngriffin/rerum-aliquam-cum"
},
"created_at":"2013-04-17 04:13:31"
}
The response of the GET request is the following JSON array with the HTTP response code 200:
[
{
"id":3822562012,
"type":"PushEvent",
"actor":{
"id":2222918,
"login":"xnguyen",
"avatar_url":"https://avatars.com/2222918"
},
"repo":{
"id":425512,
"name":"cohenjacqueline/quam-autem-suscipit",
"url":"https://github.com/cohenjacqueline/quam-autem-suscipit"
},
"created_at":"2015-07-15 15:13:31"
}
]
The response of the GET request is the following JSON array with the HTTP response code 200:
[
{
"id":4276597,
"login":"iholloway",
"avatar_url":"https://avatars.com/4276597"
},
{
"id":2917996,
"login":"oscarschmidt",
"avatar_url":"https://avatars.com/2917996"
},
{
"id":2790311,
"login":"daniel33",
"avatar_url":"https://avatars.com/2790311"
},
{
"id":2222918,
"login":"xnguyen",
"avatar_url":"https://avatars.com/2222918"
},
{
"id":2907782,
"login":"eric66",
"avatar_url":"https://avatars.com/2907782"
},
{
"id":3648056,
"login":"ysims",
"avatar_url":"https://avatars.com/3648056"
},
{
"id":4864659,
"login":"katrinaallen",
"avatar_url":"https://avatars.com/4864659"
},
{
"id":4949434,
"login":"millerlarry",
"avatar_url":"https://avatars.com/4949434"
},
{
"id":3698252,
"login":"daniel51",
"avatar_url":"https://avatars.com/3698252"
},
{
"id":3466404,
"login":"khunt",
"avatar_url":"https://avatars.com/3466404"
}
]
The request is sent with the following body. Response should be an empty body with a status code of 200
{
"id":3648056,
"login":"ysims",
"avatar_url":"https://avatars.com/modified2"
}
The response of the GET request is the following JSON array with the HTTP response code 200:
[
{
"id":1319379787,
"type":"PushEvent",
"actor":{
"id":3466404,
"login":"khunt",
"avatar_url":"https://avatars.com/3466404"
},
"repo":{
"id":478747,
"name":"ngriffin/rerum-aliquam-cum",
"url":"https://github.com/ngriffin/rerum-aliquam-cum"
},
"created_at":"2013-04-17 04:13:31"
},
{
"id":1514531484,
"type":"PushEvent",
"actor":{
"id":3698252,
"login":"daniel51",
"avatar_url":"https://avatars.com/3698252"
},
"repo":{
"id":451024,
"name":"daniel51/quo-tempore-dolor",
"url":"https://github.com/daniel51/quo-tempore-dolor"
},
"created_at":"2013-06-16 02:13:31"
},
{
"id":1536363444,
"type":"PushEvent",
"actor":{
"id":4949434,
"login":"millerlarry",
"avatar_url":"https://avatars.com/4949434"
},
"repo":{
"id":310964,
"name":"brownphilip/rerum-quidem",
"url":"https://github.com/brownphilip/rerum-quidem"
},
"created_at":"2013-06-23 08:13:31"
},
{
"id":1838493121,
"type":"PushEvent",
"actor":{
"id":4864659,
"login":"katrinaallen",
"avatar_url":"https://avatars.com/4864659"
},
"repo":{
"id":275832,
"name":"elizabethbailey/error-quod-a",
"url":"https://github.com/elizabethbailey/error-quod-a"
},
"created_at":"2013-09-28 01:13:31"
},
{
"id":1979554031,
"type":"PushEvent",
"actor":{
"id":3648056,
"login":"ysims",
"avatar_url":"https://avatars.com/modified2"
},
"repo":{
"id":292520,
"name":"svazquez/dolores-quidem",
"url":"https://github.com/svazquez/dolores-quidem"
},
"created_at":"2013-11-11 17:13:31"
},
{
"id":2712153979,
"type":"PushEvent",
"actor":{
"id":2907782,
"login":"eric66",
"avatar_url":"https://avatars.com/2907782"
},
"repo":{
"id":426482,
"name":"pestrada/voluptatem",
"url":"https://github.com/pestrada/voluptatem"
},
"created_at":"2014-07-13 08:13:31"
},
{
"id":3822562012,
"type":"PushEvent",
"actor":{
"id":2222918,
"login":"xnguyen",
"avatar_url":"https://avatars.com/2222918"
},
"repo":{
"id":425512,
"name":"cohenjacqueline/quam-autem-suscipit",
"url":"https://github.com/cohenjacqueline/quam-autem-suscipit"
},
"created_at":"2015-07-15 15:13:31"
},
{
"id":4055191679,
"type":"PushEvent",
"actor":{
"id":2790311,
"login":"daniel33",
"avatar_url":"https://avatars.com/2790311"
},
"repo":{
"id":352806,
"name":"johnbolton/exercitationem",
"url":"https://github.com/johnbolton/exercitationem"
},
"created_at":"2015-10-03 06:13:31"
},
{
"id":4501280090,
"type":"PushEvent",
"actor":{
"id":2917996,
"login":"oscarschmidt",
"avatar_url":"https://avatars.com/2917996"
},
"repo":{
"id":301227,
"name":"oscarschmidt/doloremque-expedita",
"url":"https://github.com/oscarschmidt/doloremque-expedita"
},
"created_at":"2016-03-05 10:13:31"
},
{
"id":4633249595,
"type":"PushEvent",
"actor":{
"id":4276597,
"login":"iholloway",
"avatar_url":"https://avatars.com/4276597"
},
"repo":{
"id":269910,
"name":"iholloway/aperiam-consectetur",
"url":"https://github.com/iholloway/aperiam-consectetur"
},
"created_at":"2016-04-18 00:13:31"
}
]
The response of the GET request is the following JSON array with the HTTP response code 200:
[
{
"id":4276597,
"login":"iholloway",
"avatar_url":"https://avatars.com/4276597"
},
{
"id":2917996,
"login":"oscarschmidt",
"avatar_url":"https://avatars.com/2917996"
},
{
"id":2790311,
"login":"daniel33",
"avatar_url":"https://avatars.com/2790311"
},
{
"id":2222918,
"login":"xnguyen",
"avatar_url":"https://avatars.com/2222918"
},
{
"id":2907782,
"login":"eric66",
"avatar_url":"https://avatars.com/2907782"
},
{
"id":3648056,
"login":"ysims",
"avatar_url":"https://avatars.com/modified2"
},
{
"id":4864659,
"login":"katrinaallen",
"avatar_url":"https://avatars.com/4864659"
},
{
"id":4949434,
"login":"millerlarry",
"avatar_url":"https://avatars.com/4949434"
},
{
"id":3698252,
"login":"daniel51",
"avatar_url":"https://avatars.com/3698252"
},
{
"id":3466404,
"login":"khunt",
"avatar_url":"https://avatars.com/3466404"
}
]
This request deletes all events and returns an empty body in the response with status code as 200.