brass/doc/design-decisions.md

601 B

Design Decision

Communication between Browser and Server via REST-like Endpoints and HTMX

  • https://htmx.org/essays/10-tips-for-ssr-hda-apps/
  • Name of endpoints is plural
    • "/locations" GET -> read all
    • "/locations/new" GET / POST -> create
    • "/locations/1" GET -> edit, POST -> update, DELETE -> delete CRUD
    • "/locations/assign" GET / POST for custom action
  • Modelling of models in code
    • see vehicle.rs
    • use of applicationError
    • return Options, where queries are bound to id or search input

Testing

User

  • CreatingNewUser_AsAdmin_SendsRegistrationMail