feat: document api contract

This commit is contained in:
2026-06-15 12:26:26 +02:00
parent b910e77460
commit cf11e20f90
12 changed files with 416 additions and 46 deletions
@@ -0,0 +1,8 @@
{
"success": { "total": 1 },
"contents": {
"translated": "Electric cheeks, prithee.",
"text": "Electric cheeks.",
"translation": "shakespeare"
}
}
+8
View File
@@ -0,0 +1,8 @@
{
"success": { "total": 1 },
"contents": {
"translated": "Created by science, it was.",
"text": "Created by science.",
"translation": "yoda"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"name": "mewtwo",
"is_legendary": true,
"habitat": { "name": "rare" },
"flavor_text_entries": [
{
"flavor_text": "It was created by a scientist after years of horrific gene splicing and DNA engineering experiments.",
"language": { "name": "en" }
}
]
}
+11
View File
@@ -0,0 +1,11 @@
{
"name": "pikachu",
"is_legendary": false,
"habitat": { "name": "forest" },
"flavor_text_entries": [
{
"flavor_text": "Electric cheeks.",
"language": { "name": "en" }
}
]
}