use RESTful style for GET & POST to child entity endpoints

This commit is contained in:
2025-05-21 07:40:09 +02:00
parent 108d7a2d5e
commit be33f30425
3 changed files with 31 additions and 19 deletions

View File

@@ -17,6 +17,9 @@ public abstract class BaseHandler<TEntity, TUpdateMsg>(IApiServer server)
public ApiRequestInfo Request { get; } = reqest;
}
/// <summary>
/// Gets the base route (endpoint) for the most API calls.
/// </summary>
public abstract string Route { get; }
protected virtual bool RegisterGet => true;
protected virtual bool RegisterPut => true;