Open LokiMidgard opened 4 months ago
Wir machen mehrere abfrage
Originalpost geändert
Ist der Name der Welt Unique? Andernfalls, würde ich noch die zusätzlich die ID der welt kennen müssen.
Ist der Name der Welt Unique? Andernfalls, würde ich noch die zusätzlich die ID der welt kennen müssen.
Welt ID ist bereitgestellt. Der Name der Welt ist nicht unique, aber da die ID gegeben ist, passt das so
Rout
/character/{id}
Eine möglichkeit wäre alle daten des Characters zu Liefern, oder nur die wichtigsten, und einige properties in sub querys auszulagern.
z.B.
/character/{id}/skills
.Beides hat vor und nachteile.
Für ein gesamtes könnte die rückgabe wie folgt aussehn:
Beispiel
```json { "id": 840, "name": "Max Musterman", "world": { "name":"Cornea", "id":4, }, "typ": "Verwaltungsfachangestellter", "age": 25, "gender":"male", "size": 180, "weight": 70, "alignment": "Bürokrat", "race": "Mensch", "impediment": 10, "magic-resistance": { "current": 3, "max": 10, }, "passive-defense": { "current": 3, "max": 10, }, "pools": { "fatique": 30, "conzentration": 20, "mana": 12, "contact": 13, }, "points": { "attribute": { "used": 120, "available": 30, }, "skill": { "used": 120, "available": 30, }, }, } ```