forked from cnizzardini/cakephp-swagger-bake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
swagger.yml
78 lines (76 loc) · 1.88 KB
/
swagger.yml
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
openapi: "3.0.0"
info:
version: 1.0.0
title: SwaggerBake - A MixerAPI Project
description: |
For documentation please review the project [README](https://github.com/cnizzardini/cakephp-swagger-bake) and for
other great API related packages checkout [MixerAPI](http://mixerapi.com). To change this text edit your
`swagger.yaml` file.
license:
name: YOUR-LICENSE-HERE
servers:
- url: YOUR-SERVER-HERE
paths:
definitions:
components:
schemas:
Exception:
type: object
properties:
code:
type: integer
example: 500
url:
type: string
example: /url/path
message:
type: string
example: Internal Error
xml:
name: response
OperationResult:
type: object
properties:
result:
type: boolean
xml:
name: response
x-swagger-bake:
components:
schemas:
Generic-Collection:
type: object
x-data-element: data
properties:
collection:
type: object
properties:
url:
type: string
format: url
example: /index
count:
type: integer
example: 20
total:
type: integer
example: 200
pages:
type: integer
example: 10
next:
type: string
format: url
example: /index?page=:number
prev:
type: string
format: url
example: /index?page=:number
first:
type: string
format: url
example: /index
last:
type: string
format: url
example: /index?page=:number