srp-internships / MRA.Jobs

MRA.Job - a centralized platform where the company will post new job positions/internships/courses/classes and candidates can apply.
MIT License
8 stars 1 forks source link

Adding dynamic pages #495

Closed komdil closed 7 months ago

komdil commented 8 months ago

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