236 lines
5.9 KiB
JSON
236 lines
5.9 KiB
JSON
{
|
|
"info": {
|
|
"_postman_id": "b0b0df2c-4e1e-4ef4-b6a8-1c5348d5b6f2",
|
|
"name": "Shopit Back - Tenants and Props",
|
|
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
|
|
},
|
|
"variable": [
|
|
{
|
|
"key": "base_url",
|
|
"value": "http://127.0.0.1:8000/api"
|
|
},
|
|
{
|
|
"key": "tenant_id",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"key": "prop_id",
|
|
"value": "1"
|
|
}
|
|
],
|
|
"item": [
|
|
{
|
|
"name": "Tenants",
|
|
"item": [
|
|
{
|
|
"name": "List Tenants",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/tenants",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"tenants"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Create Tenant",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"codigo\": \"tenant-demo\",\n \"nombre\": \"Tenant Demo\",\n \"dominio\": \"tenant-demo.local\",\n \"props\": {\n \"color_primario\": \"#ff6600\",\n \"pais\": \"AR\"\n }\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/tenants",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"tenants"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Show Tenant",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/tenants/{{tenant_id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"tenants",
|
|
"{{tenant_id}}"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Update Tenant",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"codigo\": \"tenant-demo\",\n \"nombre\": \"Tenant Demo Updated\",\n \"dominio\": \"tenant-demo.example.com\",\n \"props\": {\n \"color_primario\": \"#0055ff\",\n \"pais\": \"UY\"\n }\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/tenants/{{tenant_id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"tenants",
|
|
"{{tenant_id}}"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Delete Tenant",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/tenants/{{tenant_id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"tenants",
|
|
"{{tenant_id}}"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Tenant Props",
|
|
"item": [
|
|
{
|
|
"name": "List Tenant Props",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/tenant-props",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"tenant-props"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Create Tenant Prop",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"codigo\": \"color_primario\",\n \"nombre\": \"Color primario\",\n \"is_required\": false,\n \"data_type\": \"string\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/tenant-props",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"tenant-props"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Show Tenant Prop",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/tenant-props/{{prop_id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"tenant-props",
|
|
"{{prop_id}}"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Update Tenant Prop",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"codigo\": \"color_primario\",\n \"nombre\": \"Color primario actualizado\",\n \"is_required\": true,\n \"data_type\": \"string\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/tenant-props/{{prop_id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"tenant-props",
|
|
"{{prop_id}}"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Delete Tenant Prop",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/tenant-props/{{prop_id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"tenant-props",
|
|
"{{prop_id}}"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|