This API has to be done using Python 2.7 and the latest version of Django.
It should include the following features:
I.-Create an index view at http://localhost/ that returns JSON with this structure:
{
"datetime": "2015-04-01T10:05:17.358851",
"completed_in": "2.0028 seconds",
"c": {
"d": "e"
},
"a": "b"
}
* This structure should be generated by a dictionary of the data provided by the cache that should last 5 seconds.
* If there is no cache, the response should last 2 seconds.
II.-
1.- Create a new service at http://localhost/football with an input field on the HTML template
2.- Create a decorator that should download an XML file at http://localhost/rand/[login to view URL]
3.- Use the XML data, pass it to the http://localhost/football view
4.- The response at the football view should use this JSON structure
{
"datetime": "2015-04-01T10:05:17.358851",
"completed_in": "2.0028 seconds",
"matches": [
{
"match": "Celtic - Dundee", "winner": "Celtic",
"result": "1 - 0",
"date": "10:50 12-02-2015"
},
{
"match": "Aberdeen - Motherwell", "winner": "Draw",
"result": "2 - 2",
"date": "10:15 13-02-2015"
}
]
}
This is simple project but i will need more details. When i get more details, i can start to develop.
Also i recommend to use python 3 because Django won't support python 2 after release Django 2.0.
$83 USD en 7 días
0,0 (0 comentarios)
0,0
0,0
6 freelancers están ofertando un promedio de $79 USD por este trabajo
Hello,
I'm an experienced Django developer. I have experience with "Django Rest Framework" which can be used in your project to rapidly implement a REST API to return the JSON you expect and keep it in a way that you can simple evolve the software (assuming that you willl need more than this footbal results in the future).
The cache can be managed by Django itself, initially using disk or memory.
I'll be at your disposal for any questions you might have.
regards;