Full api example #189
Unanswered
fathialamre
asked this question in
General
Replies: 1 comment
-
Here's a simple example but you can learn more in the docs // GET
await api<ApiService>((request) => request.get("https://mydomain.com/api"));
// POST
await api<ApiService>((request) => request.post("https://mydomain.com/api", data: {...}));
// PUT
await api<ApiService>((request) => request.put("https://mydomain.com/api", data: {...}));
// DELETE
await api<ApiService>((request) => request.delete("https://mydomain.com/api/user/1", data: {...})); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Can you give us full example with api's (CRUD)?
Beta Was this translation helpful? Give feedback.
All reactions