-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
questionFurther information is requestedFurther information is requested
Description
The Hallo.Sample project includes an example PagedListRepresentation<T> which accepts the baseUrl for the collection. Below is the snippet of how this is constructed.
hallo/Hallo.Sample/Models/Hypermedia/PersonRepresentation.cs
Lines 24 to 28 in db5d14e
| public class PersonListRepresentation : PagedListRepresentation<Person> | |
| { | |
| public PersonListRepresentation(PersonRepresentation personRepresentation) | |
| : base("/people", personRepresentation) { } | |
| } |
This works fine for constant base URLs like in this example but is more difficult when the base URL is dynamic. For example, if the URL to the collection was /race/123/cars (where 123 is the resource id) how do we support getting the race id into the base URL?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested