Documentation
¶
Overview ¶
Package rest contains the REST handler implementations for the six standard Document operations (list, get, create, update, delete, submit).
See PRD §14.2 for the endpoint specification. Implemented in Phase 6.
Index ¶
- type Handler
- func (h *Handler) Create(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Delete(w http.ResponseWriter, r *http.Request)
- func (h *Handler) List(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Read(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Update(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler serves REST operations for Documents per PRD §14.2.
func NewHandler ¶
NewHandler constructs a new REST Handler.
func (*Handler) Create ¶
func (h *Handler) Create(w http.ResponseWriter, r *http.Request)
Create handles POST /api/v1/document/{doctype}
func (*Handler) Delete ¶
func (h *Handler) Delete(w http.ResponseWriter, r *http.Request)
Delete handles DELETE /api/v1/document/{doctype}/{id}
func (*Handler) List ¶
func (h *Handler) List(w http.ResponseWriter, r *http.Request)
List handles GET /api/v1/document/{doctype}
Click to show internal directories.
Click to hide internal directories.