-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrepos@{repo_id}@get-snapshots.yaml
More file actions
42 lines (42 loc) · 1.2 KB
/
repos@{repo_id}@get-snapshots.yaml
File metadata and controls
42 lines (42 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
parameters:
- $ref: '#/components/parameters/repo_id'
post:
tags:
- Webhooks
summary: Get a list of the available snapshots of the repo.
description: >-
If a repo is connected through a webhook to GitHub/GitLab, CAP will keep an
archiove of the previous changes, so that the researcher can download a
specific commit/release.
operationId: repo_webhook_get_snapshots
responses:
'200':
description: OK
headers:
X-Rate-Limit:
$ref: '#/components/headers/RateLimit'
X-Expires-After:
$ref: '#/components/headers/ExpiresAfter'
content:
application/json:
schema:
type: array
items:
type: object
properties:
event:
type: string
tag:
type: string
branch:
type: string
url:
type: string
examples:
response:
value:
- event: push
tag: 0.1
branch: master
url: >-
https://codeload.github.com/cap/test-repo/legacy.tar.gz/c43red11