11 Commits

Author SHA1 Message Date
André Roth
e319f3cd14 update doc
make descrptions consistent
2024-12-11 11:19:46 +01:00
André Roth
a69c00a5bc swagger: improve layout
and fix lint
2024-12-11 10:40:44 +01:00
André Roth
397362bb1a fix swagger build 2024-12-11 10:40:44 +01:00
iofq
398fec13b0 Update packages api docs 2024-12-11 10:40:44 +01:00
André Roth
ba86851d07 add api documentation stubs 2024-12-11 10:40:43 +01:00
André Roth
fb538333fa add swagger documentation 2024-10-01 01:07:09 +02:00
Markus Muellner
ecc41f0c0f replace AbortWithError calls by custom function that sets the content type correctly 2023-01-23 10:42:57 +01:00
Sjoerd Simons
393d1a6888 api: Allow querying the packages endpoint
The ".../packages" endpoints for mirror, local repos and snapshots all
share the same syntax for querying. However the "/api/packages" endpoint
doesn't match this. Adjust that to allow for a bit more consistency and
allow querying the full package database.

The current endpoint functionality "/packages/:name" is kept intact and
can be used the same as now

Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
2022-08-29 10:28:44 +02:00
Oliver Sauder
208a2151c1 every go routine needs to have its own collection factory
this is needed so concurrent reads and writes are possible.
2022-01-27 09:30:14 +01:00
Andrey Smirnov
3756db2491 Upgrade gin-gonic to latest master, fix compatibility issues 2017-09-28 00:33:59 +03:00
Andrey Smirnov
a582493a6e Packages show API with tests. #116 2015-02-07 18:50:52 +03:00