-
Notifications
You must be signed in to change notification settings - Fork 0
/
github.yaml
145 lines (145 loc) · 3.73 KB
/
github.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
openapi: 3.0.0
info:
version: '0.1.0'
title: GitHub API
paths:
'/search/repositories':
get:
operationId: searchRepositories
tags:
- Search
description: Searches for repositories matching the provided query.
parameters:
- in: query
name: q
description: Query for the repository search.
required: true
schema:
type: string
responses:
'200':
description: Returns a list of repositories matching the provided query.
content:
application/json:
schema:
$ref: '#/components/schemas/SearchRepositoriesResult'
'/repos/{full_name}/branches':
get:
operationId: getBranches
tags:
- Repository
description: Obtains all branches of a repository.
parameters:
- in: path
name: full_name
description: Full name (owner + repository) of a repository.
required: true
schema:
type: string
responses:
'200':
description: Returns a list of branches for a given repository.
content:
application/json:
schema:
$ref: '#/components/schemas/Branches'
'/repos/{full_name}/tags':
get:
operationId: getVersions
tags:
- Repository
description: Obtains all tags of a repository.
parameters:
- in: path
name: full_name
description: Full name (owner + repository) of a repository.
required: true
schema:
type: string
responses:
'200':
description: Returns a list of tags for a given repository.
content:
application/json:
schema:
$ref: '#/components/schemas/Tags'
components:
schemas:
Branches:
description: An array of branches.
type: array
items:
$ref: '#/components/schemas/Branch'
Branch:
description: A representation of the metadata of a branch in a GitHub repository.
type: object
properties:
name:
type: string
required:
- name
Owner:
description: A representation of the metadata of the owner of a GitHub repository.
type: object
properties:
login:
type: string
avatar_url:
type: string
required:
- login
- avatar_url
Repositories:
description: An array of repositories.
type: array
items:
$ref: '#/components/schemas/Repository'
Repository:
description: A representation of the metadata of a GitHub repository.
type: object
properties:
name:
type: string
full_name:
type: string
description:
type: string
private:
type: boolean
html_url:
type: string
stargazers_count:
type: integer
owner:
$ref: '#/components/schemas/Owner'
required:
- name
- full_name
- private
- html_url
- stargazers_count
- owner
SearchRepositoriesResult:
description: Describes the results of a repository search.
type: object
properties:
total_count:
type: integer
items:
$ref: '#/components/schemas/Repositories'
required:
- total_count
- items
Tags:
description: An array of tags.
type: array
items:
$ref: '#/components/schemas/Tag'
Tag:
description: A representation of the metadata of a tag in a GitHub repository.
type: object
properties:
name:
type: string
required:
- name