This commit is contained in:
ct
2025-08-10 21:10:33 +08:00
parent 480bd9055d
commit 583a804073
43 changed files with 7623 additions and 270 deletions

View File

@@ -0,0 +1,19 @@
meta {
name: Health Check
type: http
seq: 1
}
get {
url: {{base_url}}/api/health
body: none
auth: bearer
}
headers {
Accept: application/json
}
auth:bearer {
token: {{api_token}}
}

View File

@@ -0,0 +1,15 @@
meta {
name: Download Screenshot File
type: http
seq: 3
}
get {
url: {{base_url}}/api/shot/:uuid/download
body: none
auth: bearer
}
auth:bearer {
token: {{api_token}}
}

View File

@@ -0,0 +1,19 @@
meta {
name: Get Screenshot Status - Results
type: http
seq: 2
}
get {
url: {{base_url}}/api/shot/:uuid
body: none
auth: bearer
}
headers {
Accept: application/json
}
auth:bearer {
token: {{api_token}}
}

View File

@@ -0,0 +1,35 @@
meta {
name: Initiate Screenshot Job
type: http
seq: 1
}
post {
url: {{base_url}}/api/shot
body: json
auth: bearer
}
headers {
Accept: application/json
Content-Type: application/json
}
auth:bearer {
token: {{api_token}}
}
body:json {
{
"url": "https://example.com",
"viewport_width": 1920,
"viewport_height": 1080,
"format": "webp",
"quality": 90,
"timeout": 30,
"delay": 2000,
"block_ads": true,
"block_cookie_banners": true,
"block_trackers": true
}
}

View File

@@ -0,0 +1,19 @@
meta {
name: List Screenshot Jobs
type: http
seq: 4
}
get {
url: {{base_url}}/api/shot
body: none
auth: bearer
}
headers {
Accept: application/json
}
auth:bearer {
token: {{api_token}}
}

View File

@@ -0,0 +1,19 @@
meta {
name: Get Crawl Status - Results
type: http
seq: 2
}
get {
url: {{base_url}}/api/crawl/:uuid
body: none
auth: bearer
}
headers {
Accept: application/json
}
auth:bearer {
token: {{api_token}}
}

View File

@@ -0,0 +1,32 @@
meta {
name: Initiate Crawl Job
type: http
seq: 1
}
post {
url: {{base_url}}/api/crawl
body: json
auth: bearer
}
headers {
Accept: application/json
Content-Type: application/json
}
auth:bearer {
token: {{api_token}}
}
body:json {
{
"url": "https://example.com",
"timeout": 30,
"delay": 2000,
"block_ads": true,
"block_cookie_banners": true,
"block_trackers": true,
"wait_until_network_idle": true
}
}

View File

@@ -0,0 +1,19 @@
meta {
name: List Crawl Jobs
type: http
seq: 3
}
get {
url: {{base_url}}/api/crawl
body: none
auth: bearer
}
headers {
Accept: application/json
}
auth:bearer {
token: {{api_token}}
}

9
Crawlshot API/bruno.json Normal file
View File

@@ -0,0 +1,9 @@
{
"version": "1",
"name": "Crawlshot API",
"type": "collection",
"ignore": [
"node_modules",
".git"
]
}

View File

@@ -0,0 +1,6 @@
vars {
base_url: https://crawlshot.test
}
vars:secret [
api_token
]