...
Code Block |
---|
200 OK <pre> <feed xmlns="http://www.w3.org/2005/Atom" xml:base="http://localhost:8082" xml:lang="en"> <title>Form Types</title> <updated>2009-05-12T12:20:19.986-04:00</updated> <link rel="self" type="application/atom+xml" href="/frevvo/web/api/formtypes"/> <entry xmlns:fd="http://schemas.frevvo.com/fdata/2008" xml:lang="en"> <id>_0vNZwD8KEd6yc_ZDP21S1Q!_nv8uAT8KEd6yc_ZDP21S1Q!johndoe</id> <title type="text">Expense Report</title> <summary type="text">Edit the form to change this description.</summary> <updated>2009-05-12T12:20:19.986-04:00</updated> <link type="application/atom+xml" href="/frevvo/web/api/formtype/_0vNZwD8KEd6yc_ZDP21S1Q!_nv8uAT8KEd6yc_ZDP21S1Q!johndoe"/> <link rel="self" type="application/atom+xml" href="/frevvo/web/api/formtype/_0vNZwD8KEd6yc_ZDP21S1Q!_nv8uAT8KEd6yc_ZDP21S1Q!johndoe"/> <link rel="edit" type="application/atom+xml" href="/frevvo/web/api/formtype/_0vNZwD8KEd6yc_ZDP21S1Q!_nv8uAT8KEd6yc_ZDP21S1Q!johndoe"/> <link rel="formtype" type="text/html" href="/frevvo/web/user/johndoe/app/_nv8uAT8KEd6yc_ZDP21S1Q/formtype/_0vNZwD8KEd6yc_ZDP21S1Q? embed=true&_method=post&apikey=1VeRclWJogwX2lUlGuLo9kglWN%252BUdNE9c9UGI6z7sJuRnYBOrCjoAdZ8kBVHKkZC9j5Ss%252BQYVwv%252BsIxsxTIAqg%253D%253D" title="Link to the FormType Expense Report HTML"/> <link rel="formtype" type="text/javascript" href="/frevvo/web/user/johndoe/app/_nv8uAT8KEd6yc_ZDP21S1Q/formtype/_0vNZwD8KEd6yc_ZDP21S1Q/embed? apikey=1VeRclWJogwX2lUlGuLo9kglWN%252BUdNE9c9UGI6z7sJuRnYBOrCjoAdZ8kBVHKkZC9j5Ss%252BQYVwv%252BsIxsxTIAqg%253D%253D" title="Link to Javascript code that can be used to embed this FormType in an HTML page"/> <link rel="controltypes" type="application/atom+xml" href="/frevvo/web/api/controltypes?ownerId=_0vNZwD8KEd6yc_ZDP21S1Q!_nv8uAT8KEd6yc_ZDP21S1Q!johndoe" title="Expense Report's Control Types"/> <link rel="formtype-editor" type="text/html" href="/frevvo/web/user/johndoe/app/_nv8uAT8KEd6yc_ZDP21S1Q/formtype/_0vNZwD8KEd6yc_ZDP21S1Q? edit=true&embed=true&_method=post&apikey=1VeRclWJogwX2lUlGuLo9kglWN%252BUdNE9c9UGI6z7sJuRnYBOrCjoAdZ8kBVHKkZC9j5Ss%252BQYVwv%252BsIxsxTIAqg%253D%253D" title="Link to the FormType Designer Expense Report HTML"/> <link rel="formtype-editor" type="text/javascript" href="/frevvo/web/user/johndoe/app/_nv8uAT8KEd6yc_ZDP21S1Q/formtype/_0vNZwD8KEd6yc_ZDP21S1Q/embed? edit=true&apikey=1VeRclWJogwX2lUlGuLo9kglWN%252BUdNE9c9UGI6z7sJuRnYBOrCjoAdZ8kBVHKkZC9j5Ss%252BQYVwv%252BsIxsxTIAqg%253D%253D" title="Link to Javascript code that can be used to embed this FormType in an HTML page"/> <link rel="submissions" type="text/html" href="/frevvo/web/user/johndoe/app/_nv8uAT8KEd6yc_ZDP21S1Q/formtype/_0vNZwD8KEd6yc_ZDP21S1Q/submission? embed=true&apikey=1VeRclWJogwX2lUlGuLo9kglWN%252BUdNE9c9UGI6z7sJuRnYBOrCjoAdZ8kBVHKkZC9j5Ss%252BQYVwv%252BsIxsxTIAqg%253D%253D" title="Use FormType Expense Report"/> <link rel="submissions" type="text/javascript" href="/frevvo/web/user/johndoe/app/_nv8uAT8KEd6yc_ZDP21S1Q/formtype/_0vNZwD8KEd6yc_ZDP21S1Q/embedsubs? apikey=1VeRclWJogwX2lUlGuLo9kglWN%252BUdNE9c9UGI6z7sJuRnYBOrCjoAdZ8kBVHKkZC9j5Ss%252BQYVwv%252BsIxsxTIAqg%253D%253D" title="Link to Javascript code that can be used to embed this FormType's submissions in an HTML page"/> <link rel="schema" type="application/xml" href="/frevvo/web/user/johndoe/app/_nv8uAT8KEd6yc_ZDP21S1Q/formtype/_0vNZwD8KEd6yc_ZDP21S1Q/schema"/> <fd:owner id="_nv8uAT8KEd6yc_ZDP21S1Q!johndoe"/> <fd:visibility value="public"/> <content type="application/zip" src="/ src="/frevvo/web/user/johndoe/app/_nv8uAT8KEd6yc_ZDP21S1Q/formtype/_0vNZwD8KEd6yc_ZDP21S1Q/file/content.zip"/> </entry> </feed> |
</pre>
The feed returned above shows one form entry '''Expense Report''' that that is owned by the current user.=====
Getting a FormTypeEntry
...
It is also possible to directly get a specific formtype entry as long as you know the formtype id. In order to do that send the following request to the server:<pre>
Code Block |
---|
GET /frevvo/web/tn/{tenantId}/api/formtype/{id} |
</pre>And the server will respond with:<pre>
Code Block |
---|
200 OK |
...
<entry xmlns="http://www.w3.org/2005/Atom" |
...
xmlns:fd="http://schemas.frevvo.com/fdata/2008" |
...
xml:lang="en" |
...
xml:base="http://localhost:8082"> |
...
<id>_0vNZwD8KEd6yc_ZDP21S1Q!_nv8uAT8KEd6yc_ZDP21S1Q!johndoe</id> |
...
<title type="text">Expense Report</title> |
...
<summary type="text">Edit the form to change this description.</summary> |
...
<updated>2009-05-12T12:33:49.188-04:00</updated> |
...
<link type="application/atom+xml" |
...
href="/frevvo/web/api/formtype/_0vNZwD8KEd6yc_ZDP21S1Q!_nv8uAT8KEd6yc_ZDP21S1Q!johndoe"/> |
...
<link rel="self" type="application/atom+xml" |
...
href="/frevvo/web/api/formtype/_0vNZwD8KEd6yc_ZDP21S1Q!_nv8uAT8KEd6yc_ZDP21S1Q!johndoe"/> |
...
<link rel="edit" type="application/atom+xml" |
...
href="/frevvo/web/api/formtype/_0vNZwD8KEd6yc_ZDP21S1Q!_nv8uAT8KEd6yc_ZDP21S1Q!johndoe"/> |
...
<link rel="formtype" type="text/html" |
...
href="/frevvo/web/user/johndoe/app/_nv8uAT8KEd6yc_ZDP21S1Q/formtype/_0vNZwD8KEd6yc_ZDP21S1Q? embed=true&_method=post&apikey=1VeRclWJogwX2lUlGuLo9kglWN%252BUdNE9c9UGI6z7sJuRnYBOrCjoAdZ8kBVHKkZC9j5Ss%252BQYVwv%252BsIxsxTIAqg%253D%253D" |
...
title="Link to the FormType Expense Report HTML"/> |
...
<link rel="formtype" type="text/javascript" |
...
href="/frevvo/web/user/johndoe/app/_nv8uAT8KEd6yc_ZDP21S1Q/formtype/_0vNZwD8KEd6yc_ZDP21S1Q/embed? apikey=1VeRclWJogwX2lUlGuLo9kglWN%252BUdNE9c9UGI6z7sJuRnYBOrCjoAdZ8kBVHKkZC9j5Ss%252BQYVwv%252BsIxsxTIAqg%253D%253D" |
...
title="Link to Javascript code that can be used to embed this FormType in an HTML page"/> |
...
<link rel="controltypes" type="application/atom+xml" |
...
href="/frevvo/web/api/controltypes?ownerId=_0vNZwD8KEd6yc_ZDP21S1Q!_nv8uAT8KEd6yc_ZDP21S1Q!johndoe" |
...
title="Expense Report's Control Types"/> |
...
<link rel="formtype-editor" type="text/html" |
...
href="/frevvo/web/user/johndoe/app/_nv8uAT8KEd6yc_ZDP21S1Q/formtype/_0vNZwD8KEd6yc_ZDP21S1Q? |
...
edit=true&embed=true&_method=post&apikey=1VeRclWJogwX2lUlGuLo9kglWN%252BUdNE9c9UGI6z7sJuRnYBOrCjoAdZ8kBVHKkZC9j5Ss%252BQYVwv%252BsIxsxTIAqg%253D%253D" |
...
title="Link to the FormType Designer Expense Report HTML"/> |
...
<link rel="formtype-editor" type="text/javascript" |
...
href="/frevvo/web/user/johndoe/app/_nv8uAT8KEd6yc_ZDP21S1Q/formtype/_0vNZwD8KEd6yc_ZDP21S1Q/embed? edit=true&apikey=1VeRclWJogwX2lUlGuLo9kglWN%252BUdNE9c9UGI6z7sJuRnYBOrCjoAdZ8kBVHKkZC9j5Ss%252BQYVwv%252BsIxsxTIAqg%253D%253D" |
...
title="Link to Javascript code that can be used to embed this FormType in an HTML page"/> |
...
<link rel="submissions" type="text/html" |
...
href="/frevvo/web/user/johndoe/app/_nv8uAT8KEd6yc_ZDP21S1Q/formtype/_0vNZwD8KEd6yc_ZDP21S1Q/submission? embed=true&apikey=1VeRclWJogwX2lUlGuLo9kglWN%252BUdNE9c9UGI6z7sJuRnYBOrCjoAdZ8kBVHKkZC9j5Ss%252BQYVwv%252BsIxsxTIAqg%253D%253D" |
...
title="Use FormType Expense Report"/> |
...
<link rel="submissions" type="text/javascript" |
...
href="/frevvo/web/user/johndoe/app/_nv8uAT8KEd6yc_ZDP21S1Q/formtype/_0vNZwD8KEd6yc_ZDP21S1Q/embedsubs? apikey=1VeRclWJogwX2lUlGuLo9kglWN%252BUdNE9c9UGI6z7sJuRnYBOrCjoAdZ8kBVHKkZC9j5Ss%252BQYVwv%252BsIxsxTIAqg%253D%253D" |
...
title="Link to Javascript code that can be used to embed this FormType's submissions in an HTML page"/> |
...
<link rel="schema" type="application/xml" |
...
href="/frevvo/web/user/johndoe/app/_nv8uAT8KEd6yc_ZDP21S1Q/formtype/_0vNZwD8KEd6yc_ZDP21S1Q/schema"/> |
...
<fd:owner id="_nv8uAT8KEd6yc_ZDP21S1Q!johndoe"/> |
...
<fd:visibility value="public"/> |
...
<content type="application/zip" |
...
src="/frevvo/web/user/johndoe/app/_nv8uAT8KEd6yc_ZDP21S1Q/formtype/_0vNZwD8KEd6yc_ZDP21S1Q/file/content.zip"/> |
...
</entry> |
...
Once you have a FormTypeEntry Url you can get the:
...