Feature: Warteliste pro Wurf — CRUD, Status-Flow, Formular (SW by-v891)
This commit is contained in:
parent
e8c2d5b940
commit
67e68bbe2d
8 changed files with 324 additions and 7 deletions
|
|
@ -709,6 +709,11 @@ const API = (() => {
|
|||
addPuppy(id, data) { return post(`/litters/${id}/puppies`, data); },
|
||||
updatePuppy(id, data) { return put(`/litters/puppies/${id}`, data); },
|
||||
addWeight(id, data) { return post(`/litters/puppies/${id}/weight`, data); },
|
||||
// Warteliste
|
||||
waitlist(id) { return get(`/litters/${id}/waitlist`); },
|
||||
addWaitlist(id, data) { return post(`/litters/${id}/waitlist`, data); },
|
||||
updateWaitlist(entryId, data) { return put(`/litters/waitlist/${entryId}`, data); },
|
||||
removeWaitlist(entryId) { return del(`/litters/waitlist/${entryId}`); },
|
||||
// Öffentlich
|
||||
public(params) { return get('/litters?' + new URLSearchParams(params || {}).toString()); },
|
||||
detail(id) { return get(`/litters/${id}`); },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue