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

From Olekdia Wiki
 
Line 6: Line 6:
 
== Prefix ==
 
== Prefix ==
 
* <code>pranabreath://</code>
 
* <code>pranabreath://</code>
* <code><nowiki>https://olekdia.com/pranabreath/</nowiki></code>
+
* <code><nowiki>https://pranabreath.olekdia.com/</nowiki></code>
* <code><nowiki>https://pranabreath.page.link/?link=https://olekdia.com/pranabreath/</nowiki></code>
+
* <code><nowiki>https://pranabreath.page.link/?link=https://pranabreath.olekdia.com/</nowiki></code>
  
 
== Syntax ==
 
== Syntax ==
 
* <code>pranabreath://tests/item?cmd=[Command]</code> - Case-insensitive.  
 
* <code>pranabreath://tests/item?cmd=[Command]</code> - Case-insensitive.  
* <code><nowiki>https://olekdia.com/pranabreath/tests?cmd=[Command]</nowiki></code> - Case-sensitive.
+
* <code><nowiki>https://pranabreath.olekdia.com/tests?cmd=[Command]</nowiki></code> - Case-sensitive.
  
 
== Commands ==
 
== Commands ==

Latest revision as of 16:06, 1 April 2019

tests, or health_tests - Collection that gives control over all health tests in the app.

Prefix

  • pranabreath://
  • https://pranabreath.olekdia.com/
  • https://pranabreath.page.link/?link=https://pranabreath.olekdia.com/

Syntax

  • pranabreath://tests/item?cmd=[Command] - Case-insensitive.
  • https://pranabreath.olekdia.com/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.
  • 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 if collection is defined without an item, so if we omit the command it will return the same result.

select

Selects the specified health test. Other than its own effect, command start does select as well.
  • pranabreath://tests/Genchi?cmd=select - Select the Genchi test.
  • pranabreath://tests/Genchi - Select the Genchi test. Select is a default command if ?cmd= is omitted.

start

Starts the selected health test. If there is no such a test - nothing happens.
  • pranabreath://tests/Genchi?cmd=start - Select and start Genchi test. Also it will bring the app to foreground with health tab selected.
  • pranabreath://tests/-3?cmd=start - Select and start the health test with id equals -3.