summaryrefslogtreecommitdiff
path: root/pkg/api/handlers/decoder.go
Commit message (Collapse)AuthorAge
* Fix Id->ID where possible for lintDaniel J Walsh2020-06-10
| | | | Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
* Fixed syscall.Signal not convertable by decoderAndreas Schubert2020-02-19
| | | | Signed-off-by: Andreas Schubert <schubter@gmail.com>
* Refactor time parsing to be more liberal in accepted valuesJhon Honce2020-01-24
| | | | | | * Added helper function to allow parsing from filters Signed-off-by: Jhon Honce <jhonce@redhat.com>
* Add query parameter converters for complex typesJhon Honce2020-01-23
* Add converter for URL query parameters of type map[string][]string * Add converter for URL query parameters of type time.Time * Added function to allocate and configure schema.Decoder for API use * Updated API handlers to leverage new converters, and correct handler code for filter type An encoding example for a client using filters: v := map[string][]string{ "dangling": {"true"}, } payload, err := jsoniter.MarshalToString(v) if err != nil { panic(err) } payload = "?filters=" + url.QueryEscape(payload) Signed-off-by: Jhon Honce <jhonce@redhat.com>