Import as cURL
If you want to inspect a request in Qodex, here’s a super simple way to import it as cURL from your browser.
You can also import data, like a Qodex Collection, Environment, data dump, or other data formats like a RAML / WADL / Swagger(v1/v2) / Open API 3.0 / Runscope file.
- Copy a cURL command: If you already have a cURL command, you can skip this step. We will use Chrome DevTools to inspect and select a request from a website. You can follow similar steps when using other web browsers.
](/assets/blogs/https://i.imgur.com/LUbhl2B.png)
- Import cURL as text: click the Import button in the top left of the Qodex app.
](/assets/blogs/https://i.imgur.com/uWLI0MT.png)
- Paste cURL into Qodex: Under the Paste Raw Text tab, paste your cURL command and confirm Import.
](/assets/blogs/https://cdn-images-1.medium.com/max/1600/1*_2ENwXUm9rONc8X3yNBAqg.png)
You should now see your cURL command represented as a request in the Qodex graphical user interface.
Request Params
| Key | Datatype | Required | Description |
|---|---|---|---|
redditWebClient | string | ||
app | string | ||
raw_json | number |
Request Body
[{"name"=>"id", "value"=>"t3_a737zu", "datatype"=>"string"}, {"name"=>"dir", "value"=>"1", "datatype"=>"number"}, {"name"=>"api_type", "value"=>"json", "datatype"=>"string"}]
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
Postman-Token | string | ||
accept | string | ||
accept-encoding | string | ||
accept-language | string | ||
authority | string | ||
authorization | string | ||
cache-control | string | ||
content-type | string | ||
origin | string | ||
referer | string | ||
user-agent | string | ||
x-reddit-loid | string | ||
x-reddit-session | string |