sfgboxapi

<back to all web services

QuestionnairsQuestionsLookup

Requires Authentication
The following routes are available for this service:
GET/questionnairs_questions
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
import com.google.gson.annotations.*;
import com.google.gson.reflect.*;

public class dtos
{

    @DataContract
    public static class QuestionnairsQuestionsLookup
    {
        @DataMember(Order=2)
        public Long questionnairsId = null;

        @DataMember(Order=3)
        public String question = null;

        @DataMember(Order=4)
        public String answer1 = null;

        @DataMember(Order=5)
        public String answer2 = null;

        @DataMember(Order=6)
        public String answer3 = null;

        @DataMember(Order=7)
        public String answer4 = null;

        @DataMember(Order=8)
        public String answer5 = null;

        @DataMember(Order=9)
        public Integer correctAnswer = null;
        
        public Long getQuestionnairsId() { return questionnairsId; }
        public QuestionnairsQuestionsLookup setQuestionnairsId(Long value) { this.questionnairsId = value; return this; }
        public String getQuestion() { return question; }
        public QuestionnairsQuestionsLookup setQuestion(String value) { this.question = value; return this; }
        public String getAnswer1() { return answer1; }
        public QuestionnairsQuestionsLookup setAnswer1(String value) { this.answer1 = value; return this; }
        public String getAnswer2() { return answer2; }
        public QuestionnairsQuestionsLookup setAnswer2(String value) { this.answer2 = value; return this; }
        public String getAnswer3() { return answer3; }
        public QuestionnairsQuestionsLookup setAnswer3(String value) { this.answer3 = value; return this; }
        public String getAnswer4() { return answer4; }
        public QuestionnairsQuestionsLookup setAnswer4(String value) { this.answer4 = value; return this; }
        public String getAnswer5() { return answer5; }
        public QuestionnairsQuestionsLookup setAnswer5(String value) { this.answer5 = value; return this; }
        public Integer getCorrectAnswer() { return correctAnswer; }
        public QuestionnairsQuestionsLookup setCorrectAnswer(Integer value) { this.correctAnswer = value; return this; }
    }

}

Java QuestionnairsQuestionsLookup DTOs

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

HTTP + OTHER

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

GET /questionnairs_questions HTTP/1.1 
Host: api.sfgtec.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{Unable to show example output for type 'IEnumerable`1' using the custom 'other' filter}Cannot dynamically create an instance of type 'System.Collections.Generic.IEnumerable`1[sfgboxapi.ServiceModel.QuestionnairsQuestionsLookupResponse]'. Reason: Cannot create an instance of an interface.