Lorenzo Bolla
ff51c46915
More informative return value for task.Process
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
9b28d8984f
Configurable background task execution
2022-01-27 09:30:14 +01:00
Oliver Sauder
b4efe6a810
Add db cleanup api
2022-01-27 09:30:14 +01:00
Oliver Sauder
b0ab8f417d
Added gpg api so mirror updates are fully functional from api
2022-01-27 09:30:14 +01:00
Oliver Sauder
d7ccf95499
Added mirror api based on task list
2022-01-27 09:30:14 +01:00
Oliver Sauder
6ab5e60833
Add task api and resource locking ability
2022-01-27 09:30:14 +01: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
Oliver Sauder
f1882cfe2c
Expose repo include through API
2018-06-19 15:39:09 +02:00
Andrey Smirnov
b8c5303fdb
Fix paths after repository transfer to aptly-dev
2018-04-18 21:19:43 +03:00
Andrey Smirnov
3756db2491
Upgrade gin-gonic to latest master, fix compatibility issues
2017-09-28 00:33:59 +03:00
Andrey Smirnov
211ac0501f
Rework the way database is open/re-open in aptly
...
Allow database to be initialized without opening, unify all the
open paths to retry on failure.
In API router make sure open requests are matched with acks in explicit
way.
This also enables re-open attempts in all the aptly commands, so it
should make running aptly CLI much easier now hopefully.
Fix up system tests for oldoldstable ;)
2017-07-05 00:17:48 +03:00
Andrey Smirnov
39d2d273dc
Fix possible cause for spurious 500s
...
When DB fails to be open, aptly was skipping "close" phase, so that next
request considered database to be still open (while it's closed) leading
to panic.
Fixes : #431
2017-05-16 00:42:59 +03:00
Andrey Smirnov
11d828b3b1
Add govet/golint into Travis CI build
...
Fix current issues
2017-03-22 21:49:16 +03:00
Vincent Bernat
7f6a52019f
Add a flag to unlock database after each API request
...
After the first API request, the database was locked as long as the API
server is running. This prevents a user to also use the command-line
client. This commit adds a new flag `-no-lock` that will close the
database after each API request.
Closes #234
2015-10-02 20:04:48 +02:00
Andrey Smirnov
2f1afa54c2
Publish update/drop APIs, rework prefix, move publishing APIs. #116
2015-03-01 19:55:02 +03:00
Andrey Smirnov
e33a2a6f96
Reverting, as this change was making API LESS RESTful. My bad.
...
Revert "Make snapshot creation API more RESTful: accept snapshot name from URL. #116 "
This reverts commit 06dc1ef9a4 .
2015-02-28 19:55:09 +03:00
Andrey Smirnov
06dc1ef9a4
Make snapshot creation API more RESTful: accept snapshot name from URL. #116
2015-02-28 19:32:28 +03:00
Andrey Smirnov
c737b8c544
Flush CollectionFactory every 15 minutes. #116
2015-02-16 00:46:31 +03:00
Andrey Smirnov
a582493a6e
Packages show API with tests. #116
2015-02-07 18:50:52 +03:00
Andrey Smirnov
ebea4f10a0
Make snapshot diff GET, not POST (as it doesn't change anything in the system). #168
2015-01-24 21:51:33 +03:00
Andrey Smirnov
7c3629337c
Merge branch 'snapshot-api' of https://github.com/lebauce/aptly into lebauce-snapshot-api
...
Conflicts:
api/router.go
system/t12_api/__init__.py
2015-01-22 21:29:58 +03:00
Andrey Smirnov
2816647809
Allow to generate graph in formats supported by dot. #169
2015-01-13 19:22:24 +03:00
Andrey Smirnov
b50cb70a0e
Merge branch 'graph-api' of https://github.com/lebauce/aptly into lebauce-graph-api
2015-01-13 19:04:07 +03:00
Andrey Smirnov
d489694ea9
Refactoring: simplify version generation. Rename API to /api/version. #167
2015-01-13 18:47:41 +03:00
Sylvain Baubeau
6c7f3b3bbd
Add /api route to show API version #116
2015-01-12 10:56:54 +01:00
Sylvain Baubeau
38cb6bd133
Graph REST API #116
2015-01-12 10:56:28 +01:00
Andrey Smirnov
98ca0cdf33
Publish repo REST API. #116
2015-01-07 16:11:34 +03:00
Sylvain Baubeau
dd9fc8e40e
Allow API creation of snapshots using package references
2014-12-18 18:17:43 +01:00
Sylvain Baubeau
85f38cd739
Allow setting description on snapshots using API
2014-12-18 11:55:54 +01:00
Sylvain Baubeau
c733129de9
Add search API for packages in snapshots
2014-12-18 11:16:49 +01:00
Sylvain Baubeau
64ef342121
Add /snapshots/ API. #116
...
Implements :
- CRUD
- Difference between snapshots
2014-12-15 10:47:35 +01:00
Andrey Smirnov
6a9db17460
Stubs for API calls. #116
2014-10-23 00:41:24 +04:00
Andrey Smirnov
d6c3389d7c
First steps towards /files/ API (file upload). #116
2014-10-14 00:47:17 +04:00
Andrey Smirnov
10056b8571
Add first /repos/ API, command api serve. #116
2014-10-08 16:19:15 +04:00