75c381e645
Added EAV inventory types Added EAV object handling philosophy Added controllers Added EF Core migration integration
46 lines
683 B
HTTP
46 lines
683 B
HTTP
@WyvernInventory.API_HostAddress = http://localhost:5244
|
|
|
|
POST http://localhost:5244/inventory
|
|
Content-Type: application/json
|
|
|
|
[
|
|
{
|
|
"name": "RTX 4070 Ti Super"
|
|
}
|
|
]
|
|
###
|
|
|
|
POST http://localhost:5244/api/v1/InventoryType
|
|
Content-Type: application/json
|
|
|
|
[
|
|
]
|
|
###
|
|
|
|
POST http://localhost:5244/api/v1/inventorytype/upsert
|
|
Content-Type: application/json
|
|
|
|
[
|
|
{
|
|
"name": "GPU",
|
|
"attributedefinitions": [
|
|
{
|
|
"name": "Brand",
|
|
"dataType": 0
|
|
},
|
|
{
|
|
"name": "VRAM_GB",
|
|
"dataType": 1
|
|
},
|
|
{
|
|
"name": "Chipset",
|
|
"dataType": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
###
|
|
|
|
DELETE http://localhost:5244/api/v1/InventoryType/6
|
|
|
|
### |