Update
This commit is contained in:
19
Crawlshot API/Health Check.bru
Normal file
19
Crawlshot API/Health Check.bru
Normal 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}}
|
||||
}
|
||||
15
Crawlshot API/Screenshots/Download Screenshot File.bru
Normal file
15
Crawlshot API/Screenshots/Download Screenshot File.bru
Normal 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}}
|
||||
}
|
||||
@@ -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}}
|
||||
}
|
||||
35
Crawlshot API/Screenshots/Initiate Screenshot Job.bru
Normal file
35
Crawlshot API/Screenshots/Initiate Screenshot Job.bru
Normal 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
|
||||
}
|
||||
}
|
||||
19
Crawlshot API/Screenshots/List Screenshot Jobs.bru
Normal file
19
Crawlshot API/Screenshots/List Screenshot Jobs.bru
Normal 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}}
|
||||
}
|
||||
19
Crawlshot API/Web Crawling/Get Crawl Status - Results.bru
Normal file
19
Crawlshot API/Web Crawling/Get Crawl Status - Results.bru
Normal 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}}
|
||||
}
|
||||
32
Crawlshot API/Web Crawling/Initiate Crawl Job.bru
Normal file
32
Crawlshot API/Web Crawling/Initiate Crawl Job.bru
Normal 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
|
||||
}
|
||||
}
|
||||
19
Crawlshot API/Web Crawling/List Crawl Jobs.bru
Normal file
19
Crawlshot API/Web Crawling/List Crawl Jobs.bru
Normal 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
9
Crawlshot API/bruno.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"version": "1",
|
||||
"name": "Crawlshot API",
|
||||
"type": "collection",
|
||||
"ignore": [
|
||||
"node_modules",
|
||||
".git"
|
||||
]
|
||||
}
|
||||
6
Crawlshot API/environments/DEV.bru
Normal file
6
Crawlshot API/environments/DEV.bru
Normal file
@@ -0,0 +1,6 @@
|
||||
vars {
|
||||
base_url: https://crawlshot.test
|
||||
}
|
||||
vars:secret [
|
||||
api_token
|
||||
]
|
||||
Reference in New Issue
Block a user