Skip to content
This repository

Handlers are the objects which handle all interaction with your resources. By convention, they will have methods which start with the names of HTTP methods such as GET, POST, PUT and DELETE. A CustomerHandler, for example, might have methods with the signatures:

  public Customers GetAll()
  {
      return CustomerRepository.All();
  }

  public void DeleteCustomer(int id)
  {
      CustomerRepository.DeleteById(id);
  }

OpenRasta decides which of these methods to call via a set of rules governed by the fluent configuration of the site.

See Also

Next: Codecs

Something went wrong with that request. Please try again.