Documentation
¶
Overview ¶
Package readapplications lists applications: GET /api/applications.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
func Handler(db bun.IDB) http.HandlerFunc
Handler lists the applications that match the filters, one page of them; X-Total-Count is the count of all. @Summary List applications @Tags applications @Produce json @Param ids query []string false "Applications by id, comma separated or repeated" collectionFormat(csv) @Param status query []string false "Any of these statuses" collectionFormat(csv) Enums(applied,responded,interview,offer,rejected,no_reply) @Param source query string false "Source: spontaneous, job_post, recruiter or a name given by the user" @Param location query string false "This city, whatever the case" @Param q query string false "Text in company, address, website, source, contact or comment" @Param applied_before query string false "applied_at < this day (2026-01-31)" @Param applied_after query string false "applied_at > this day (2026-01-31)" @Param untouched_since query string false "Not updated since this day (2026-01-31)" @Param fields query []string false "Columns returned, all when empty; id always comes" collectionFormat(csv) @Param max_chars query int false "Cut each comment to this many characters (truncated: true)" @Param sort query string false "applied_at, company, location, source, status, rating, followed_up_at, created_at, updated_at; - first to reverse; -applied_at by default" @Param limit query int false "Most applications returned, all when 0" @Param offset query int false "Applications skipped" @Param count_only query bool false "No application, X-Total-Count only" @Success 200 {array} domain.Application @Header 200 {integer} X-Total-Count "Count of all the applications that match" @Failure 400 {object} respond.Failure @Failure 401 {object} respond.Failure @Router /api/applications [get]
Types ¶
This section is empty.