This repository has been archived by the owner on Oct 10, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds AlertType documentation and minor schema changes
- Loading branch information
Matthew Wilson
committed
Feb 26, 2019
1 parent
06e6ee1
commit d5fdccd
Showing
9 changed files
with
272 additions
and
71 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 |
---|---|---|
|
@@ -6,3 +6,4 @@ API | |
:caption: Contents: | ||
|
||
Alert <api/alert> | ||
AlertType <api/alert_type> |
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,5 +1,5 @@ | ||
Alerts | ||
****** | ||
Alert | ||
***** | ||
|
||
.. contents:: | ||
:backlinks: none | ||
|
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,58 @@ | ||
AlertType | ||
********* | ||
|
||
.. contents:: | ||
:backlinks: none | ||
|
||
Summary | ||
------- | ||
|
||
.. qrefflask:: project:create_app() | ||
:endpoints: api.create_alert_type, api.read_alert_type, api.read_alert_types, api.update_alert_type, api.delete_alert_type | ||
:order: path | ||
|
||
Create | ||
------ | ||
|
||
**JSON Schema** | ||
|
||
Required parameters are in **bold**. | ||
|
||
.. jsonschema:: ../../project/api/schemas/value_create.json | ||
|
||
| | ||
.. autoflask:: project:create_app() | ||
:endpoints: api.create_alert_type | ||
|
||
Read Single | ||
----------- | ||
|
||
.. autoflask:: project:create_app() | ||
:endpoints: api.read_alert_type | ||
|
||
Read Multiple | ||
------------- | ||
|
||
.. autoflask:: project:create_app() | ||
:endpoints: api.read_alert_types | ||
|
||
Update | ||
------ | ||
|
||
**JSON Schema** | ||
|
||
Required parameters are in **bold**. | ||
|
||
.. jsonschema:: ../../project/api/schemas/value_update.json | ||
|
||
| | ||
.. autoflask:: project:create_app() | ||
:endpoints: api.update_alert_type | ||
|
||
Delete | ||
------ | ||
|
||
.. autoflask:: project:create_app() | ||
:endpoints: api.delete_alert_type |
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
Oops, something went wrong.