Documentation ¶
Index ¶
- func GetIndividualByID(id string, tx *pop.Connection) (*datamodels.Individual, error)
- func GetIndividuals(params operations.GetIndividualsParams) middleware.Responder
- func GetIndividualsByVariant(params operations.GetIndividualsByVariantParams) middleware.Responder
- func GetOneIndividual(params operations.GetOneIndividualParams) middleware.Responder
- func PostIndividual(params operations.PostIndividualParams) middleware.Responder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetIndividualByID ¶
func GetIndividualByID(id string, tx *pop.Connection) (*datamodels.Individual, error)
GetIndividualByID returns the Individual in the database corresponding to the given ID (or nil if no match is found)
func GetIndividuals ¶
func GetIndividuals(params operations.GetIndividualsParams) middleware.Responder
GetIndividuals returns all Individuals in the database given zero or more query parameters. The query parameters are handled separately in getIndividualsQuery.
func GetIndividualsByVariant ¶
func GetIndividualsByVariant(params operations.GetIndividualsByVariantParams) middleware.Responder
GetIndividualsByVariant returns all Individuals with a given Variant called. Since Individuals and Variants have a many-to-many relationship, Calls are used as the relation/junction between them.
func GetOneIndividual ¶
func GetOneIndividual(params operations.GetOneIndividualParams) middleware.Responder
GetOneIndividual returns the Individual in the database that corresponds to a given UUID.
func PostIndividual ¶
func PostIndividual(params operations.PostIndividualParams) middleware.Responder
PostIndividual processes a Individual posted by the API request and creates it into the database. It then retrieves the newly created Individual from the database and returns it, along with its URL location.
Types ¶
This section is empty.