Nikolaj Geisle
27ca36db53
V13: relation type controller (#13856)
* Create RelationTypeControllerBase.cs
* Implement ByKey endpoint
* Move controllers
* Implement ByRelationTypeKeyRelationController
* Refactor relation service to use skip/take in interface
* change httpget
* Implement object types endpoint
* Add ObjectTypeViewModelFactory.cs
* Change signature to IActionResult
* Implement CreateRelationTypeController.cs
* Implement CreateRelationTypeController.cs
* Add optional key parameter to RelationType
* Add optional key to RelationTypeSavingViewModel
* Update ProducsResponseType
* Implement UpdateRelationTypeController
* Update routes
* Implement DeleteRelationTypeController
* Remove key from UpdatingViewmoDel
* Implement UpdatingViewModel factory method
* Update relationType factory
* Fix paging for object types
* Implement CreateAsync
* Update create action to use CreateAsync
* Implement update async
* Add default implementations to avoid breaking changes
* actually use userIds
* Add ProducesResponseType status 400 to endpoints
* Implement new DeleteAsync method
* Update OpenApi.json
* Add mapping to DI
* Update 404 to return proper HTTP status
* Add not found to ByKey action
* Rename viewmodels to request/response
* Update OpenApi.json
* All RelationServiceTests.cs
* Add allowed object types test
* Fix grouping
* Implement AllowedRelationObjectTypesService.cs
* Refactor view model factory to use new service
* Implement non-happy path tests
* Implement allowed child/parent object types
* refactor test to return proper relationTypeOperationStatus
* Add can create relation type with key
* Add Id test
* formatting
* Refactor service to have validation logic in save method
* move object types endpoint to own silo
* Delete unused using
* Update OpenApi.json
* Update OpenApi.json
* Update tests to user proper child/parent
* Implement RelationTypeBaseModel
* Update OpenApi.json
* Use array instead of enumerable
* Rename view model factory to presentation factory
* Rename GetPagedByRelationTypeKey
* Rename IRelationViewModelFactory
* Rename IRelationTypeViewModelFactory
* Update error description
* Update OpenApi.json
* Update OpenApi.json
---------
Co-authored-by: Zeegaan <nge@umbraco.dk>
Co-authored-by: Nikolaj <nikolajlauridsen@protonmail.ch>
2023-03-01 08:51:17 +01:00
..
2022-06-21 08:09:38 +02:00
2022-06-21 08:09:38 +02:00
2022-06-21 08:09:38 +02:00
2022-12-02 11:33:02 +01:00
2021-10-18 08:14:04 +01:00
2023-02-21 11:28:21 +01:00
2023-02-21 12:19:56 +01:00
2023-03-01 08:51:17 +01:00
2022-10-05 12:11:51 +02:00
2023-02-23 16:50:19 +01:00
2023-02-21 13:40:41 +01:00
2022-06-21 08:09:38 +02:00
2022-06-21 08:09:38 +02:00
2022-04-25 09:33:03 +02:00
2021-10-18 08:14:04 +01:00
2023-02-01 08:38:36 +01:00
2022-06-21 08:09:38 +02:00
2022-06-21 08:09:38 +02:00
2023-02-23 07:31:05 +01:00