Add Api2Convert

patch-1
Muhammad Daffa 2022-06-18 11:09:32 +07:00
parent 252202ec80
commit b040ddb787
1 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,38 @@
id: api-api2convert
info:
name: Api2Convert API Test
author: daffainfo
severity: info
reference:
- https://www.api2convert.com/docs/index.html
- https://github.com/daffainfo/all-about-apikey/blob/main/Documents%20%26%20Productivity/Api2Convert.md
tags: token-spray,api2convert
self-contained: true
requests:
- raw:
- |
POST https://api.api2convert.com/v2/jobs HTTP/1.1
Host: api.api2convert.com
X-Oc-Api-Key: {{token}}
Content-Type: application/json
{
"input": [{
"type": "remote",
"source": "https://example-files.online-convert.com/raster%20image/jpg/example_small.jpg"
}],
"conversion": [{
"target": "png"
}]
}
matchers:
- type: word
part: body
words:
- '"id"'
- '"token"'
- '"type"'
condition: and