developer-job-simulation / django-rest-backend Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Our API needs to support the ability to get all Pokemon, filtered by HP
[
{
"id": 242,
"name_english": "Blissey",
"name_japanese": "ハピナス",
"name_chinese": "幸福蛋",
"name_french": "Leuphorie",
"hp": 255,
"attack": 10,
"defense": 10,
"special_attack": 75,
"special_defense": 135,
"speed": 55,
"types": [
{
"type": "Normal"
}
]
}
]
{
error: "Not found"
}
{
error: 'Invalid Operator. Must be one of ["gt","gte","lt","lte"]'
}
4# What you need to do
Our API needs to support the ability to get a Pokemon by Name
{
"id": 151,
"name_english": "Mew",
"name_japanese": "ミュウ",
"name_chinese": "梦幻",
"name_french": "Mew",
"hp": 100,
"attack": 100,
"defense": 100,
"special_attack": 100,
"special_defense": 100,
"speed": 100,
"types": [
{
"type": "Psychic"
}
]
}
{
error: "Not found"
}
Our API needs to support the ability to get a Pokemon by ID.
{
"id": 482,
"name_english": "Azelf",
"name_japanese": "アグノム",
"name_chinese": "亚克诺姆",
"name_french": "Créfadet",
"hp": 75,
"attack": 70,
"defense": 125,
"special_attack": 125,
"special_defense": 70,
"speed": 115,
"types": [
{
"type": "Psychic"
}
]
}
{
error: "Not found"
}
Our API needs to support the ability to Get Pokemon by Type
[
{
"id": 35,
"name_english": "Clefairy",
"name_japanese": "ピッピ",
"name_chinese": "皮皮",
"name_french": "Mélofée",
"hp": 70,
"attack": 48,
"defense": 45,
"special_attack": 60,
"special_defense": 65,
"speed": 35,
"types": [
{
"type": "Fairy"
}
]
},
...
{
error: "Bad request"
}
Our API needs to expose a Pokemon's type. As it currently stands, a request to http://localhost:8000/pokemon/
returns:
[
{
"id": 1,
"name_english": "Bulbasaur",
"name_japanese": "フシギダネ",
"name_chinese": "妙蛙种子",
"name_french": "Bulbizarre",
"hp": 45,
"attack": 49,
"defense": 49,
"special_attack": 65,
"special_defense": 65,
"speed": 45
},
{
"id": 2,
...
[
{
"id": 1,
"name_english": "Bulbasaur",
"name_japanese": "フシギダネ",
"name_chinese": "妙蛙种子",
"name_french": "Bulbizarre",
"hp": 45,
"attack": 49,
"defense": 49,
"special_attack": 65,
"special_defense": 65,
"speed": 45,
"types": [
{
"type": "Grass"
},
{
"type": "Poison"
}
]
},
{
"id": 2,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.