๐๏ธArticle categories
This page provides a description of the available API routes for managing article category.
Each product or service within the PORTOS system is linked to a specific category (e.g. desserts, soups, meals, ...), which is referred to as the article category. This categorization helps in organizing and classifying items, allowing for efficient management and navigation within the system.
Article category is represented by ArticleCategory
class.
API methods
Get article categories
GET
http://{server-address}/articlecategories
Returns all article categories that matches query parameters. Result is of type QueryResult<ArticleCategory>
.
Query Parameters
Name | Type | Description |
---|---|---|
color | string | Supports NData syntax. |
courseNumber | int | Supports NData syntax. |
$skip | int | Pagination property. Describing number of records to skip from beginning of result collection. |
$take | int | Pagination property. Maximum count of items to be returned. |
$sort | string[] | Comma separated list of property names. Please see NData syntax. |
$count | bool | If set to |
label | string | Supports NData syn |
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Authorization header with authorization token. |
Get article category by label
GET
http://{server-address}/articlecategories/{label}
Result is of type Article category.
Path Parameters
Name | Type | Description |
---|---|---|
label* | string | Unique article category label. |
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Authorization header with authorization token. |
Create article category
POST
http://{server-address}/articlecategories
Creates new article category. Result is of type Article category.
Required rights
Authorized user must have ArticleCategoryCreate
right assigned.
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Authorization header with authorization token. |
Request Body
Name | Type | Description |
---|---|---|
(body)* | ArticleCategory | Model to create. |
Create or update article category
PUT
http://{server-address}/articlecategories/{label}
Creates new or updates existing article category. Result is of type Article category.
Required rights
Authorized user must have assigned ArticleCategoryCreate
or ArticleCategoryUpdate
right.
Path Parameters
Name | Type | Description |
---|---|---|
label* | string | Unique article category label. |
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Authorization header with authorization token. |
Request Body
Name | Type | Description |
---|---|---|
(body)* | ArticleCategory | Model to create or update. |
Delete article category by label
DELETE
http://{server-address}/articlecategories/{label}
Required rights
Authorized user must have ArticleCategoryDelete
right assigned.
Path Parameters
Name | Type | Description |
---|---|---|
label* | string | Unique article category label. |
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Authorization header with authorization token. |
Last updated