Skip to content

Commit a29c9f4

Browse files
committed
deploy: 7b7f353
1 parent 846e0ac commit a29c9f4

File tree

8 files changed

+189
-0
lines changed

8 files changed

+189
-0
lines changed
Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
openapi: 3.0.1
2+
info:
3+
title: TemperatureSensorFiware
4+
description: API specification for IoT platform including Temperature Sensor Fiwares
5+
version: '1.0'
6+
servers:
7+
- url: http://fiware.rwth-aachen.de/
8+
paths:
9+
/v2/entities:
10+
get:
11+
tags:
12+
- Temperature Sensor Fiware
13+
summary: Get Temperature Sensor Fiwares
14+
description: Retrieves available temperature sensor fiwares
15+
operationId: getTemperatureSensorFiwares
16+
parameters:
17+
- name: type
18+
in: query
19+
description: Entity type, to avoid ambiguity in case there are several entities
20+
with the same entity id.
21+
schema:
22+
type: string
23+
default: TemperatureSensorFiware
24+
- name: Fiware-Service
25+
in: header
26+
required: true
27+
schema:
28+
type: string
29+
default: semantic_iot
30+
- name: Fiware-ServicePath
31+
in: header
32+
required: true
33+
schema:
34+
type: string
35+
default: /
36+
responses:
37+
'200':
38+
description: Successful operation. Returns the temperature measurement.
39+
content:
40+
text/plain:
41+
schema:
42+
type: number
43+
format: float
44+
example: 22.5
45+
'404':
46+
description: Temperature Sensor Fiware not found.
47+
content: {}
48+
'500':
49+
description: Internal server error.
50+
content: {}
51+
post:
52+
tags:
53+
- Temperature Sensor Fiware
54+
summary: Create Temperature Sensor Fiware
55+
description: Creates a new Temperature Sensor Fiware entity in the system.
56+
operationId: createTemperatureSensorFiware
57+
requestBody:
58+
required: true
59+
content:
60+
application/json:
61+
schema:
62+
$ref: '#/components/schemas/TemperatureSensorFiware'
63+
example:
64+
id: temperaturesensorfiware001
65+
type: TemperatureSensorFiware
66+
temperature:
67+
value: 22.5
68+
parameters:
69+
- name: Fiware-Service
70+
in: header
71+
required: true
72+
schema:
73+
type: string
74+
default: semantic_iot
75+
- name: Fiware-ServicePath
76+
in: header
77+
required: true
78+
schema:
79+
type: string
80+
default: /
81+
responses:
82+
'201':
83+
description: Temperature Sensor Fiware successfully created.
84+
content:
85+
application/json:
86+
schema:
87+
$ref: '#/components/schemas/TemperatureSensorFiware'
88+
'400':
89+
description: Invalid input data.
90+
content: {}
91+
'500':
92+
description: Internal server error.
93+
content: {}
94+
components:
95+
schemas:
96+
TemperatureSensorFiware:
97+
additionalProperties: true
98+
description: Extends the TemperatureSensor class to include Fiware-specific
99+
properties.
100+
properties:
101+
id:
102+
description: 'Id of an entity in an NGSI context broker. Allowed characters
103+
are the ones in the plain ASCII set, except the following ones: control
104+
characters, whitespace, &, ?, / and #.'
105+
example: Bcn-Welt
106+
maxLength: 256
107+
minLength: 1
108+
title: Entity Id
109+
type: string
110+
type:
111+
default: TemperatureSensor
112+
title: Type
113+
type: string
114+
hasLocation:
115+
default: null
116+
title: Haslocation
117+
type: string
118+
temperature:
119+
anyOf:
120+
- type: number
121+
- type: 'null'
122+
default: 0
123+
title: Temperature
124+
required:
125+
- id
126+
title: TemperatureSensorFiware
127+
type: object
665 Bytes
Loading
628 Bytes
Loading
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<!-- HTML for static distribution bundle build -->
2+
<!DOCTYPE html>
3+
<html lang="en">
4+
<head>
5+
<meta charset="UTF-8">
6+
<title>Swagger UI</title>
7+
<link rel="stylesheet" type="text/css" href="./swagger-ui.css" >
8+
<link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32" />
9+
<link rel="icon" type="image/png" href="./favicon-16x16.png" sizes="16x16" />
10+
<style>
11+
html
12+
{
13+
box-sizing: border-box;
14+
overflow: -moz-scrollbars-vertical;
15+
overflow-y: scroll;
16+
}
17+
18+
*,
19+
*:before,
20+
*:after
21+
{
22+
box-sizing: inherit;
23+
}
24+
25+
body
26+
{
27+
margin:0;
28+
background: #fafafa;
29+
}
30+
</style>
31+
</head>
32+
33+
<body>
34+
<div id="swagger-ui"></div>
35+
36+
<script src="./swagger-ui-bundle.js" charset="UTF-8"> </script>
37+
<script src="./swagger-ui-standalone-preset.js" charset="UTF-8"> </script>
38+
<script>
39+
window.onload = function() {
40+
// Begin Swagger UI call region
41+
const ui = SwaggerUIBundle({
42+
configUrl: "swagger-config.json",
43+
dom_id: '#swagger-ui'
44+
})
45+
// End Swagger UI call region
46+
47+
window.ui = ui
48+
}
49+
</script>
50+
</body>
51+
</html>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"url":"TemperatureSensorFiware.yaml","deepLinking":true}

example_building_automation/api_docs/swagger-ui/TemperatureSensorFiware/swagger-ui-bundle.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example_building_automation/api_docs/swagger-ui/TemperatureSensorFiware/swagger-ui-standalone-preset.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example_building_automation/api_docs/swagger-ui/TemperatureSensorFiware/swagger-ui.css

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)