Attention! The competition is running in test mode.
What's more, you can ask questions to participants, gain their experience or transfer your own in our telegram channel. Welcome!
This task is the first round of the trial Highload Cup-Championship 2017.
Prefinal rating saved here.
If you consider that some quistions are not covered in the documentation to the task, we will be glad to pull-request (see GitHub link below). If you have any suggestions for improving our site - we will be also happy to get a new issue ;)
Develop a fast server that will provide Web-API to a service for travellers.
There are three kinds of entities in the initial data for the server: User (Traveler), Location (Attraction), Visit (Attendance). And each has its own set of fields. You can download a test example below (ammo - examples of requests, answers - answers to this requests, data - initial data), and there is a detailed description in the instruction.
The following requests should be implement:
- GET /<entity>/<id> to get entity data
- GET /users/<id>/visits visits to get a list of visits by user (traveler)
- GET /locations/<id>/avg avg to obtain an average estimate of attractions
- POST /<entity>/<id> to update
- POST /<entity>/new to create
The maximum penalty time for a request is equal to the timeout of the tank and is 2 seconds (2kk microseconds).
At the moment, the most detailed and up-to-date technical task is on GitHub, there are also test data there.
To participate you need to log in