From OpenHome
(Difference between revisions)
(One intermediate revision not shown) | |||
Line 2: | Line 2: | ||
<code> | <code> | ||
- | Request ::= "in" (Category) (Filter)* "report" ("value" Tag With* | "items" Give+ Sort*) | + | Request ::= "in" (Category) (Filter)* "report" ("value" Tag With* | "items" Give+ Sort*)\n |
- | + | ||
Category ::= "audio" | "video" | "photo" | "text" | Category ::= "audio" | "video" | "photo" | "text" | ||
- | |||
Filter ::= Where | Search | Filter ::= Where | Search | ||
- | |||
Where ::= "where" Tag "=" Value | Where ::= "where" Tag "=" Value | ||
- | |||
Search ::= "search" Value | Search ::= "search" Value | ||
- | |||
Give ::= "give" Tag With* | Give ::= "give" Tag With* | ||
- | |||
With ::= "with" Tag | With ::= "with" Tag | ||
- | |||
Sort ::= "sort" Tag | Sort ::= "sort" Tag | ||
- | |||
Tag ::= Text-Without-Spaces | Tag ::= Text-Without-Spaces | ||
- | |||
Value ::= (Word | String) | Value ::= (Word | String) | ||
- | |||
Word ::= Text-Without-Spaces | Word ::= Text-Without-Spaces | ||
- | |||
String ::= '"' Text-Without-Double-Quotes '"' | "'" Text-Without-Quotes "'" | String ::= '"' Text-Without-Double-Quotes '"' | "'" Text-Without-Quotes "'" | ||
- | |||
</code> | </code> |
Latest revision as of 09:52, 29 August 2011
Here is the proposed request syntax:
Request ::= "in" (Category) (Filter)* "report" ("value" Tag With* | "items" Give+ Sort*)\n
Category ::= "audio" | "video" | "photo" | "text"
Filter ::= Where | Search
Where ::= "where" Tag "=" Value
Search ::= "search" Value
Give ::= "give" Tag With*
With ::= "with" Tag
Sort ::= "sort" Tag
Tag ::= Text-Without-Spaces
Value ::= (Word | String)
Word ::= Text-Without-Spaces
String ::= '"' Text-Without-Double-Quotes '"' | "'" Text-Without-Quotes "'"