-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
daa8ff9
commit 50f6bc4
Showing
6 changed files
with
173 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
node_modules | ||
test/temp | ||
test | ||
output | ||
__transpiled | ||
__transpiled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
asyncapi: '2.1.0' | ||
|
||
info: | ||
title: Streetlights API | ||
version: '1.0.0' | ||
description: | | ||
The Smartylighting Streetlights API allows you | ||
to remotely manage the city lights. | ||
license: | ||
name: Apache 2.0 | ||
url: 'https://www.apache.org/licenses/LICENSE-2.0' | ||
|
||
defaultContentType: application/json | ||
|
||
servers: | ||
local: | ||
url: localhost:5672 | ||
protocol: amqp | ||
security: | ||
- user-password: [] | ||
|
||
channels: | ||
light/measured: | ||
bindings: | ||
amqp: | ||
is: routingKey | ||
queue: | ||
name: light/measured | ||
durable: true | ||
exclusive: true | ||
autoDelete: false | ||
vhost: / | ||
bindingVersion: 0.2.0 | ||
publish: | ||
summary: Inform about environmental lighting conditions for a particular streetlight. | ||
operationId: onLightMeasured | ||
message: | ||
name: LightMeasured | ||
payload: | ||
$id: LightMeasured | ||
additionalProperties: false | ||
type: object | ||
properties: | ||
id: | ||
type: integer | ||
minimum: 0 | ||
description: Id of the streetlight. | ||
lumens: | ||
type: integer | ||
minimum: 0 | ||
description: Light intensity measured in lumens. | ||
sentAt: | ||
type: string | ||
format: date-time | ||
description: Date and time when the message was sent. | ||
|
||
components: | ||
securitySchemes: | ||
user-password: | ||
type: userPassword |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
asyncapi: '2.1.0' | ||
|
||
info: | ||
title: Streetlights API | ||
version: '1.0.0' | ||
description: | | ||
The Smartylighting Streetlights API allows you | ||
to remotely manage the city lights. | ||
license: | ||
name: Apache 2.0 | ||
url: 'https://www.apache.org/licenses/LICENSE-2.0' | ||
|
||
defaultContentType: application/json | ||
|
||
servers: | ||
local: | ||
url: localhost:5672 | ||
protocol: amqp | ||
security: | ||
- user-password: [] | ||
|
||
channels: | ||
light/measured: | ||
bindings: | ||
amqp: | ||
is: routingKey | ||
queue: | ||
name: light/measured | ||
durable: true | ||
exclusive: true | ||
autoDelete: false | ||
vhost: / | ||
bindingVersion: 0.2.0 | ||
|
||
components: | ||
securitySchemes: | ||
user-password: | ||
type: userPassword |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
asyncapi: '2.1.0' | ||
|
||
info: | ||
title: Streetlights API | ||
version: '1.0.0' | ||
description: | | ||
The Smartylighting Streetlights API allows you | ||
to remotely manage the city lights. | ||
license: | ||
name: Apache 2.0 | ||
url: 'https://www.apache.org/licenses/LICENSE-2.0' | ||
|
||
defaultContentType: application/json | ||
|
||
servers: | ||
local: | ||
url: localhost:5672 | ||
protocol: amqp | ||
security: | ||
- user-password: [] | ||
|
||
channels: | ||
light/measured: | ||
publish: | ||
summary: Inform about environmental lighting conditions for a particular streetlight. | ||
operationId: onLightMeasured | ||
message: | ||
name: LightMeasured | ||
payload: | ||
$id: LightMeasured | ||
additionalProperties: false | ||
type: object | ||
properties: | ||
id: | ||
type: integer | ||
minimum: 0 | ||
description: Id of the streetlight. | ||
lumens: | ||
type: integer | ||
minimum: 0 | ||
description: Light intensity measured in lumens. | ||
sentAt: | ||
type: string | ||
format: date-time | ||
description: Date and time when the message was sent. | ||
|
||
components: | ||
securitySchemes: | ||
user-password: | ||
type: userPassword |