Joe Corcoran
f5bc526f25
Refactor repeated pattern into extracted method
...
Seems like we'll be checking login status before finding a resource
a lot, so here's a standard way to do it.
2016-07-01 23:55:49 -04:00
Joe Corcoran
91e9fcebf7
Remove some duplication
2016-07-01 23:55:49 -04:00
Joe Corcoran
871b915515
Add env vars endpoints
...
This adds API V3 endpoints for querying, creating, modifying and
deleting environment variables.
It has no concept of encryption yet and should be considered a work in
progress.
We should also talk about the slightly off-track approach in the
EnvVars::Create service – maybe there's a way to standardise the
querying and rendering for post requests?
☕
2016-07-01 23:55:49 -04:00
Joe Corcoran
fba9a87c39
Add settings to API V3
...
This adds /repo/{repository.id}/settings endpoints for reading
and updating repo settings.
Main points:
1. Sets up Settings as a first class resource instead of as an
attribute of Repository
2. Adds new meta-programmed method to Query for accessing all
prefixed params as a hash.
2016-06-08 15:59:52 +02:00
Jonas Chromik
ca82725e5e
move cron jobs feature flag to permissions
2016-03-22 13:48:51 +01:00
Steffen
18ea7853bf
Merge branch 'master' into addCron
2015-11-19 13:39:50 +01:00
Steffen Kötte
aca632ed15
use branch for storing cron
2015-11-16 14:24:11 +01:00
Lennard Wolf
5295d0c3ee
add nonworking implementation of /cron/cron.id/delete
2015-11-05 15:11:31 +01:00
Lennard Wolf
772e797aae
add /cron/cron.id/ GET endpoint
2015-11-05 13:31:36 +01:00
carlad
26b1d85d43
V3 add user/:id/sync endpoint
2015-10-29 17:57:30 +01:00
carlad
b6ffb8bdf8
v3 add job cancellation endpoint ans spec
2015-09-30 17:03:00 +02:00
carlad
d99c3c8c54
v3 update build cancel, access control, specs for build cancel
2015-09-28 18:45:52 +02:00
carlad
8e6dbf9319
v3 add /job/:id endpoint
2015-08-27 11:00:09 +02:00
Konstantin Haase
18a90c2561
v3: if the API is not marked as public (travis-ci.com), then do not allow read access to organizations the user is not a member of (note: private repos were never included)
2015-08-19 13:04:54 +02:00
Konstantin Haase
b0f142a94b
v3: drastically reduce objects allocated by access control
2015-05-11 17:38:40 +02:00
Konstantin Haase
21aa667b9c
v3: add account permissions
2015-04-29 14:14:21 +02:00
Konstantin Haase
eac88e5d50
v3: introduce permission objects
2015-04-29 10:50:34 +02:00
Konstantin Haase
d8f1075491
start working on repos by owner endpoint
2015-04-27 17:01:41 +02:00
Konstantin Haase
3a058339be
v3: add /user and /user/:id
2015-03-24 17:25:57 +01:00
Konstantin Haase
de5908dd43
v3: implement enable/disable
2015-03-06 15:35:47 +01:00
Konstantin Haase
7c6dc9a54c
v3: full request create implementation and specs
2015-03-04 18:35:25 +01:00
Konstantin Haase
c968bbaab1
v3: use branches table for default_branch, eager load on /repos endpoint to avoid N+1 queries
2015-02-23 22:54:28 +01:00
Konstantin Haase
5f2dc47e07
no longer use models from travis-core in queries
2015-02-23 16:50:51 +01:00
Konstantin Haase
7fce1b93f3
v3: add /build/:id endpoint
2015-02-18 13:47:04 +01:00
Konstantin Haase
b84a0a492b
v3: add /org/:id endpoint
2015-02-18 10:07:14 +01:00
Konstantin Haase
a6da78ad83
v3: find repos for current user (used for dashboard)
2015-01-23 19:27:01 +01:00
Konstantin Haase
4bc211a2e7
first actually working version of v3
2015-01-20 16:33:11 +01:00
Konstantin Haase
a65792ee49
start working on API v3
2015-01-13 15:22:20 +01:00