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

From Olekdia Wiki
(Created page with "<code>tests</code>, or <code>health_tests</code> - collection that gives you access to all trainings in the app.<br/> __TOC__ __TOC__ <div class="api-table long-code"> == P...")
 
Line 51: Line 51:
 
|  
 
|  
 
|}
 
|}
 +
 +
{{DISPLAYTITLE:<span style="position:absolute; top:-9999px;">Development:</span>Prana Breath API/Collections:Tests}}

Revision as of 11:12, 1 February 2019

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


Prefix

It could be used with next prefixes:

  • pranabreath://

With next prefixes, only trainings collection could be used. Also both prefix and collection are case-sensitive:

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

Syntax

  • pranabreath://trainings/item?cmd=[Command] - Case-insensitive.
  • pranabreath://Trainings/item?[Parameter]=[Value]
  • pranabreath://trainings/item?cmd=[Command]&[Parameter1]=[Value1]&[Parameter2]=[Value2]
  • https://olekdia.com/pranabreath/trainings?cmd=[Command]&[Parameter]=[Value] - Case-sensitive.

Commands

Command Description

list

Returns training list. Currently it is only used in console for retrieving training list.
  • pranabreath://trainings?cmd=list
pos id public_id name
0   1  1         Clear mind
1   2  2         Relax
2   3  3         Calming
3   4  4         Power
4   5  5         Harmony
5   6  6         Anti-stress
6   7  7         Anti-appetite
7   8  8         Cigarette replace
8   9  11        Bhastrika
  • pranabreath://trainings - 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 training. Commands import, create, start have despite its own effects have also select effect.
  • pranabreath://trainings/Harmony?cmd=select - Select Harmony training.
  • pranabreath://trainings/Harmony - It is default command when item is specified, so it will have the same impact that above example.