-
Notifications
You must be signed in to change notification settings - Fork 1
Server side
wertzui edited this page Apr 25, 2023
·
1 revision
The server side contains logic to create HAL resources, HAL-Forms resources and Controllers serving HAL.
In order to use HAL, you need to register it in your Startup
to the IMvcBuilder
.
services
.AddControllers(...)
.AddHal();
There is also an OData compatible version which can be used to generate Links that are in the form as expected by OData. This can be useful if you want to generate resources that represent a paged collection with links to the previous and next page.
services
.AddControllers(...)
.AddHalOData();