| 1 |
definitions: |
| 2 |
api.StoreResponse: |
| 3 |
properties: |
| 4 |
gitoid: |
| 5 |
type: string |
| 6 |
type: object |
| 7 |
archivista.Resolver: |
| 8 |
type: object |
| 9 |
artifactstore.Artifact: |
| 10 |
properties: |
| 11 |
versions: |
| 12 |
additionalProperties: |
| 13 |
$ref: '#/definitions/artifactstore.Version' |
| 14 |
type: object |
| 15 |
type: object |
| 16 |
artifactstore.Distribution: |
| 17 |
properties: |
| 18 |
sha256digest: |
| 19 |
type: string |
| 20 |
type: object |
| 21 |
artifactstore.Version: |
| 22 |
properties: |
| 23 |
description: |
| 24 |
type: string |
| 25 |
distributions: |
| 26 |
additionalProperties: |
| 27 |
$ref: '#/definitions/artifactstore.Distribution' |
| 28 |
type: object |
| 29 |
type: object |
| 30 |
dsse.Envelope: |
| 31 |
properties: |
| 32 |
payload: |
| 33 |
items: |
| 34 |
type: integer |
| 35 |
type: array |
| 36 |
payloadType: |
| 37 |
type: string |
| 38 |
signatures: |
| 39 |
items: |
| 40 |
$ref: '#/definitions/dsse.Signature' |
| 41 |
type: array |
| 42 |
type: object |
| 43 |
dsse.Signature: |
| 44 |
properties: |
| 45 |
certificate: |
| 46 |
items: |
| 47 |
type: integer |
| 48 |
type: array |
| 49 |
intermediates: |
| 50 |
items: |
| 51 |
items: |
| 52 |
type: integer |
| 53 |
type: array |
| 54 |
type: array |
| 55 |
keyid: |
| 56 |
type: string |
| 57 |
sig: |
| 58 |
items: |
| 59 |
type: integer |
| 60 |
type: array |
| 61 |
timestamps: |
| 62 |
items: |
| 63 |
$ref: '#/definitions/dsse.SignatureTimestamp' |
| 64 |
type: array |
| 65 |
type: object |
| 66 |
dsse.SignatureTimestamp: |
| 67 |
properties: |
| 68 |
data: |
| 69 |
items: |
| 70 |
type: integer |
| 71 |
type: array |
| 72 |
type: |
| 73 |
$ref: '#/definitions/dsse.SignatureTimestampType' |
| 74 |
type: object |
| 75 |
dsse.SignatureTimestampType: |
| 76 |
enum: |
| 77 |
- tsp |
| 78 |
type: string |
| 79 |
x-enum-varnames: |
| 80 |
- TimestampRFC3161 |
| 81 |
info: |
| 82 |
contact: |
| 83 |
name: Archivista Contributors |
| 84 |
url: https://github.com/in-toto/archivista/issues/new |
| 85 |
description: Archivista API |
| 86 |
license: |
| 87 |
url: https://opensource.org/licenses/Apache-2 |
| 88 |
title: Archivista API |
| 89 |
version: v1 |
| 90 |
paths: |
| 91 |
/download/{gitoid}: |
| 92 |
get: |
| 93 |
deprecated: true |
| 94 |
description: download an attestation |
| 95 |
parameters: |
| 96 |
- description: gitoid |
| 97 |
in: path |
| 98 |
name: gitoid |
| 99 |
required: true |
| 100 |
type: string |
| 101 |
produces: |
| 102 |
- application/json |
| 103 |
responses: |
| 104 |
"200": |
| 105 |
description: OK |
| 106 |
schema: |
| 107 |
$ref: '#/definitions/dsse.Envelope' |
| 108 |
"400": |
| 109 |
description: Bad Request |
| 110 |
schema: |
| 111 |
type: string |
| 112 |
"404": |
| 113 |
description: Not Found |
| 114 |
"500": |
| 115 |
description: Internal Server Error |
| 116 |
schema: |
| 117 |
type: string |
| 118 |
summary: Download |
| 119 |
/upload: |
| 120 |
post: |
| 121 |
deprecated: true |
| 122 |
description: stores an attestation |
| 123 |
produces: |
| 124 |
- application/json |
| 125 |
responses: |
| 126 |
"200": |
| 127 |
description: OK |
| 128 |
schema: |
| 129 |
$ref: '#/definitions/api.StoreResponse' |
| 130 |
summary: Upload |
| 131 |
/v1/artifacts: |
| 132 |
get: |
| 133 |
description: retrieves details about all available Artifacts |
| 134 |
produces: |
| 135 |
- application/json |
| 136 |
responses: |
| 137 |
"200": |
| 138 |
description: OK |
| 139 |
schema: |
| 140 |
additionalProperties: |
| 141 |
$ref: '#/definitions/artifactstore.Artifact' |
| 142 |
type: object |
| 143 |
"400": |
| 144 |
description: Bad Request |
| 145 |
schema: |
| 146 |
type: string |
| 147 |
"500": |
| 148 |
description: Internal Server Error |
| 149 |
schema: |
| 150 |
type: string |
| 151 |
summary: List all Artifacts |
| 152 |
tags: |
| 153 |
- Artifacts |
| 154 |
/v1/artifacts/{name}: |
| 155 |
get: |
| 156 |
description: retrieves details about all available versions of a specified artifact |
| 157 |
parameters: |
| 158 |
- description: artifact name |
| 159 |
in: path |
| 160 |
name: name |
| 161 |
required: true |
| 162 |
type: string |
| 163 |
produces: |
| 164 |
- application/json |
| 165 |
responses: |
| 166 |
"200": |
| 167 |
description: OK |
| 168 |
schema: |
| 169 |
additionalProperties: |
| 170 |
$ref: '#/definitions/artifactstore.Version' |
| 171 |
type: object |
| 172 |
"400": |
| 173 |
description: Bad Request |
| 174 |
schema: |
| 175 |
type: string |
| 176 |
"500": |
| 177 |
description: Internal Server Error |
| 178 |
schema: |
| 179 |
type: string |
| 180 |
summary: List Artifact Versions |
| 181 |
tags: |
| 182 |
- Artifacts |
| 183 |
/v1/artifacts/{name}/{version}: |
| 184 |
get: |
| 185 |
description: retrieves details about a specified version of an artifact |
| 186 |
parameters: |
| 187 |
- description: artifact name |
| 188 |
in: path |
| 189 |
name: name |
| 190 |
required: true |
| 191 |
type: string |
| 192 |
- description: version of artifact |
| 193 |
in: path |
| 194 |
name: version |
| 195 |
required: true |
| 196 |
type: string |
| 197 |
produces: |
| 198 |
- application/json |
| 199 |
responses: |
| 200 |
"200": |
| 201 |
description: OK |
| 202 |
schema: |
| 203 |
$ref: '#/definitions/artifactstore.Version' |
| 204 |
"400": |
| 205 |
description: Bad Request |
| 206 |
schema: |
| 207 |
type: string |
| 208 |
"404": |
| 209 |
description: Not Found |
| 210 |
"500": |
| 211 |
description: Internal Server Error |
| 212 |
schema: |
| 213 |
type: objecpec |
| 214 |
summary: Artifact Version Details |
| 215 |
tags: |
| 216 |
- Artifacts |
| 217 |
/v1/download/{gitoid}: |
| 218 |
get: |
| 219 |
description: download an attestation |
| 220 |
parameters: |
| 221 |
- description: gitoid |
| 222 |
in: path |
| 223 |
name: gitoid |
| 224 |
required: true |
| 225 |
type: string |
| 226 |
produces: |
| 227 |
- application/json |
| 228 |
responses: |
| 229 |
"200": |
| 230 |
description: OK |
| 231 |
schema: |
| 232 |
$ref: '#/definitions/dsse.Envelope' |
| 233 |
"400": |
| 234 |
description: Bad Request |
| 235 |
schema: |
| 236 |
type: string |
| 237 |
"404": |
| 238 |
description: Not Found |
| 239 |
"500": |
| 240 |
description: Internal Server Error |
| 241 |
schema: |
| 242 |
type: string |
| 243 |
summary: Download |
| 244 |
tags: |
| 245 |
- attestation |
| 246 |
/v1/download/artifact/{name}/{version}/{distribution}: |
| 247 |
get: |
| 248 |
description: downloads a specified distribution of an artifact |
| 249 |
parameters: |
| 250 |
- description: name of artifact |
| 251 |
in: path |
| 252 |
name: name |
| 253 |
required: true |
| 254 |
type: string |
| 255 |
- description: version of artifact to download |
| 256 |
in: path |
| 257 |
name: version |
| 258 |
required: true |
| 259 |
type: string |
| 260 |
- description: distribution of artifact to download |
| 261 |
in: path |
| 262 |
name: distribution |
| 263 |
required: true |
| 264 |
type: string |
| 265 |
produces: |
| 266 |
- application/octet-stream |
| 267 |
responses: |
| 268 |
"200": |
| 269 |
description: OK |
| 270 |
schema: |
| 271 |
type: file |
| 272 |
"400": |
| 273 |
description: Bad Request |
| 274 |
schema: |
| 275 |
type: string |
| 276 |
"404": |
| 277 |
description: Not Found |
| 278 |
"500": |
| 279 |
description: Internal Server Error |
| 280 |
schema: |
| 281 |
type: string |
| 282 |
summary: Download Artifact |
| 283 |
tags: |
| 284 |
- Artifacts |
| 285 |
/v1/query: |
| 286 |
post: |
| 287 |
description: GraphQL query |
| 288 |
produces: |
| 289 |
- application/json |
| 290 |
responses: |
| 291 |
"200": |
| 292 |
description: OK |
| 293 |
schema: |
| 294 |
$ref: '#/definitions/archivista.Resolver' |
| 295 |
summary: Query GraphQL |
| 296 |
tags: |
| 297 |
- graphql |
| 298 |
/v1/upload: |
| 299 |
post: |
| 300 |
description: stores an attestation |
| 301 |
produces: |
| 302 |
- application/json |
| 303 |
responses: |
| 304 |
"200": |
| 305 |
description: OK |
| 306 |
schema: |
| 307 |
$ref: '#/definitions/api.StoreResponse' |
| 308 |
summary: Upload |
| 309 |
tags: |
| 310 |
- attestation |
| 311 |
swagger: "2.0" |