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> - collection that gives you access to all trainings in the app.<br/> | <code>tests</code>, or <code>health_tests</code> - collection that gives you access to all trainings in the app.<br/> | ||
− | |||
− | |||
__TOC__ | __TOC__ | ||
Line 7: | Line 5: | ||
<div class="api-table long-code"> | <div class="api-table long-code"> | ||
== Prefix == | == Prefix == | ||
− | |||
* <code>pranabreath://</code> | * <code>pranabreath://</code> | ||
− | |||
* <code><nowiki>https://olekdia.com/pranabreath/</nowiki></code> | * <code><nowiki>https://olekdia.com/pranabreath/</nowiki></code> | ||
− | * <code><nowiki>https://pranabreath.page.link/?link=https://olekdia.com/pranabreath | + | * <code><nowiki>https://pranabreath.page.link/?link=https://olekdia.com/pranabreath/</nowiki></code> |
== Syntax == | == Syntax == | ||
− | * <code>pranabreath:// | + | * <code>pranabreath://tests/item?cmd=[Command]</code> - Case-insensitive. |
− | + | * <code><nowiki>https://olekdia.com/pranabreath/tests?cmd=[Command]&[Parameter]=[Value]</nowiki></code> - Case-sensitive. | |
− | |||
− | * <code><nowiki>https://olekdia.com/pranabreath/ | ||
== Commands == | == Commands == | ||
Line 27: | Line 21: | ||
| | | | ||
==='''list'''=== | ==='''list'''=== | ||
− | | Returns | + | | Returns test list. Currently it is only used in console for retrieving health test list. |
− | * <code>pranabreath:// | + | * <code>pranabreath://tests?cmd=list</code> |
<pre> | <pre> | ||
− | + | id name | |
− | + | -1 shtange | |
− | + | -2 genchi | |
− | + | -3 buteyko | |
− | + | -4 heart_rate | |
− | + | -5 blood_circulation | |
− | 5 | ||
− | |||
− | |||
− | |||
</pre> | </pre> | ||
− | * <code>pranabreath:// | + | * <code>pranabreath://tests</code> - It is a default command when only ''collection'' is defined without an ''item'', so if we omit the ''command'' it will return the same result. |
|- | |- | ||
| | | |
Revision as of 11:14, 1 February 2019
tests
, or health_tests
- collection that gives you access to all trainings 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]&[Parameter]=[Value]
- Case-sensitive.
Commands
Command | Description |
---|---|
list |
Returns test list. Currently it is only used in console for retrieving health test list.
id name -1 shtange -2 genchi -3 buteyko -4 heart_rate -5 blood_circulation
|
select |
Select the specified training. Commands import, create, start have despite its own effects have also select effect.
|