Coruson API

<back to all web services

GetForms

Coruson Forms

Requires Authentication
The following routes are available for this service:
GET/api/formsQuery for Coruson Forms
GetForms Parameters:
NameParameterData TypeRequiredDescription
FormRevisionIdqueryGuidNoFilter by the Form Revision Id.
FormIdqueryGuidNoFilter by FormId.
FormNamequeryStringNoFilter by the name of the Form.
OwnerqueryStringNoFilter by the owner of the Form.
RevisionqueryIntegerNoFilter by the current revision number of the Form.
StatusqueryFormStatusYesFilter by the current status of the Form.

Allowable Values

  • All
  • Draft
  • Active
  • Inactive
IsDistributedqueryBooleanFilterYesFilter by whether the form has being distributed to the current authenticated user.

Allowable Values

  • All
  • True
  • False
OrderByqueryFormOrderYesProperty to order by in Ascending order. Default is 'Name'.

Allowable Values

  • Default
  • Name
  • Owner
  • Revision
OrderByDescqueryFormOrderYesProperty to order by in Descending order.

Allowable Values

  • Default
  • Name
  • Owner
  • Revision
ThenByqueryFormOrderYesSecond Property to order by in Ascending order. NOTE: If this value is the same as either the OrderBy or OrderByDesc values, then it will be ignored.

Allowable Values

  • Default
  • Name
  • Owner
  • Revision
ThenByDescqueryFormOrderYesSecond Property to order by in Descending order. NOTE: If this value is the same as either the OrderBy or OrderByDesc values, then it will be ignored.

Allowable Values

  • Default
  • Name
  • Owner
  • Revision
PagingRequestBase<T> Parameters:
NameParameterData TypeRequiredDescription
SkipformIntegerNoNumber of items to skip before returning results. Minimum suitable value is 0 and is also the default value.
TakeformIntegerNoNumber of items to return per page. Must be a number in the range 1-100. Default value is 100.
OrderByformEnumNoOrder By
OrderByDescformEnumNoOrder By Descending
ThenByformEnumNoThen By
ThenByDescformEnumNoThen By Descending
RequestBase Parameters:
NameParameterData TypeRequiredDescription
VersionformintNo
GetFormsResponse Parameters:
NameParameterData TypeRequiredDescription
FormsformList<Form>No
GetResponseBase Parameters:
NameParameterData TypeRequiredDescription
TotalResultsformintNo
SkipformintNo
TakeformintNo
LinksformList<Link>No
ResponseBase Parameters:
NameParameterData TypeRequiredDescription
StatusDescriptionformstringNo
ResponseStatusformResponseStatusNo
Link Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
RequestUrlformstringNo
MethodformstringNo
Form Parameters:
NameParameterData TypeRequiredDescription
FormRevisionIdformGuidNo
FormIdformGuidNo
FormNameformstringNo
OwnerformstringNo
RevisionformintNo
StatusformFormStatusNo
IsDistributedformboolNo
FormFieldsformList<FormField>No
FormField Parameters:
NameParameterData TypeRequiredDescription
FieldIdformGuidNo
FormRevisionIdformGuidNo
FormNameformstringNo
LabelformstringNo
FieldTypeformFieldTypeNo
FieldBankFieldIdformGuidNo
CollectionTypeformFieldCollectionTypeNo
CollectionIdformGuid?No
CollectionNameformstringNo
SectionIdformGuidNo
PersistentSectionIdformGuid?No
SectionNameformstringNo
RepeaterSectionsformList<RepeaterSection>No
RepeaterSection Parameters:
NameParameterData TypeRequiredDescription
SectionTemplateIdformGuidNo
SectionTemplateNameformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

                    POST /json/reply/GetForms HTTP/1.1 
Host: platform.gaelenlighten.com 
Content-Type: application/json
Content-Length: length

{"FormRevisionId":"00000000-0000-0000-0000-000000000000","Skip":0,"Version":0,"FormId":"00000000-0000-0000-0000-000000000000","Take":0,"FormName":"String","Owner":"String","Revision":"String","Status":"All","IsDistributed":"All","OrderBy":"Default","OrderByDesc":"Default","ThenBy":"Default","ThenByDesc":"Default"}
                    
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Forms":[{"FormName":"String","Owner":"String","Revision":0,"Status":"All","IsDistributed":false,"FormFields":[{"FormName":"String","Label":"String","FieldType":"All","CollectionType":"All","CollectionId":"00000000-0000-0000-0000-000000000000","CollectionName":"String","PersistentSectionId":"00000000-0000-0000-0000-000000000000","SectionName":"String","RepeaterSections":[{"SectionTemplateName":"String"}]}]}],"TotalResults":0,"StatusDescription":"String","Skip":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Take":0,"Links":[{"Name":"String","RequestUrl":"String","Method":"String"}]}