nadirbad/VerticalSliceArchitecture ? reverse-engineered prompt
Reverse engineered prompt
Build me a .NET 10 API template for a medical clinic appointment system using vertical slice architecture.
I want it to let patients book, view, complete, and cancel appointments with doctors, and it should enforce the real world rules around that, like no double booking, appointments must be scheduled at least 15 minutes ahead, and completed or cancelled appointments can’t be changed again. Please make the API easy to run locally with Swagger, and set it up so it works with PostgreSQL in a dev container or Codespaces.
Keep each feature together in its own slice, with the endpoint, validation, request, and handler close to each other. Include sample seed data for a few patients and doctors, plus tests for the main appointment flows. If you need to check current .NET or EF Core docs while building it, go ahead and look them up online.
Are you gonna build this?
make sure you review the code using coderabbit