cabinet
POST
{{baseUrl}}/api/cabinet
Body
PARAM
Key |
Datatype |
Required |
Description |
HEADERS
Key |
Datatype |
Required |
Description |
RESPONSES
status
curl -X POST 'localhost:3000/api/cabinet' -F '{"name"=>"cabinet_id", "value"=>"number", "datatype"=>"string"}=' -F '{"name"=>"cabinet_num", "value"=>"number\n", "datatype"=>"string"}=' -F '{"name"=>"location", "value"=>"string\n", "datatype"=>"string"}=' -F '{"name"=>"floor", "value"=>"number", "datatype"=>"string"}=' -F '{"name"=>"section", "value"=>"string\n", "datatype"=>"string"}=' -F '{"name"=>"activation", "value"=>"bool\n", "datatype"=>"string"}=' -F '{"name"=>"lent_id", "value"=>"number\n", "datatype"=>"string"}=' -F '{"name"=>"user_id", "value"=>"number\n", "datatype"=>"string"}=' -F '{"name"=>"lent_time", "value"=>"datetime\n", "datatype"=>"string"}=' -F '{"name"=>"expire_time", "value"=>"datetime\n", "datatype"=>"string"}=' -F '{"name"=>"extension", "value"=>"bool", "datatype"=>"string"}='