Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added stdicon.com mimetype webservice
- Loading branch information
Showing
3 changed files
with
148 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,23 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd"> | |||
<meta> | |||
<author>Paul Tarjan</author> | |||
<description>Mimetype translations</description> | |||
<sampleQuery>SELECT * FROM {table} WHERE mimetype = "application/pdf"</sampleQuery> | |||
<documentationURL>http://stdicon.com/</documentationURL> | |||
</meta> | |||
<bindings> | |||
<select itemPath="" produces="XML"> | |||
<urls> | |||
<url>http://stdicon.com/mimetype/{mimetype}</url> | |||
</urls> | |||
<inputs> | |||
<key id="mimetype" type="xs:string" paramType="path" required="true" /> | |||
</inputs> | |||
<execute><![CDATA[ | |||
response.object = request.get().response; | |||
]]> | |||
</execute> | |||
</select> | |||
</bindings> | |||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,89 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd"> | |||
<meta> | |||
<author>Paul Tarjan</author> | |||
<description>Mimetype translations</description> | |||
<sampleQuery>SELECT * FROM {table} WHERE mimetype = "application/pdf"</sampleQuery> | |||
<sampleQuery>SELECT * FROM {table} WHERE file = "monkey.mp3"</sampleQuery> | |||
<sampleQuery>SELECT * FROM {table} WHERE extension = "txt"</sampleQuery> | |||
<sampleQuery>SELECT * FROM {table} WHERE extension = "html" AND iconset="apache"</sampleQuery> | |||
<documentationURL>http://stdicon.com/</documentationURL> | |||
</meta> | |||
<bindings> | |||
<select itemPath="" produces="XML"> | |||
<urls> | |||
<url>http://stdicon.com/{iconset}/{mimetype}</url> | |||
</urls> | |||
<inputs> | |||
<key id="mimetype" type="xs:string" paramType="path" required="true" /> | |||
<key id="iconset" type="xs:string" paramType="path" required="true" /> | |||
</inputs> | |||
<execute><![CDATA[ | |||
response.object = request.url.toString(); | |||
]]> | |||
</execute> | |||
</select> | |||
<select itemPath="" produces="XML"> | |||
<urls> | |||
<url>http://stdicon.com/{iconset}/{file}</url> | |||
</urls> | |||
<inputs> | |||
<key id="file" type="xs:string" paramType="path" required="true" /> | |||
<key id="iconset" type="xs:string" paramType="path" required="true" /> | |||
</inputs> | |||
<execute><![CDATA[ | |||
response.object = request.url.toString(); | |||
]]> | |||
</execute> | |||
</select> | |||
<select itemPath="" produces="XML"> | |||
<urls> | |||
<url>http://stdicon.com/{iconset}/{extension}</url> | |||
</urls> | |||
<inputs> | |||
<key id="extension" type="xs:string" paramType="path" required="true" /> | |||
<key id="iconset" type="xs:string" paramType="path" required="true" /> | |||
</inputs> | |||
<execute><![CDATA[ | |||
response.object = request.url.toString(); | |||
]]> | |||
</execute> | |||
</select> | |||
<select itemPath="" produces="XML"> | |||
<urls> | |||
<url>http://stdicon.com/{mimetype}</url> | |||
</urls> | |||
<inputs> | |||
<key id="mimetype" type="xs:string" paramType="path" required="true" /> | |||
</inputs> | |||
<execute><![CDATA[ | |||
response.object = request.url.toString(); | |||
]]> | |||
</execute> | |||
</select> | |||
<select itemPath="" produces="XML"> | |||
<urls> | |||
<url>http://stdicon.com/{file}</url> | |||
</urls> | |||
<inputs> | |||
<key id="file" type="xs:string" paramType="path" required="true" /> | |||
</inputs> | |||
<execute><![CDATA[ | |||
response.object = request.url.toString(); | |||
]]> | |||
</execute> | |||
</select> | |||
<select itemPath="" produces="XML"> | |||
<urls> | |||
<url>http://stdicon.com/{extension}</url> | |||
</urls> | |||
<inputs> | |||
<key id="extension" type="xs:string" paramType="path" required="true" /> | |||
</inputs> | |||
<execute><![CDATA[ | |||
response.object = request.url.toString(); | |||
]]> | |||
</execute> | |||
</select> | |||
</bindings> | |||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,36 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd"> | |||
<meta> | |||
<author>Paul Tarjan</author> | |||
<description>Mimetype translations</description> | |||
<sampleQuery>SELECT * FROM {table} WHERE extension = "mp3"</sampleQuery> | |||
<sampleQuery>SELECT * FROM {table} WHERE file = "file.mp3"</sampleQuery> | |||
<documentationURL>http://stdicon.com/</documentationURL> | |||
</meta> | |||
<bindings> | |||
<select itemPath="" produces="XML"> | |||
<urls> | |||
<url>http://stdicon.com/extension/{extension}</url> | |||
</urls> | |||
<inputs> | |||
<key id="extension" type="xs:string" paramType="path" required="true" /> | |||
</inputs> | |||
<execute><![CDATA[ | |||
response.object = request.get().response; | |||
]]> | |||
</execute> | |||
</select> | |||
<select itemPath="" produces="XML"> | |||
<urls> | |||
<url>http://stdicon.com/extension/{file}</url> | |||
</urls> | |||
<inputs> | |||
<key id="file" type="xs:string" paramType="path" required="true" /> | |||
</inputs> | |||
<execute><![CDATA[ | |||
response.object = request.get().response; | |||
]]> | |||
</execute> | |||
</select> | |||
</bindings> | |||
</table> |