generics

package
v0.0.0-...-5da7351 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL