-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.vue
38 lines (38 loc) · 811 Bytes
/
app.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<template>
<div>
<h1>Hello World!</h1>
<button @click="sendRequests">Send Requests</button>
</div>
</template>
<script lang="ts" setup>
const sendRequests = async () => {
// await useApi().albums.get()
// await useApi().albums.get()
// await useApi().photos.get()
// await useApi().posts.get()
// await useApi().posts._postId(2).comments.get()
// await useApi()
// .posts._postId(2)
// .put({
// body: {
// title: 'title',
// body: 'body',
// UserId: 1,
// },
// })
// await useApi()
// .posts._postId(2)
// .patch({
// body: {
// title: 'title',
// },
// })
// await useApi().posts.post({
// body: {
// title: 'title',
// body: 'body',
// UserId: 1,
// },
// })
}
</script>