Difference between revisions of "Development:Prana Breath API/Collections:Tests"
From Olekdia Wiki
Line 1: | Line 1: | ||
− | <code>tests</code>, or <code>health_tests</code> - | + | <code>tests</code>, or <code>health_tests</code> - Collection that gives the control over all health tests in the app.<br/> |
__TOC__ | __TOC__ | ||
Line 21: | Line 21: | ||
| | | | ||
==='''list'''=== | ==='''list'''=== | ||
− | | Returns test list. Currently it is only used in console for retrieving health test list. | + | | Returns test list. Currently it is only used in console for retrieving health test list. All health tests have negative ids in the app. |
* <code>pranabreath://tests?cmd=list</code> | * <code>pranabreath://tests?cmd=list</code> | ||
<pre> | <pre> | ||
Line 31: | Line 31: | ||
-5 blood_circulation | -5 blood_circulation | ||
</pre> | </pre> | ||
− | * <code>pranabreath://tests</code> - It is a default command | + | * <code>pranabreath://tests</code> - It is a default command if ''collection'' is defined without an ''item'', so if we omit the ''command'' it will return the same result. |
|- | |- | ||
| | | | ||
==='''select'''=== | ==='''select'''=== | ||
− | | | + | | Selects the specified health test. Other than its own effect, command [[#start|start]] does '''select''' as well. |
* <code>pranabreath://tests/Genchi?cmd=select</code> - Select the [[Genchi test]]. | * <code>pranabreath://tests/Genchi?cmd=select</code> - Select the [[Genchi test]]. | ||
− | * <code>pranabreath://tests/Genchi</code> - | + | * <code>pranabreath://tests/Genchi</code> - Select the [[Genchi test]]. '''Select''' is a default command if ?cmd= is omitted. |
|- | |- | ||
| | | | ||
==='''start'''=== | ==='''start'''=== | ||
− | | Starts the selected health test. If there is no | + | | Starts the selected health test. If there is no such a test - nothing happens. |
− | * <code>pranabreath://tests/Genchi?cmd=start</code> - [[Genchi test]] | + | * <code>pranabreath://tests/Genchi?cmd=start</code> - Select and start [[Genchi test]]. Also it will bring the app to foreground with [[Health_tab#Performing_health_tests|health tab]] selected. |
− | * <code>pranabreath://tests/-3?cmd=start</code> - | + | * <code>pranabreath://tests/-3?cmd=start</code> - Select and start the health test with id equals -3. |
|} | |} | ||
{{DISPLAYTITLE:<span style="position:absolute; top:-9999px;">Development:</span>Prana Breath API/Collections:Tests}} | {{DISPLAYTITLE:<span style="position:absolute; top:-9999px;">Development:</span>Prana Breath API/Collections:Tests}} | ||
[[Category:Dev{{#translation:}}|^Prana Breath^]] | [[Category:Dev{{#translation:}}|^Prana Breath^]] |
Revision as of 14:14, 1 February 2019
tests
, or health_tests
- Collection that gives the control over all health tests in the app.
Contents
Prefix
pranabreath://
https://olekdia.com/pranabreath/
https://pranabreath.page.link/?link=https://olekdia.com/pranabreath/
Syntax
pranabreath://tests/item?cmd=[Command]
- Case-insensitive.https://olekdia.com/pranabreath/tests?cmd=[Command]
- Case-sensitive.
Commands
Command | Description |
---|---|
list |
Returns test list. Currently it is only used in console for retrieving health test list. All health tests have negative ids in the app.
id name -1 shtange -2 genchi -3 buteyko -4 heart_rate -5 blood_circulation
|
select |
Selects the specified health test. Other than its own effect, command start does select as well.
|
start |
Starts the selected health test. If there is no such a test - nothing happens.
|