Commit Graph

54 Commits

Author SHA1 Message Date
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
fe76d38230 Merge branch 'master' into cronjobs 2016-03-21 17:08:33 +01:00
Steffen Kötte
ac0012b0a2 Merge commit '8a050a468c77f2ad8c5faa99864c0bd7d61b08a0' into cronjobs
# Conflicts:
#	Gemfile
2016-03-21 10:32:46 +01:00
carlad
7a7e957b80 Merge branch 'master' into cd-v3 2016-03-11 11:36:19 +01:00
Hiro Asari
2196acb36d Use V3 services for debug route 2016-02-29 12:40:51 -10:00
Steffen Kötte
05d2e4767e adjust cron API path 2016-01-28 13:01:28 +01:00
Steffen Kötte
0920041375 further changes for new structure with only one cron per branch 2016-01-11 14:14:00 +01:00
Steffen Kötte
b45b3fadf7 changes for new db structure 2016-01-07 15:00:08 +01:00
carlad
01a86c1dd5 v3 remove put request type 2016-01-07 12:39:54 +01:00
carlad
43480752fa intial work on adding /lint endpoint 2016-01-07 12:34:10 +01:00
Steffen Kötte
e4aec173ee Merge commit 'bddd9952a74d1eddad5d5a255419e07c836b286d' into addCron
Conflicts:
	spec/v3/services/owner/find_spec.rb
	spec/v3/services/repositories/for_current_user_spec.rb
	spec/v3/services/repositories/for_owner_spec.rb
	spec/v3/services/repository/find_spec.rb
2015-12-17 10:11:20 +01:00
Steffen
18ea7853bf Merge branch 'master' into addCron 2015-11-19 13:39:50 +01:00
carlad
c96e8e2ff1 initial work on star and unstar endpoints 2015-11-16 18:14:31 +01:00
Steffen Kötte
aca632ed15 use branch for storing cron 2015-11-16 14:24:11 +01:00
Steffen Kötte
c6556977fa Change create and delete to POST 2015-11-09 13:42:01 +01:00
Lennard Wolf
208dfb9a93 add /repo/repository.id/crons/create endpoint, all working with our access_control 2015-11-05 16:04:08 +01:00
Lennard Wolf
ec37deb17c add /repo/repo.id/crons GET endpoint 2015-11-05 15:22:10 +01:00
Lennard Wolf
5295d0c3ee add nonworking implementation of /cron/cron.id/delete 2015-11-05 15:11:31 +01:00
Lennard Wolf
046a63b60a add find for cron 2015-11-05 11:43:58 +01:00
carlad
26b1d85d43 V3 add user/:id/sync endpoint 2015-10-29 17:57:30 +01:00
carlad
59d3090da6 Auto-merged master into cd-v3-parity on deployment. 2015-10-28 15:40:26 +01:00
Konstantin Haase
df3ec4084a API v3: owner/repos => repos/for_owner 2015-10-28 13:22:04 +01:00
carlad
245edc5f55 add owner/github_id/:id endpoint 2015-10-28 13:13:02 +01:00
carlad
dc248302ab add jobs endpoint 2015-10-26 15:57:34 +01:00
carlad
b6ffb8bdf8 v3 add job cancellation endpoint ans spec 2015-09-30 17:03:00 +02:00
carlad
b73a5604d0 v3 add build/id/cancel endpoint and tests 2015-09-29 16:28:42 +02:00
carlad
faf60a5f7f initial work to add build and job cancellation incl updating existing specs 2015-09-25 16:04:47 +02:00
carlad
1640c33517 fix incorrect broadcast endpoints - add correct broadcasts endpoint 2015-09-10 17:36:13 +02:00
carlad
bd61d1e58e add broadcasts - initial work 2015-09-10 15:08:41 +02:00
carlad
f44b374d79 v3 add branches endpoint 2015-09-07 17:09:05 +02:00
carlad
beaa4b7e17 add branches endpoint 2015-09-07 17:07:09 +02:00
carlad
702b539ddf v3 put endpoints in routes.rb into alphabetical order 2015-09-02 18:22:10 +02:00
carlad
8e6dbf9319 v3 add /job/:id endpoint 2015-08-27 11:00:09 +02:00
carlad
f7634f0f39 update routes for builds 2015-08-21 13:48:47 +02:00
carlad
fe9a6536d7 add builds 2015-08-21 13:38:07 +02:00
Konstantin Haase
0cdecaade3 API v3: add captures route dsl method 2015-05-21 14:57:16 +02:00
Piotr Sarnacki
bff7f76c33 v3: Implement fetching repository by slug 2015-05-21 12:29:04 +02:00
Konstantin Haase
d8f1075491 start working on repos by owner endpoint 2015-04-27 17:01:41 +02:00
Konstantin Haase
1b19b57109 v3: add accounts api 2015-04-17 13:34:29 +02:00
Konstantin Haase
344979a2a8 v3: rename account to owner (so we can use account for private accounts api) 2015-04-17 12:44:10 +02:00
Konstantin Haase
5efdcc24c8 implement accounts api 2015-04-13 13:12:18 +02:00
Konstantin Haase
3a058339be v3: add /user and /user/:id 2015-03-24 17:25:57 +01:00
Konstantin Haase
9ea21e6352 Merge branch 'master' into rkh-v3-enable-disable 2015-03-05 14:27:17 +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
2cf685c450 v3: add api endpoints for enabling/disabling a repo 2015-02-23 11:19:25 +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
3567a759c2 v3: initial stab at request creation api 2015-02-11 10:05:08 +01:00
Konstantin Haase
737a31ad23 v3: add /orgs endpoint, fixes travis-pro/api-v3#1 2015-01-27 15:50:21 +01:00