Implement this on Identity, and Jobs services. It would be a kind of CMS feature
Server:
Create a new entity: Page
Name string (unique),
Content string
ShowInMenu bool
Role string
The server should return 403 when client requested a page with name and user role does not match with page role
Only SuperAdmin can create/delete/update a page
Add tests for each scenario
Client:
In each client app, there should be a page with the route:
Generate a menu from the page. On generating menu send a request to server and get pages that ShowInMenu is true,
Use Name property to show Menu name and use */pages/Name to create href
*/pages/{pageName}
Show 403 when server returns 403
Show content in HTML when server returns OK,
Super admin page:
Create page for super admin to manage pages
Implement this on Identity, and Jobs services. It would be a kind of CMS feature
Server: Create a new entity: Page Name string (unique), Content string ShowInMenu bool Role string
The server should return 403 when client requested a page with name and user role does not match with page role Only SuperAdmin can create/delete/update a page
Add tests for each scenario
Client: In each client app, there should be a page with the route: Generate a menu from the page. On generating menu send a request to server and get pages that ShowInMenu is true, Use Name property to show Menu name and use */pages/Name to create href
*/pages/{pageName} Show 403 when server returns 403 Show content in HTML when server returns OK,
Super admin page: Create page for super admin to manage pages