Difference between revisions of "Development:Prana Breath API/Collections:Tests"

From Olekdia Wiki
Line 36: Line 36:
 
==='''select'''===
 
==='''select'''===
 
| Select the specified health test. Command [[#start|start]] have despite its own effects have also select effect.
 
| Select the specified health test. Command [[#start|start]] have despite its own effects have also select effect.
* <code>pranabreath://tests/Genchi?cmd=select</code> - Select [[Harmony]] training.
+
* <code>pranabreath://tests/Genchi?cmd=select</code> - Select the [[Genchi test]].
 
* <code>pranabreath://tests/Genchi</code> - It is default command when ''item'' is specified, so it will have the same impact that above example.
 
* <code>pranabreath://tests/Genchi</code> - It is default command when ''item'' is specified, so it will have the same impact that above example.
 
|-
 
|-
 
|  
 
|  
 
==='''start'''===
 
==='''start'''===
| Select the specified health test. Command [[#start|start]] have despite its own effects have also select effect.
+
| Starts the selected health test. If there is no an entered test - nothing happens.
* <code>pranabreath://tests/Genchi?cmd=start</code> - Genchi health test will be selected and started. Also it will bring the app to foreground with [[Health_tab#Performing_health_tests|health tab]] selected
+
* <code>pranabreath://tests/Genchi?cmd=start</code> - [[Genchi test]] will be selected and started. Also it will bring the app to foreground with [[Health_tab#Performing_health_tests|health tab]] selected.
* <code>pranabreath://tests/-3?cmd=start</code> - It is default command when ''item'' is specified, so it will have the same impact that above example.
+
* <code>pranabreath://tests/-3?cmd=start</code> - Health test with id equals -3 will be selected and started. Health tests have negative ids in the app.
 
|}
 
|}
  
 
{{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 12:15, 1 February 2019

tests, or health_tests - collection that gives you access to all trainings in the app.

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.
  • pranabreath://tests?cmd=list
id name
-1 shtange
-2 genchi
-3 buteyko
-4 heart_rate
-5 blood_circulation
  • pranabreath://tests - 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.

select

Select the specified health test. Command start have despite its own effects have also select effect.
  • pranabreath://tests/Genchi?cmd=select - Select the Genchi test.
  • pranabreath://tests/Genchi - It is default command when item is specified, so it will have the same impact that above example.

start

Starts the selected health test. If there is no an entered test - nothing happens.
  • pranabreath://tests/Genchi?cmd=start - Genchi test will be selected and started. Also it will bring the app to foreground with health tab selected.
  • pranabreath://tests/-3?cmd=start - Health test with id equals -3 will be selected and started. Health tests have negative ids in the app.