Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Forms ¶
Forms defines the handler for all form routes.
func (*Forms) Create ¶
Create
Returns http.StatusOK if the form was created. Returns http.StatusInternalServerError if there was an error creating the form. Returns http.StatusBadRequest if the the validation failed or there was a conflict.
func (*Forms) Delete ¶
Delete
Returns http.StatusOK if the form was deleted. Returns http.StatusInternalServerError if there was an error deleting the form. Returns http.StatusBadRequest if the the form wasn't found or no ID was passed.
func (*Forms) Find ¶
Find
Returns http.StatusOK if the form was obtained. Returns http.StatusInternalServerError if there as an error obtaining the form. Returns http.StatusBadRequest if the ID wasn't passed or failed to convert.
func (*Forms) List ¶
List
Returns http.StatusOK if there are no forms or success. Returns http.StatusInternalServerError if there was an error getting the forms. Returns http.StatusBadRequest if there was conflict or the request was invalid.