u
This commit is contained in:
33
docs/api/routes/propertyname.get.md
Normal file
33
docs/api/routes/propertyname.get.md
Normal file
@@ -0,0 +1,33 @@
|
||||
# `GET /propertyname`
|
||||
|
||||
Protected. Requires a valid session cookie (`credentials: 'include'`).
|
||||
|
||||
List property names
|
||||
|
||||
Lists all property names defined for the selected company, ordered by sort.
|
||||
|
||||
## Response `200`
|
||||
|
||||
List of property names
|
||||
|
||||
```json
|
||||
{
|
||||
"propertynames": [
|
||||
{
|
||||
"id": 1,
|
||||
"name": "…",
|
||||
"sort": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Errors
|
||||
|
||||
| Status | Description |
|
||||
|--------|-------------|
|
||||
| 400 | No company selected — `{"error":"…"}` |
|
||||
|
||||
---
|
||||
|
||||
_Generated from `@openapi` JSDoc. Do not edit by hand — run `npm run docs:api`._
|
||||
Reference in New Issue
Block a user