Code Monkey home page Code Monkey logo

api.go.cd's Introduction

GoCD API Documentation

Checkout the live documentation at https://api.gocd.org

Contributing to the API Documentation

Configure and install middleman

$ bundle install

Run the API documentation locally on http://localhost:4567

$ bundle exec middleman serve

Generating the static website

$ bundle exec rake build

Publish the website to Github Pages

$ bundle exec rake publish

Need help?

  • Just submit a issue to the github repository if you need any help. And, of course, feel free to submit pull requests with bug fixes or changes.

Special thanks

Contributing

We encourage you to contribute to Go. For information on contributing to this project, please see our contributor's guide. A lot of useful information like links to user documentation, design documentation, mailing lists etc. can be found in the resources section.

License

Copyright 2008-2013 Concur Technologies, Inc.
Copyright 2022 Thoughtworks, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

api.go.cd's People

Contributors

adityasood avatar aerostitch avatar arvindsv avatar bdpiprava avatar bootstraponline avatar chadlwilson avatar chrissrogers avatar cvkef avatar dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar dhanasp avatar dtsato avatar fredrikwendt avatar ganeshspatil avatar gaqzi avatar juhijariwala avatar jyotisingh avatar ketan avatar kritika-singh3 avatar lord avatar maheshp avatar maks3w avatar marcguyer avatar marques-work avatar nyuday avatar realityking avatar stephen-murby avatar varshavaradarajan avatar zabil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

api.go.cd's Issues

update backup api docs

The backup api returns a user summary object, not a user object.

Need to update the entire backup api section.

Example for authentication doesn't work with v1 of the API

As the title states, the example for authenticating against the API doesn't work as written. Changing it to v2 (or v3) makes it work.

vagrant@vagrant-ubuntu-trusty-64:~$ curl -k 'https://localhost:8154/go/api/agents' -u 'user:user' -H 'Accept: application/vnd.go.cd.v1+json'
{
  "message": "The resource you requested was not found!"
}
vagrant@vagrant-ubuntu-trusty-64:~$ curl -k 'https://localhost:8154/go/api/agents' -u 'user:user' -H 'Accept: application/vnd.go.cd.v2+json'
{
  "_links": {
    "self": {
      "href": "https://localhost:8154/go/api/agents"
    },
    "doc": {
      "href": "https://api.go.cd/#agents"
    }
  },
<snip>

Get server health messages Docu omits authentications is required

Hi,

the documentation for (Get server health messages)[https://api.gocd.org/19.5.0/#get-server-health-messages] omits the fact, that you have to be authenticated to access the messages.

curl 'http://127.0.0.1:8153/go/api/server_health_messages' -u 'admin:admin' -H 'Accept: application/vnd.go.cd.v1+json'returns a json list of messages.

Whereas curl 'http://127.0.0.1:8153/go/api/server_health_messages' -H 'Accept: application/vnd.go.cd.v1+json' just says:

{
  "message": "You are not authenticated!"
}

Greets
Joachim

Document CREATE plugin_settings is required before running GET plugin_settings

Hi,

It is not quite clear that when a plugin is loaded into the GoCD server that a base plugin settings object is not created.

Running a get plugin settings api call will result in a 404, until a user creates plugin settings in the UI, or runs create plugin settings.

This led to some confusion and if clarified will make it easier for developers to evaluate the service when considering automated plugin settings creation.

Thanks!

Improve Documentation with Nullable

Objects represented via describe_object may have fields that are nullable.

Depending on the programming language (Python has None, TypeScript has null, Go has nil, etc) there are cases where this nullability is important, so it would be nice if nullable fields are well documented.

Get Maintainance Mode Docu lists wrong API URL

Hi,

In the documentation for Get Maintenance Mode Info the API URL is /go/api/maintenance_mode/info. Correctly it should be /go/api/admin/maintenance_mode/info. At least, I get results there:

curl 'http://127.0.0.1:8153/go/api/admin/maintenance_mode/info' -u 'admin:admin' -H 'Accept: application/vnd.go.cd.v1+json' 

Returns

{
  "_links" : {
    "self" : {
      "href" : "http://127.0.0.1:8153/go/api/admin/maintenance_mode/info"
    },
    "doc" : {
      "href" : "https://api.gocd.org/19.5.0/#maintenance-mode-info"
    }
  },
  "is_maintenance_mode" : false,
  "metadata" : {
    "updated_by" : "admin",
    "updated_on" : "2019-07-16T10:55:14Z"
  }
}

This URL is also consistent with the ones for enabling and disabling the maintenance mode.

Greets
Joachim

Is /go/api/admin/config/config.xml correct?

The documentation states that you can use /go/api/admin/config/config.xml to get the configuration XML, and that /go/api/admin/config/current.xml is an alternative. I could not get the former to work, receiving a null pointer exception. In the logs I could see that it was interpreting config as an md5 version. Using the current.xml version worked perfectly. Are the docs on this line wrong?

Error in authentication example

I was not able to get the example GoCD authentication code to work using a recent version of GoCD. It specifies the following CURL command which will return a 404:

image

https://api.gocd.org/current/#basic-authentication

After digging around for awhile I found this under the agents saying the minimum JSON API version should be 4 for /go/api/agents:

image

After changing the accept header to application/vnd.go.cd.v4+json, the requests works fine. I'm not sure if there is something I'm missing here or if this is just an omission.

Description for getting SCM object is copied from all method.

Can you please fix description of getting specific SCM object in documentation?
Right now it reads

Lists all available pluggable scm materials, these are materials that are present in the in cruise-config.xml.

which is description of listing all SCM objects.

Hyperlinks to old API documentation

api.go.cd is the canonical URL for latest api documentation. However it is confusing for users who land there from a google search but are using an older version of go.

I'd like to propose something like to help point users in the right direction.

screen shot 2015-07-18 at 12 42 22 pm

Open questions:

  • Clearly some of these APIs have been available for a while, in a different format. What should "available since" say in such cases?
  • Some APIs for e.g. "update agent" were multiple calls in the older API (delete, disable, enable) how do we deal with such cases?

WDYT?

Need a way to determine how long a job ran

Currently, the APIs only seem to support retrieving when a pipeline stage job starts, but not when a job ends, or a duration for how long it took. Feel free to let me know if there's somewhere to get this information if I've just missed it. Thanks!

Missing information in Readme: bundler must be 1.17.1

Hi,

when trying to install middleman by executing bundle install --path .bundle --binstubs i need bundler in Version 1.17.2 (at least 2.0.2) does not work. Could you add this piece of information for ruby noobs?

Regards
Joachim

[v20.1.0] Config listing request not working

Hello,

I recently updated the version of my GoCD server from 19.5.0 to 20.1.0 version.
Everything goes well except that I cannot access to pipeline groups listing (https://api.gocd.org/current/#config-listing).

REQUEST:

curl --location --request GET 'http://localhost:8153/go/api/config/pipeline_groups' \
--header 'Authorization: bearer <MY_TOKEN>'

RESPONSE:

404 Not Found
{
    "message": "Either the resource you requested was not found, or you are not authorized to perform this action."
}

What I am missing?

Thank you for your help,
Best regards,
Granyy

Missing explanation for use of if-match header

The environment config update call does not have the section that explains why the If-Match header is needed, we've got this explanation in a few other places in the API docs, might be useful to extract it into a partial and include it everywhere it's needed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.