Added API Tests

This commit is contained in:
jd
2026-02-21 00:34:50 +00:00
parent 335f1821cd
commit f81220f837
24 changed files with 450 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
info:
name: Create
type: http
seq: 1
http:
method: POST
url: http://localhost:3000/api/game
body:
type: json
data: |-
{
"name": "Test Game3"
}
auth: inherit
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5

View File

@@ -0,0 +1,19 @@
info:
name: Delete
type: http
seq: 4
http:
method: DELETE
url: http://localhost:3000/api/game/:id
params:
- name: id
value: bk5e
type: path
auth: inherit
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5

View File

@@ -0,0 +1,19 @@
info:
name: Get
type: http
seq: 2
http:
method: GET
url: http://localhost:3000/api/game/:id
params:
- name: id
value: bk5e
type: path
auth: inherit
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5

View File

@@ -0,0 +1,19 @@
info:
name: Search
type: http
seq: 5
http:
method: GET
url: http://localhost:3000/api/game/search/:query
params:
- name: query
value: game
type: path
auth: inherit
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5

View File

@@ -0,0 +1,25 @@
info:
name: Update
type: http
seq: 3
http:
method: PATCH
url: http://localhost:3000/api/game/:id
params:
- name: id
value: el5a
type: path
body:
type: json
data: |-
{
"name":"Updated game"
}
auth: inherit
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5

View File

@@ -0,0 +1,7 @@
info:
name: Game
type: folder
seq: 4
request:
auth: inherit