Piotr Sarnacki
cc291446f5
Return env var's value if it's public
2014-07-16 11:54:31 +02:00
Piotr Sarnacki
2e8fc35e13
Properly validate settings
2014-07-15 16:26:24 +02:00
Piotr Sarnacki
fa56e4cfa0
Update code and specs for newest travis-core changes
2014-07-15 16:25:55 +02:00
Hiro Asari
6d3a65b541
Merge branch 'master' into ps-env-vars-in-settings
...
Conflicts:
Gemfile.lock
2014-06-18 08:38:49 -04:00
Hiro Asari
dae8652279
Merge branch 'master' into ha-feature-remove_log_endpoint
2014-06-17 10:40:30 -04:00
Hiro Asari
9265ac62c9
Merge branch 'master' into ha-feature-remove_log_endpoint
...
Conflicts:
Gemfile.lock
travis-api.gemspec
2014-06-17 09:05:05 -04:00
Konstantin Haase
143a9cd071
Revert "removed the branches endpoint"
...
This reverts commit f7450cdb6b
.
2014-06-17 14:44:13 +02:00
Konstantin Haase
0145236b30
Merge pull request #123 from travis-ci/rkh-lint
...
add endpoint for .travis.yml linting
2014-06-17 14:15:02 +02:00
Konstantin Haase
10fe7e1c39
add endpoint for linting
2014-06-17 12:14:10 +02:00
Hiro Asari
8d4c4488b1
Merge pull request #94 from travis-ci/jk_remove_branches_endpoint
...
Remove the branches endpoint
2014-06-16 11:36:59 -04:00
Hiro Asari
dfffe8e405
Remove PATCH logs/:job_id
endpoint
...
To eradicate unnecessary inconsistency.
Spec to test the existing `GET logs/:id` remains.
2014-06-12 07:20:47 -04:00
Hiro Asari
4a3807b21a
Standardize error handling for RemoveLog service endpoints
...
Return status 409 for errors
2014-06-11 13:51:47 -04:00
Hiro Asari
1cf298464a
Add RemoveLog service endpoint to jobs/:id/log
...
This replaces https://github.com/travis-ci/travis-api/pull/107 .
2014-06-11 13:39:21 -04:00
Hiro Asari
5c079f8e66
Add specs for RemoveLog service
...
Status code is debatable; I opted for 422 when the job is still
running, and for 500 if unexpected error happened
2014-06-11 09:30:50 -04:00
Piotr Sarnacki
3ef8fab3c6
Add settings endpoint for env_vars
2014-05-23 13:42:22 +02:00
Piotr Sarnacki
d02648a542
Add build_id to requests payload
2014-05-06 16:04:10 +02:00
Mathias Meyer
34a7f817b3
Remove documentation, redirect /docs to new docs.
2014-05-05 15:06:06 +02:00
Piotr Sarnacki
360881a888
Remove ssh_keys endpoint
...
SshKeys will make sense only on Travis CI Pro
2014-04-15 11:14:11 +02:00
Piotr Sarnacki
c42335a286
Merge pull request #117 from travis-ci/ps-ssh-keys
...
Add ssh keys to settings API
2014-04-15 10:59:59 +02:00
Piotr Sarnacki
f107d4676e
Params in POST and PATCH requests should be fetched from request body
...
This also adds missing specs for ssh_keys endpoint
2014-04-10 14:07:20 +02:00
Thais Camilo and Konstantin Haase
6e12bed1b5
store oauth state in cookie to verify it corresponds to current client
2014-04-08 15:17:23 -04:00
Piotr Sarnacki
11e814055e
Fix specs
2014-04-01 16:52:33 +02:00
Piotr Sarnacki
e9cdef1c9b
Add /settings/ssh_keys API
2014-04-01 13:05:25 +02:00
Piotr Sarnacki
1b524071f4
Allow to handle settings collections
2014-04-01 12:00:06 +02:00
Piotr Sarnacki
8c82d9af89
Move API v2 payload definitions to travis-api from travis-core
2014-03-24 20:25:06 +01:00
Piotr Sarnacki
400b6ae6ee
Add /requests/:id endpoint
2014-03-12 10:50:16 +01:00
Piotr Sarnacki
efa6a48a58
Merge pull request #112 from travis-ci/ps-requests-api
...
Add requests API
2014-03-11 13:24:09 +01:00
Piotr Sarnacki
093831c1a2
Add requests API
...
Requests API allows to get the requests from the DB and thus enable
users to have more insight into what's going on in their repositories.
2014-03-06 19:36:55 +01:00
Konstantin Haase
a7df899adc
be more forgiving with scopes for /auth/github
2014-02-26 19:28:20 +01:00
Hiro Asari
b43568a0f9
Fix Annoation-related specs
...
Annotations are now blocked by features, so stub the service to
return true for the cases we expect to get data back from POST
requests
2014-01-29 14:30:23 -05:00
Hiro Asari
5517623265
Respond with 409 to POST '/users/sync' if sync is in progress
...
Fixes travis-ci/travis-ci#1659 .
[Henrik Hodne: squashed commits]
2014-01-28 10:22:10 -06:00
Hiro Asari
8e1b190725
Require status for updating Annotation and bump travis-core
2014-01-22 09:34:26 -05:00
Hiro Asari
8ce826cda0
Merge branch 'master' into hh-add-metadata-endpoint
...
Conflicts:
Gemfile.lock
2014-01-20 22:30:35 -05:00
Sven Fuchs
0c6576fec1
Merge pull request #99 from travis-ci/ha-api-gh47-aggregate-cc-xml
...
Respond to /repos.xml with CC XML
2014-01-17 12:50:26 -08:00
Hiro Asari
a622de2a9f
Merge branch 'master' into hh-add-metadata-endpoint
...
Update Gemfile.lock to point to the updated travis-core PR
Conflicts:
Gemfile.lock
lib/travis/api/app/endpoint/jobs.rb
spec/integration/v2/jobs_spec.rb
2014-01-17 09:16:41 -05:00
Konstantin Haase
fc06e3bff9
Merge pull request #97 from travis-ci/core-gh1555-pretty-print-json
...
Pretty print JSON data
2013-12-06 05:27:55 -08:00
Piotr Sarnacki
e11dfa35cf
Fix PATCH repos/:id/settings
2013-12-02 15:36:58 +01:00
Piotr Sarnacki
62a5e602c5
Implement simple repository settings API
2013-12-02 15:36:25 +01:00
Hiro Asari
d31a29e54d
Fix grammar in spec description
2013-12-01 20:42:46 -05:00
Piotr Sarnacki
39260c3918
Fix specs after travis-core update
2013-11-28 18:08:39 +01:00
Hiro Asari
ff37525a5c
Cast in matcher as well
...
To match the previous change with the responder.
2013-11-19 01:23:47 -05:00
Hiro Asari
0f0ee4778f
Fix up matcher to account for change in data structure
...
Aggregate CC XML would have a different output
2013-11-18 16:55:23 -05:00
Hiro Asari
362b5d30bf
Respond to /repos.xml with CC XML
...
See #47
2013-11-18 16:55:11 -05:00
Hiro Asari
85aebf684b
Add specs for pretty print JSON
...
They only check that the response includes `\n`, which should not happen
otherwise.
2013-11-18 13:15:05 -05:00
Piotr Sarnacki
e61a723d06
Fix scoping spec
...
After bundle update 403 error was returned after unsuccessful scopes
check. This is actually a proper behaviour, so I'm changing test to
reflect this test.
2013-11-12 22:16:47 +01:00
Hiro Asari
3b20120c72
Accept .atom
extension
...
And return Atom feed for builds.
Specs look different, because it needs to explicitly handle the common
case where the client sends `Accept: */*`.
2013-11-11 15:21:14 -05:00
Hiro Asari
8171d3915e
Add integration specs for Atom feed
...
These rudimentary specs do not test the correctness of
the Atom feed format.
2013-11-11 11:40:37 -05:00
Piotr Sarnacki
1503b87555
Require travis/testing explicitly
2013-11-08 11:05:55 +01:00
Josh Kalderimis
f7450cdb6b
removed the branches endpoint
...
we already have branch info accessible via the repos endpoints, having this at the root level doesn't make sense.
2013-11-06 01:40:42 +01:00
Piotr Sarnacki
58f1284244
Merge pull request #85 from travis-ci/insufficient-oauth-redirect
...
Redirect to web client on insufficient oauth scopes
2013-11-05 05:31:25 -08:00