9 Commits

Author SHA1 Message Date
Michael Yang
0bd5245acf fix: status on errors
HTTP status on errors when stream:=false is always 500 Internal Server
Error because the individual errors are not handled.

The most common errors are:

- pull, push: pulling or pushing a model that doesn't exist should
  return 404 Not Found
- push: pushing a model into a place the user is authorized to should
  return 401 Unauthorized
2024-01-22 11:07:53 -08:00
Patrick Devine
eef50accb4
Fix show parameters (#2017) 2024-01-16 10:34:44 -08:00
Michael Yang
2bb2bdd5d4 fix lint 2024-01-09 09:36:58 -08:00
Michael Yang
acfc376efd add .golangci.yaml 2024-01-09 09:36:58 -08:00
Michael Yang
63aac0edc5 fix(test): use real version string for comparison 2023-12-19 15:03:02 -08:00
Patrick Devine
3948c6ea06
add magic header for unit tests (#1558) 2023-12-18 10:41:02 -08:00
Patrick Devine
86b0dd4b16
add API create/copy handlers (#1541) 2023-12-15 11:59:18 -08:00
Patrick Devine
0174665d0e
add API tests for list handler (#1535) 2023-12-14 18:18:25 -08:00
Patrick Devine
630518f0d9
Add unit test of API routes (#1528) 2023-12-14 16:47:40 -08:00