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