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 .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.

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

[{"questionnairsId":0,"question":"String","answer1":"String","answer2":"String","answer3":"String","answer4":"String","answer5":"String","correctAnswer":0,"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}]