Refactor tenant prop API routes and update Postman collection for clarity

This commit is contained in:
ncoronel 2026-06-22 16:53:42 -03:00
parent f7293feabc
commit 6d83d3dd7d
1 changed files with 16 additions and 30 deletions

View File

@ -16,10 +16,6 @@
{ {
"key": "prop_id", "key": "prop_id",
"value": "1" "value": "1"
},
{
"key": "propable_type",
"value": "tenant"
} }
], ],
"item": [ "item": [
@ -130,28 +126,26 @@
] ]
}, },
{ {
"name": "Props", "name": "Tenant Props",
"item": [ "item": [
{ {
"name": "List Props By Model", "name": "List Tenant Props",
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"url": { "url": {
"raw": "{{base_url}}/prop-models/{{propable_type}}/props", "raw": "{{base_url}}/tenant-props",
"host": [ "host": [
"{{base_url}}" "{{base_url}}"
], ],
"path": [ "path": [
"prop-models", "tenant-props"
"{{propable_type}}",
"props"
] ]
} }
} }
}, },
{ {
"name": "Create Prop For Model", "name": "Create Tenant Prop",
"request": { "request": {
"method": "POST", "method": "POST",
"header": [ "header": [
@ -165,39 +159,35 @@
"raw": "{\n \"codigo\": \"color_primario\",\n \"nombre\": \"Color primario\",\n \"is_required\": false,\n \"data_type\": \"string\"\n}" "raw": "{\n \"codigo\": \"color_primario\",\n \"nombre\": \"Color primario\",\n \"is_required\": false,\n \"data_type\": \"string\"\n}"
}, },
"url": { "url": {
"raw": "{{base_url}}/prop-models/{{propable_type}}/props", "raw": "{{base_url}}/tenant-props",
"host": [ "host": [
"{{base_url}}" "{{base_url}}"
], ],
"path": [ "path": [
"prop-models", "tenant-props"
"{{propable_type}}",
"props"
] ]
} }
} }
}, },
{ {
"name": "Show Prop", "name": "Show Tenant Prop",
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"url": { "url": {
"raw": "{{base_url}}/prop-models/{{propable_type}}/props/{{prop_id}}", "raw": "{{base_url}}/tenant-props/{{prop_id}}",
"host": [ "host": [
"{{base_url}}" "{{base_url}}"
], ],
"path": [ "path": [
"prop-models", "tenant-props",
"{{propable_type}}",
"props",
"{{prop_id}}" "{{prop_id}}"
] ]
} }
} }
}, },
{ {
"name": "Update Prop", "name": "Update Tenant Prop",
"request": { "request": {
"method": "PUT", "method": "PUT",
"header": [ "header": [
@ -211,33 +201,29 @@
"raw": "{\n \"codigo\": \"color_primario\",\n \"nombre\": \"Color primario actualizado\",\n \"is_required\": true,\n \"data_type\": \"string\"\n}" "raw": "{\n \"codigo\": \"color_primario\",\n \"nombre\": \"Color primario actualizado\",\n \"is_required\": true,\n \"data_type\": \"string\"\n}"
}, },
"url": { "url": {
"raw": "{{base_url}}/prop-models/{{propable_type}}/props/{{prop_id}}", "raw": "{{base_url}}/tenant-props/{{prop_id}}",
"host": [ "host": [
"{{base_url}}" "{{base_url}}"
], ],
"path": [ "path": [
"prop-models", "tenant-props",
"{{propable_type}}",
"props",
"{{prop_id}}" "{{prop_id}}"
] ]
} }
} }
}, },
{ {
"name": "Delete Prop", "name": "Delete Tenant Prop",
"request": { "request": {
"method": "DELETE", "method": "DELETE",
"header": [], "header": [],
"url": { "url": {
"raw": "{{base_url}}/prop-models/{{propable_type}}/props/{{prop_id}}", "raw": "{{base_url}}/tenant-props/{{prop_id}}",
"host": [ "host": [
"{{base_url}}" "{{base_url}}"
], ],
"path": [ "path": [
"prop-models", "tenant-props",
"{{propable_type}}",
"props",
"{{prop_id}}" "{{prop_id}}"
] ]
} }