-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswagger.yaml
47 lines (47 loc) · 1.23 KB
/
swagger.yaml
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
43
44
45
46
47
swagger: "2.0"
info:
title: til-github-app API
description: Github Application API for managing til-like blog repositories.
version: 1.0.0
host: localhost:8000
basePath: /
schemes:
- http
paths:
/api:
post:
summary: Installs application in a new Github repository
parameters:
- in: header
name: x-github-event
type: string
default: installation_repositories
- in: body
name: body
schema:
type: object
properties:
installation:
type: object
properties:
id:
type: integer
repository_selection:
type: string
repositories_added:
type: array
items:
type: object
properties:
full_name:
type: string
example:
full_name: carmon/testing
example:
installation:
id: 10
repository_selection: selected
repositories_added: [ full_name: carmon/testing ]
responses:
200:
description: OK