ContinuityApp

Create a Related Dependency

You can attach an existing dependency to a dependency. When the dependency will get compiled, the related dependencies will be available in the Compile environment.

Auth&ACL

Users can access this API, via OAuth dependencies scope (or HTTP Basic Authentication for development purposes).

Definition

POST https://v1.continuityapp.ws/dependencies/<dependency_id>/related_dependencies

Arguments

Arguments    
related_dependency_id Required The related dependency ID to be attached.

Example request

In this example we will attach a Related Dependency to a Dependency.

$ curl https://v1.continuityapp.ws/dependencies/123456789123456770/related_dependencies?oauth_token=<access_token> \
    -d "related_dependency_id=123456789123456780"
    -X POST

Returns

The attached dependency summary will be returned.

Example response

{
  "response": {
    "id": 123456789123456780,
    "id_ref": "123456789123456780",
    "name": "memcached-1.4.15"
  }
}

Notes

You cannot attach a dependecy whose prefix has already been used by an other one already attached.

Errors

This API has an additional error code available:

Errors    
403 already_exists The dependency prefix has already been used by an other dependency attached to this Suite.
comments powered by Disqus