GET example/api/Survey
https://app.bwz.se/bedrock/example/api/Survey
Gets all SurveyModels.
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Array of SurveyModel.
Collection of SurveyModelName | Description | Type | Additional information |
---|---|---|---|
Id |
Id of the Survey. |
integer |
None. |
Name |
Name of the Survey |
string |
None. |
Description |
Description of the Survey |
string |
None. |
PublicationId |
PublicationId of the Survey |
integer |
None. |
GoalAnswered |
The amount of expected answers |
integer |
None. |
RegistrationIsOpen |
If the Registration for the Survey is currently open. |
boolean |
None. |
CreatedByUserId |
Id of the User who created the Survey. |
integer |
None. |
CreationDate |
CreationDate of the Survey. |
date |
None. |
ModifiedDate |
ModifiedDate of the Survey. |
date |
None. |
FormFieldProperties |
An array of the FormFieldProperties of the Survey. |
Collection of FormFieldModel |
None. |
RegistrationLink |
The registration link for the Survey. |
string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "Id": 1, "Name": "sample string 2", "Description": "sample string 3", "PublicationId": 4, "GoalAnswered": 5, "RegistrationIsOpen": true, "CreatedByUserId": 7, "CreationDate": "2024-11-21T17:38:35.4298854+01:00", "ModifiedDate": "2024-11-21T17:38:35.4298854+01:00", "FormFieldProperties": [ { "FormFieldId": 1, "Name": "sample string 2", "FieldType": 1, "IsRequired": true, "FieldDataType": 1, "FieldLabel": "sample string 4", "Options": [ { "Value": "sample string 1", "Label": "sample string 2" }, { "Value": "sample string 1", "Label": "sample string 2" } ] }, { "FormFieldId": 1, "Name": "sample string 2", "FieldType": 1, "IsRequired": true, "FieldDataType": 1, "FieldLabel": "sample string 4", "Options": [ { "Value": "sample string 1", "Label": "sample string 2" }, { "Value": "sample string 1", "Label": "sample string 2" } ] } ], "RegistrationLink": "sample string 10" }, { "Id": 1, "Name": "sample string 2", "Description": "sample string 3", "PublicationId": 4, "GoalAnswered": 5, "RegistrationIsOpen": true, "CreatedByUserId": 7, "CreationDate": "2024-11-21T17:38:35.4298854+01:00", "ModifiedDate": "2024-11-21T17:38:35.4298854+01:00", "FormFieldProperties": [ { "FormFieldId": 1, "Name": "sample string 2", "FieldType": 1, "IsRequired": true, "FieldDataType": 1, "FieldLabel": "sample string 4", "Options": [ { "Value": "sample string 1", "Label": "sample string 2" }, { "Value": "sample string 1", "Label": "sample string 2" } ] }, { "FormFieldId": 1, "Name": "sample string 2", "FieldType": 1, "IsRequired": true, "FieldDataType": 1, "FieldLabel": "sample string 4", "Options": [ { "Value": "sample string 1", "Label": "sample string 2" }, { "Value": "sample string 1", "Label": "sample string 2" } ] } ], "RegistrationLink": "sample string 10" } ]
application/xml, text/xml
Sample:
<ArrayOfSurveyModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Netoptions.BizWizard.Api.Common.Models.Survey"> <SurveyModel> <CreatedByUserId>7</CreatedByUserId> <CreationDate>2024-11-21T17:38:35.4298854+01:00</CreationDate> <Description>sample string 3</Description> <FormFieldProperties xmlns:d3p1="http://schemas.datacontract.org/2004/07/Netoptions.BizWizard.Api.Common.Models.Form"> <d3p1:FormFieldModel> <d3p1:FieldDataType>Text</d3p1:FieldDataType> <d3p1:FieldLabel>sample string 4</d3p1:FieldLabel> <d3p1:FieldType>TEXT</d3p1:FieldType> <d3p1:FormFieldId>1</d3p1:FormFieldId> <d3p1:IsRequired>true</d3p1:IsRequired> <d3p1:Name>sample string 2</d3p1:Name> <d3p1:Options> <d3p1:FormFieldPossibilityModel> <d3p1:Label>sample string 2</d3p1:Label> <d3p1:Value>sample string 1</d3p1:Value> </d3p1:FormFieldPossibilityModel> <d3p1:FormFieldPossibilityModel> <d3p1:Label>sample string 2</d3p1:Label> <d3p1:Value>sample string 1</d3p1:Value> </d3p1:FormFieldPossibilityModel> </d3p1:Options> </d3p1:FormFieldModel> <d3p1:FormFieldModel> <d3p1:FieldDataType>Text</d3p1:FieldDataType> <d3p1:FieldLabel>sample string 4</d3p1:FieldLabel> <d3p1:FieldType>TEXT</d3p1:FieldType> <d3p1:FormFieldId>1</d3p1:FormFieldId> <d3p1:IsRequired>true</d3p1:IsRequired> <d3p1:Name>sample string 2</d3p1:Name> <d3p1:Options> <d3p1:FormFieldPossibilityModel> <d3p1:Label>sample string 2</d3p1:Label> <d3p1:Value>sample string 1</d3p1:Value> </d3p1:FormFieldPossibilityModel> <d3p1:FormFieldPossibilityModel> <d3p1:Label>sample string 2</d3p1:Label> <d3p1:Value>sample string 1</d3p1:Value> </d3p1:FormFieldPossibilityModel> </d3p1:Options> </d3p1:FormFieldModel> </FormFieldProperties> <GoalAnswered>5</GoalAnswered> <Id>1</Id> <ModifiedDate>2024-11-21T17:38:35.4298854+01:00</ModifiedDate> <Name>sample string 2</Name> <PublicationId>4</PublicationId> <RegistrationIsOpen>true</RegistrationIsOpen> <RegistrationLink>sample string 10</RegistrationLink> </SurveyModel> <SurveyModel> <CreatedByUserId>7</CreatedByUserId> <CreationDate>2024-11-21T17:38:35.4298854+01:00</CreationDate> <Description>sample string 3</Description> <FormFieldProperties xmlns:d3p1="http://schemas.datacontract.org/2004/07/Netoptions.BizWizard.Api.Common.Models.Form"> <d3p1:FormFieldModel> <d3p1:FieldDataType>Text</d3p1:FieldDataType> <d3p1:FieldLabel>sample string 4</d3p1:FieldLabel> <d3p1:FieldType>TEXT</d3p1:FieldType> <d3p1:FormFieldId>1</d3p1:FormFieldId> <d3p1:IsRequired>true</d3p1:IsRequired> <d3p1:Name>sample string 2</d3p1:Name> <d3p1:Options> <d3p1:FormFieldPossibilityModel> <d3p1:Label>sample string 2</d3p1:Label> <d3p1:Value>sample string 1</d3p1:Value> </d3p1:FormFieldPossibilityModel> <d3p1:FormFieldPossibilityModel> <d3p1:Label>sample string 2</d3p1:Label> <d3p1:Value>sample string 1</d3p1:Value> </d3p1:FormFieldPossibilityModel> </d3p1:Options> </d3p1:FormFieldModel> <d3p1:FormFieldModel> <d3p1:FieldDataType>Text</d3p1:FieldDataType> <d3p1:FieldLabel>sample string 4</d3p1:FieldLabel> <d3p1:FieldType>TEXT</d3p1:FieldType> <d3p1:FormFieldId>1</d3p1:FormFieldId> <d3p1:IsRequired>true</d3p1:IsRequired> <d3p1:Name>sample string 2</d3p1:Name> <d3p1:Options> <d3p1:FormFieldPossibilityModel> <d3p1:Label>sample string 2</d3p1:Label> <d3p1:Value>sample string 1</d3p1:Value> </d3p1:FormFieldPossibilityModel> <d3p1:FormFieldPossibilityModel> <d3p1:Label>sample string 2</d3p1:Label> <d3p1:Value>sample string 1</d3p1:Value> </d3p1:FormFieldPossibilityModel> </d3p1:Options> </d3p1:FormFieldModel> </FormFieldProperties> <GoalAnswered>5</GoalAnswered> <Id>1</Id> <ModifiedDate>2024-11-21T17:38:35.4298854+01:00</ModifiedDate> <Name>sample string 2</Name> <PublicationId>4</PublicationId> <RegistrationIsOpen>true</RegistrationIsOpen> <RegistrationLink>sample string 10</RegistrationLink> </SurveyModel> </ArrayOfSurveyModel>