-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdescription.yaml
More file actions
51 lines (50 loc) · 1.22 KB
/
description.yaml
File metadata and controls
51 lines (50 loc) · 1.22 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
43
44
45
46
47
48
49
50
swagger: "2.0"
info:
version: "0.0.1"
title: "Test WordPress REST API Endpoint"
host: "unknown"
basePath: "/wp-json/test/v1"
schemes:
- "https"
produces:
- "application/json"
paths:
/date:
get:
summary: "datetime"
description: "Retrieves an object representing current server datetime\n"
parameters: []
responses:
200:
description: "Successful response"
schema:
$ref: "#/definitions/inline_response_200"
403:
description: "Unauthorised request rejection"
schema:
$ref: "#/definitions/inline_response_err"
421:
description: "Too many requests rejection"
schema:
$ref: "#/definitions/inline_response_err"
definitions:
inline_response_200:
properties:
now:
type: "string"
format: "datetime"
description: "Curent server datetime value"
inline_response_err:
properties:
code:
type: string
description: "Error Type Code"
message:
type: string
description: "Error Message"
data:
type: object
properties:
status:
type: integer
description: "HTTP Error Code"