- add UpdateType end-to-end - add updateType to TypeController - add updateType to TypeService - add sql 004-create_type_description_data.sql - update TypesEndpoint to use Types.Response - update type end-to-end test - update TypeEndpoint with CreateType - add reset test table - add test data - add getType to TypeController - add getType to TypeService - add findTypeWithDescription to TypeRepository - update type end-to-end test - update TypeController for changes for adding type - update type mapping for latest changes in Mapping.kt - update addType to use TypeDescriptionRepository and return TypeWithDescription in TypeService - add TypeWithDescription - add TypeDescriptionRepository - add TypeDescriptionEntity - add missing device mapping test - add type_descriptions sql script for database changes - update TypesEndpoint - update TypesController to use Types.Response - add TypeEntity.toTypesResponse to Mapping.kt
21 lines
421 B
HTTP
21 lines
421 B
HTTP
### add type
|
|
POST {{hostname}}/type
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"name": "Test Device 001",
|
|
"description": "Description of test device."
|
|
}
|
|
|
|
### get type by id
|
|
GET {{hostname}}/type-00000000-0000-0000-0000-000000000000
|
|
|
|
### update type by id
|
|
PUT {{hostname}}/type-00000000-0000-0000-0000-000000000000
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"name": "Test Device 001",
|
|
"description": "Description of test device."
|
|
}
|