aboutsummaryrefslogtreecommitdiff
path: root/docs/swagger.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'docs/swagger.yaml')
-rw-r--r--docs/swagger.yaml93
1 files changed, 79 insertions, 14 deletions
diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index f50fecb..0dd514d 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -86,27 +86,80 @@ definitions:
86 summary: 86 summary:
87 $ref: '#/definitions/models.MapSummary' 87 $ref: '#/definitions/models.MapSummary'
88 type: object 88 type: object
89 controllers.ProfileRankings:
90 properties:
91 cooperative:
92 $ref: '#/definitions/controllers.ProfileRankingsDetails'
93 overall:
94 $ref: '#/definitions/controllers.ProfileRankingsDetails'
95 singleplayer:
96 $ref: '#/definitions/controllers.ProfileRankingsDetails'
97 type: object
98 controllers.ProfileRankingsDetails:
99 properties:
100 completion_count:
101 type: integer
102 completion_total:
103 type: integer
104 rank:
105 type: integer
106 type: object
107 controllers.ProfileRecords:
108 properties:
109 portal2_cooperative:
110 items:
111 $ref: '#/definitions/controllers.ProfileRecordsDetails'
112 type: array
113 portal2_singleplayer:
114 items:
115 $ref: '#/definitions/controllers.ProfileRecordsDetails'
116 type: array
117 type: object
118 controllers.ProfileRecordsDetails:
119 properties:
120 map_id:
121 type: integer
122 map_name:
123 type: string
124 scores:
125 items:
126 $ref: '#/definitions/controllers.ProfileScores'
127 type: array
128 type: object
89 controllers.ProfileResponse: 129 controllers.ProfileResponse:
90 properties: 130 properties:
91 avatar_link: 131 avatar_link:
92 type: string 132 type: string
93 country_code: 133 country_code:
94 type: string 134 type: string
135 links:
136 $ref: '#/definitions/models.Links'
95 profile: 137 profile:
96 type: boolean 138 type: boolean
97 scores_mp: 139 rankings:
98 items: 140 $ref: '#/definitions/controllers.ProfileRankings'
99 $ref: '#/definitions/controllers.ScoreResponse' 141 records:
100 type: array 142 $ref: '#/definitions/controllers.ProfileRecords'
101 scores_sp:
102 items:
103 $ref: '#/definitions/controllers.ScoreResponse'
104 type: array
105 steam_id: 143 steam_id:
106 type: string 144 type: string
145 titles:
146 items:
147 $ref: '#/definitions/models.Title'
148 type: array
107 user_name: 149 user_name:
108 type: string 150 type: string
109 type: object 151 type: object
152 controllers.ProfileScores:
153 properties:
154 date:
155 type: string
156 demo_id:
157 type: string
158 score_count:
159 type: integer
160 score_time:
161 type: integer
162 type: object
110 controllers.RankingsResponse: 163 controllers.RankingsResponse:
111 properties: 164 properties:
112 rankings_mp: 165 rankings_mp:
@@ -125,12 +178,6 @@ definitions:
125 score_time: 178 score_time:
126 type: integer 179 type: integer
127 type: object 180 type: object
128 controllers.ScoreResponse:
129 properties:
130 map_id:
131 type: integer
132 records: {}
133 type: object
134 controllers.SearchResponse: 181 controllers.SearchResponse:
135 properties: 182 properties:
136 maps: 183 maps:
@@ -165,6 +212,17 @@ definitions:
165 name: 212 name:
166 type: string 213 type: string
167 type: object 214 type: object
215 models.Links:
216 properties:
217 p2sr:
218 type: string
219 stream:
220 type: string
221 twitch:
222 type: string
223 youtube:
224 type: string
225 type: object
168 models.Map: 226 models.Map:
169 properties: 227 properties:
170 chapter_name: 228 chapter_name:
@@ -230,6 +288,13 @@ definitions:
230 success: 288 success:
231 type: boolean 289 type: boolean
232 type: object 290 type: object
291 models.Title:
292 properties:
293 color:
294 type: string
295 name:
296 type: string
297 type: object
233 models.UserRanking: 298 models.UserRanking:
234 properties: 299 properties:
235 total_score: 300 total_score: