mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-11 09:51:30 +00:00
65 lines
1.4 KiB
JSON
65 lines
1.4 KiB
JSON
{
|
|
"info": {
|
|
"name": "Postman v2.1 Collection",
|
|
"description": "Test collection using Postman Collection Format v2.1",
|
|
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
|
|
"_postman_id": "12345678-1234-1234-1234-123456789012"
|
|
},
|
|
"item": [
|
|
{
|
|
"name": "Get Users",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [
|
|
{
|
|
"key": "Authorization",
|
|
"value": "Bearer {{token}}",
|
|
"type": "text"
|
|
}
|
|
],
|
|
"url": {
|
|
"raw": "{{baseUrl}}/users",
|
|
"host": ["{{baseUrl}}"],
|
|
"path": ["users"],
|
|
"query": [
|
|
{
|
|
"key": "page",
|
|
"value": "1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "Create User",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json",
|
|
"type": "text"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"name\": \"John Doe\",\n \"email\": \"john@example.com\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{baseUrl}}/users",
|
|
"host": ["{{baseUrl}}"],
|
|
"path": ["users"]
|
|
}
|
|
},
|
|
"response": []
|
|
}
|
|
],
|
|
"variable": [
|
|
{
|
|
"key": "baseUrl",
|
|
"value": "https://api.example.com"
|
|
}
|
|
]
|
|
}
|