Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Proposal for a way to handle multiple concurrent activations (#15)
* Proposal for a way to handle multiple concurrent activations with supporting docs
- Loading branch information
1 parent
42104fd
commit c5bde50
Showing
17 changed files
with
342 additions
and
162 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
43 changes: 43 additions & 0 deletions
43
APIs/schemas/map-activations-activationid-get-response-schema.json
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,43 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"title": "Single activation endpoint", | ||
"description": "A single pending activation", | ||
"type": "object", | ||
"additionalPropertes": false, | ||
"properties": { | ||
"activation":{ | ||
"$ref": "activation-response-schema.json" | ||
}, | ||
"action:":{ | ||
"^[a-z A-Z 0-9 \\- _]+$": { | ||
"description": "Names of outputs", | ||
"patternProperties":{ | ||
"^(0|([1-9][0-9]*))$":{ | ||
"description": "Index of channels", | ||
"required":[ | ||
"input", | ||
"channel_index" | ||
], | ||
"properties": { | ||
"input":{ | ||
"description": "Name of the input the channel to be connected belongs to. null for disconnected.", | ||
"pattern": "^[a-z A-Z 0-9 \\- _]+$", | ||
"type": [ | ||
"string", | ||
"null" | ||
] | ||
}, | ||
"channel_index":{ | ||
"description": "Index of channel to be connected.", | ||
"type": [ | ||
"integer", | ||
"null" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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,48 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"title": "Activations endpoint", | ||
"description": "List of all currently pending activations", | ||
"type": "object", | ||
"patternProperties": { | ||
"^[0-9]+$": { | ||
"type": "object", | ||
"additionalPropertes": false, | ||
"properties": { | ||
"activation":{ | ||
"$ref": "activation-response-schema.json" | ||
}, | ||
"action:":{ | ||
"^[a-z A-Z 0-9 \\- _]+$": { | ||
"description": "Names of outputs", | ||
"patternProperties":{ | ||
"^(0|([1-9][0-9]*))$":{ | ||
"description": "Index of channels", | ||
"required":[ | ||
"input", | ||
"channel_index" | ||
], | ||
"properties": { | ||
"input":{ | ||
"description": "Name of the input the channel to be connected belongs to. null for disconnected.", | ||
"pattern": "^[a-z A-Z 0-9 \\- _]+$", | ||
"type": [ | ||
"string", | ||
"null" | ||
] | ||
}, | ||
"channel_index":{ | ||
"description": "Index of channel to be connected.", | ||
"type": [ | ||
"integer", | ||
"null" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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,49 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"title": "Activations endpoint", | ||
"description": "Activation response", | ||
"type": "object", | ||
"maxProperties": 1, | ||
"patternProperties": { | ||
"^[0-9]+$": { | ||
"type": "object", | ||
"additionalPropertes": false, | ||
"properties": { | ||
"activation":{ | ||
"$ref": "activation-response-schema.json" | ||
}, | ||
"action:":{ | ||
"^[a-z A-Z 0-9 \\- _]+$": { | ||
"description": "Names of outputs", | ||
"patternProperties":{ | ||
"^(0|([1-9][0-9]*))$":{ | ||
"description": "Index of channels", | ||
"required":[ | ||
"input", | ||
"channel_index" | ||
], | ||
"properties": { | ||
"input":{ | ||
"description": "Name of the input the channel to be connected belongs to. null for disconnected.", | ||
"pattern": "^[a-z A-Z 0-9 \\- _]+$", | ||
"type": [ | ||
"string", | ||
"null" | ||
] | ||
}, | ||
"channel_index":{ | ||
"description": "Index of channel to be connected.", | ||
"type": [ | ||
"integer", | ||
"null" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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,43 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"title": "Activations endpoint", | ||
"description": "Add a new activation to the activations list", | ||
"type": "object", | ||
"additionalPropertes": false, | ||
"properties": { | ||
"activation":{ | ||
"$ref": "activation-schema.json" | ||
}, | ||
"action:":{ | ||
"^[a-z A-Z 0-9 \\- _]+$": { | ||
"description": "Names of outputs", | ||
"patternProperties":{ | ||
"^(0|([1-9][0-9]*))$":{ | ||
"description": "Index of channels", | ||
"required":[ | ||
"input", | ||
"channel_index" | ||
], | ||
"properties": { | ||
"input":{ | ||
"description": "Name of the input the channel to be connected belongs to. null for disconnected.", | ||
"pattern": "^[a-z A-Z 0-9 \\- _]+$", | ||
"type": [ | ||
"string", | ||
"null" | ||
] | ||
}, | ||
"channel_index":{ | ||
"description": "Index of channel to be connected.", | ||
"type": [ | ||
"integer", | ||
"null" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.