NAME | TYPE | DESCRIPTION |
---|---|---|
|
| Unique ID for the object. |
|
| ID of the user who created the object. |
|
| ID of the user who owns the object. |
|
| ID of the namespace the invite was sent for. |
|
| The name of the object. |
|
| The MIME type of the object. |
|
| The MD5 sum hash of the object. |
|
| The SHA256 sum hash of the object. |
|
| The RFC3339 formatted string at which the object was created. |
|
| The API URL to the object entity itself. |
|
| The API URL for the builds the object was placed on. |
|
| The user who authored the object. |
|
| The user who owns the object. |
|
| The namespace who owns the object. |
GET
/objects
POST
/objects
GET
/objects/:id
DELETE
/objects/:id
List the objects for the currently authenticated user. The following parameters can be given as query parameters to the URL. This requires the object:read
permission.
NAME | TYPE | DESCRIPTION |
---|---|---|
|
| Get the objects with names like the given value. |
This will return a list of objects. The list will be paginated to 25 objects per page, and will be ordered lexically. If the objects were paginated, then the pagination information will be in the response header Link
.
Link: <https://api.djinn-ci.com/objects?page=1>; rel="prev",
<https://api.djinn-ci.com/objects?page=3>; rel="next"
This will create an object for the currently authenticated user. This requires the object:write
permission.
The contents of the file should be sent in the body of the request. The header Content-Type
should be the MIME type of the file being uploaded.
NAME | TYPE | REQUIRED | DESCRIPTION |
---|---|---|---|
|
| Yes | The name of the object to create. |
|
| No | The namespace to upload the object to. |
$ curl -X POST \ -H "Authorization: Bearer 1a2b3c4d5f" \ -H "Content-Type: image/jpeg" \ -d "@image.jpeg" \ https://api.djinn-ci.com/objects?name=data $ curl -X POST \ -H "Authorization: Bearer 1a2b3c4d5f" \ -H "Content-Type: image/jpeg" \ -d "@image.jpeg" \ https://api.djinn-ci.com/objects?name=data&namespace=djinn
This will delete the object by the given :id
. This requires the object:delete
permission.
This returns no content in the response body.