Skip to content

Latest commit

 

History

History
2366 lines (1673 loc) · 64.8 KB

DefaultApi.md

File metadata and controls

2366 lines (1673 loc) · 64.8 KB

DefaultApi

All URIs are relative to http://localhost/api

Method HTTP request Description
deleteBestAnswer DELETE /bot/question/bestAnswer/{replyInputSourceId} delete bestAnswer
deleteQuestion DELETE /bot/question deletes a given Question
deleteQuestionByInputSourceId DELETE /bot/question/sourceId/{inputSourceId} deletes a given Question by using its inputSourceId
deleteQuestionByInputSourceIdandInputSource DELETE /bot/question/sourceId/{inputSourceId}/source/{inputSource} deletes a given Question by using its inputSourceId and inputSource
deleteReply DELETE /bot/reply/{inputSourceId} deletes a reply by its inputSourceId
downvote GET /bot/downvote/{inputSourceId}/userId/{userId} upvotes a given DataItem using its inputSourceId
getActiveSlides GET /bot/slide/live Returns an Array of active slides for (ppt, key, and dev)
getAdminAnswer POST /bot/answer forwards a new Admin Answer
getAllBots GET /bot/bot retrieves all bots
getAllClosedStudentQuestionsForExercises GET /bot/question/exercise/report retrieves all exercise questions report not including general questions - ordered by slideSet
getAllClosedStudentQuestionsForLectures GET /bot/question/lecture/report retrieves all lecture questions report not including general questions - ordered by slideSet
getAllPresenterSessions GET /bot/presenter Retrieves all Presenters
getAllQuestionWallSessions GET /bot/wall retrieves all question wall listeners
getAllStudentQuestions GET /bot/question retrieves all Questions
getAllStudentQuestionsByInputSource GET /bot/question/inputSource/{inputSource} retrieves all Questions
getClosedLastNumStudentQuestions GET /bot/question/closed/last/{num} retrieves last {num} closed Questions
getClosedStudentQuestions GET /bot/question/closed retrieves closed Questions
getExercises GET /bot/exercise Returns a mapping ordered by timestamp of all exerciseNames
getLastNumTeacherQuestions GET /bot/quiz/last/{num} retrieves last {num} quizzes
getOpenQuestions GET /bot/question/open retrieves open Questions
getPresentations GET /bot/presentation Returns a mapping ordered by timestamp of all presentationNames
getQuestionByInputSourceId GET /bot/question/sourceId/{inputSourceId} retrieves question by its InputSourceId
getQuestionByInputSourceIdandInputSource GET /bot/question/sourceId/{inputSourceId}/source/{inputSource} retrieves question by its InputSourceId and inputSource
getQuestionByObjectId GET /bot/question/{id} retrieves question by its ObjectId
getQuestionByReplyInputSourceId GET /bot/question/reply/sourceId/{inputSourceId} retrieves question by looking for a certain reply.inputSourceId
getReplyByInputSourceId GET /bot/reply/sourceId/{inputSourceId} retrieves reply by looking for a certain reply.inputSourceId
getReplyForQuestionByContent GET /bot/question/sourceId/{inputSourceId}/reply/content/{content} retrieves reply by looking for a certain reply.content
getReportForExercise GET /bot/question/report/exercise{num} retrieves all questions report for specific exercise(slideSet)
getReportForGeneral GET /bot/question/report/general retrieves all questions report for specific lecture(slideSet)
getReportForLecture GET /bot/question/report/lecture/{num} retrieves all questions report for specific lecture(slideSet)
getSMSQuestion POST /bot/sms forwards a new SMS question
getScoreforInputSource GET /bot/score/inputSource/{inputSource} generates Highscore for a given InputSource
getSlideForExerciseNumberAndSlideNumber GET /bot/exercise/number/{exerciseNumber}/slide/number/{slideNumber} Returns slidePath for ExerciseNumber / SlideNumber
getSlideForPresentationNumberAndSlideNumber GET /bot/presentation/number/{presentationNumber}/slide/number/{slideNumber} Returns slidePath for PresentationNumber / SlideNumber
getSlidesForExerciseName GET /bot/exercise/name/{exerciseName}/slide Returns all Slides for ExerciseName
getSlidesForPresentationName GET /bot/presentation/name/{presentationName}/slide Returns all Slides for PresentationName
getWhatsappQuestion POST /bot/whatsapp forwards a new Whatsapp question
postBestAnswer POST /bot/question/bestAnswer/{replyInputSourceId} saves a bestAnswer
postFeedback POST /bot/feedback saves a new Feedback, updates it if already existent
postQuestion POST /bot/question saves a new Question, updates it if already existent
postReply POST /bot/question/{questionInputSourceId}/reply saves a new Reply, updates it if already existent
putQuestion PUT /bot/question saves a new Question, updates it if already existent
putQuiz PUT /bot/quiz saves a new Quiz
upvote GET /bot/upvote/{inputSourceId}/userId/{userId} upvotes a given DataItem using its inputSourceId

deleteBestAnswer

StudentQuestion deleteBestAnswer(replyInputSourceId)

delete bestAnswer

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
String replyInputSourceId = "replyInputSourceId_example"; // String | 
try {
    StudentQuestion result = apiInstance.deleteBestAnswer(replyInputSourceId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#deleteBestAnswer");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
replyInputSourceId String

Return type

StudentQuestion

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

deleteQuestion

StudentQuestion deleteQuestion(body)

deletes a given Question

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
StudentQuestion body = new StudentQuestion(); // StudentQuestion | 
try {
    StudentQuestion result = apiInstance.deleteQuestion(body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#deleteQuestion");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
body StudentQuestion [optional]

Return type

StudentQuestion

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

deleteQuestionByInputSourceId

StudentQuestion deleteQuestionByInputSourceId(inputSourceId)

deletes a given Question by using its inputSourceId

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
String inputSourceId = "inputSourceId_example"; // String | 
try {
    StudentQuestion result = apiInstance.deleteQuestionByInputSourceId(inputSourceId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#deleteQuestionByInputSourceId");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
inputSourceId String

Return type

StudentQuestion

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

deleteQuestionByInputSourceIdandInputSource

StudentQuestion deleteQuestionByInputSourceIdandInputSource(inputSourceId, inputSource)

deletes a given Question by using its inputSourceId and inputSource

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
String inputSourceId = "inputSourceId_example"; // String | 
String inputSource = "inputSource_example"; // String | 
try {
    StudentQuestion result = apiInstance.deleteQuestionByInputSourceIdandInputSource(inputSourceId, inputSource);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#deleteQuestionByInputSourceIdandInputSource");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
inputSourceId String
inputSource String

Return type

StudentQuestion

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

deleteReply

StudentQuestion deleteReply(inputSourceId)

deletes a reply by its inputSourceId

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
String inputSourceId = "inputSourceId_example"; // String | 
try {
    StudentQuestion result = apiInstance.deleteReply(inputSourceId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#deleteReply");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
inputSourceId String

Return type

StudentQuestion

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

downvote

DataItem downvote(inputSourceId, userId)

upvotes a given DataItem using its inputSourceId

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
String inputSourceId = "inputSourceId_example"; // String | 
String userId = "userId_example"; // String | 
try {
    DataItem result = apiInstance.downvote(inputSourceId, userId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#downvote");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
inputSourceId String
userId String

Return type

DataItem

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

getActiveSlides

ActiveSlide getActiveSlides()

Returns an Array of active slides for (ppt, key, and dev)

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
try {
    ActiveSlide result = apiInstance.getActiveSlides();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getActiveSlides");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

ActiveSlide

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

getAdminAnswer

AdminAnswer getAdminAnswer(body)

forwards a new Admin Answer

Example

// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.DefaultApi;


DefaultApi apiInstance = new DefaultApi();
AdminAnswer body = new AdminAnswer(); // AdminAnswer | 
try {
    AdminAnswer result = apiInstance.getAdminAnswer(body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getAdminAnswer");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
body AdminAnswer [optional]

Return type

AdminAnswer

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

getAllBots

List<String> getAllBots()

retrieves all bots

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
try {
    List<String> result = apiInstance.getAllBots();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getAllBots");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

List<String>

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

getAllClosedStudentQuestionsForExercises

getAllClosedStudentQuestionsForExercises()

retrieves all exercise questions report not including general questions - ordered by slideSet

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
try {
    apiInstance.getAllClosedStudentQuestionsForExercises();
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getAllClosedStudentQuestionsForExercises");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

null (empty response body)

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/octet-stream

getAllClosedStudentQuestionsForLectures

getAllClosedStudentQuestionsForLectures()

retrieves all lecture questions report not including general questions - ordered by slideSet

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
try {
    apiInstance.getAllClosedStudentQuestionsForLectures();
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getAllClosedStudentQuestionsForLectures");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

null (empty response body)

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/octet-stream

getAllPresenterSessions

List<String> getAllPresenterSessions()

Retrieves all Presenters

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
try {
    List<String> result = apiInstance.getAllPresenterSessions();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getAllPresenterSessions");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

List<String>

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

getAllQuestionWallSessions

List<String> getAllQuestionWallSessions()

retrieves all question wall listeners

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
try {
    List<String> result = apiInstance.getAllQuestionWallSessions();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getAllQuestionWallSessions");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

List<String>

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

getAllStudentQuestions

List<StudentQuestion> getAllStudentQuestions()

retrieves all Questions

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
try {
    List<StudentQuestion> result = apiInstance.getAllStudentQuestions();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getAllStudentQuestions");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

List<StudentQuestion>

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

getAllStudentQuestionsByInputSource

List<StudentQuestion> getAllStudentQuestionsByInputSource(inputSource)

retrieves all Questions

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
String inputSource = "inputSource_example"; // String | 
try {
    List<StudentQuestion> result = apiInstance.getAllStudentQuestionsByInputSource(inputSource);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getAllStudentQuestionsByInputSource");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
inputSource String

Return type

List<StudentQuestion>

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

getClosedLastNumStudentQuestions

List<StudentQuestion> getClosedLastNumStudentQuestions(num)

retrieves last {num} closed Questions

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
Integer num = 56; // Integer | 
try {
    List<StudentQuestion> result = apiInstance.getClosedLastNumStudentQuestions(num);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getClosedLastNumStudentQuestions");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
num Integer

Return type

List<StudentQuestion>

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

getClosedStudentQuestions

List<StudentQuestion> getClosedStudentQuestions()

retrieves closed Questions

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
try {
    List<StudentQuestion> result = apiInstance.getClosedStudentQuestions();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getClosedStudentQuestions");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

List<StudentQuestion>

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

getExercises

Map<String, String> getExercises()

Returns a mapping ordered by timestamp of all exerciseNames

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
try {
    Map<String, String> result = apiInstance.getExercises();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getExercises");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

Map<String, String>

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

getLastNumTeacherQuestions

List<TeacherQuestion> getLastNumTeacherQuestions(num)

retrieves last {num} quizzes

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
Integer num = 56; // Integer | 
try {
    List<TeacherQuestion> result = apiInstance.getLastNumTeacherQuestions(num);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getLastNumTeacherQuestions");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
num Integer

Return type

List<TeacherQuestion>

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

getOpenQuestions

List<StudentQuestion> getOpenQuestions()

retrieves open Questions

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
try {
    List<StudentQuestion> result = apiInstance.getOpenQuestions();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getOpenQuestions");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

List<StudentQuestion>

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

getPresentations

Map<String, String> getPresentations()

Returns a mapping ordered by timestamp of all presentationNames

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
try {
    Map<String, String> result = apiInstance.getPresentations();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getPresentations");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

Map<String, String>

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

getQuestionByInputSourceId

StudentQuestion getQuestionByInputSourceId(inputSourceId)

retrieves question by its InputSourceId

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
String inputSourceId = "inputSourceId_example"; // String | 
try {
    StudentQuestion result = apiInstance.getQuestionByInputSourceId(inputSourceId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getQuestionByInputSourceId");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
inputSourceId String

Return type

StudentQuestion

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

getQuestionByInputSourceIdandInputSource

StudentQuestion getQuestionByInputSourceIdandInputSource(inputSourceId, inputSource)

retrieves question by its InputSourceId and inputSource

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
String inputSourceId = "inputSourceId_example"; // String | 
String inputSource = "inputSource_example"; // String | 
try {
    StudentQuestion result = apiInstance.getQuestionByInputSourceIdandInputSource(inputSourceId, inputSource);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getQuestionByInputSourceIdandInputSource");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
inputSourceId String
inputSource String

Return type

StudentQuestion

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

getQuestionByObjectId

StudentQuestion getQuestionByObjectId(id)

retrieves question by its ObjectId

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
String id = "id_example"; // String | 
try {
    StudentQuestion result = apiInstance.getQuestionByObjectId(id);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getQuestionByObjectId");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String

Return type

StudentQuestion

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

getQuestionByReplyInputSourceId

StudentQuestion getQuestionByReplyInputSourceId(inputSourceId)

retrieves question by looking for a certain reply.inputSourceId

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
String inputSourceId = "inputSourceId_example"; // String | 
try {
    StudentQuestion result = apiInstance.getQuestionByReplyInputSourceId(inputSourceId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getQuestionByReplyInputSourceId");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
inputSourceId String

Return type

StudentQuestion

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

getReplyByInputSourceId

Reply getReplyByInputSourceId(inputSourceId)

retrieves reply by looking for a certain reply.inputSourceId

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
String inputSourceId = "inputSourceId_example"; // String | 
try {
    Reply result = apiInstance.getReplyByInputSourceId(inputSourceId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getReplyByInputSourceId");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
inputSourceId String

Return type

Reply

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

getReplyForQuestionByContent

Reply getReplyForQuestionByContent(inputSourceId, content)

retrieves reply by looking for a certain reply.content

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
String inputSourceId = "inputSourceId_example"; // String | 
String content = "content_example"; // String | 
try {
    Reply result = apiInstance.getReplyForQuestionByContent(inputSourceId, content);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getReplyForQuestionByContent");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
inputSourceId String
content String

Return type

Reply

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

getReportForExercise

getReportForExercise(num)

retrieves all questions report for specific exercise(slideSet)

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
Integer num = 56; // Integer | 
try {
    apiInstance.getReportForExercise(num);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getReportForExercise");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
num Integer

Return type

null (empty response body)

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/octet-stream

getReportForGeneral

getReportForGeneral()

retrieves all questions report for specific lecture(slideSet)

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
try {
    apiInstance.getReportForGeneral();
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getReportForGeneral");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

null (empty response body)

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/octet-stream

getReportForLecture

getReportForLecture(num)

retrieves all questions report for specific lecture(slideSet)

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
Integer num = 56; // Integer | 
try {
    apiInstance.getReportForLecture(num);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getReportForLecture");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
num Integer

Return type

null (empty response body)

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/octet-stream

getSMSQuestion

String getSMSQuestion(from, body)

forwards a new SMS question

Example

// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.DefaultApi;


DefaultApi apiInstance = new DefaultApi();
String from = "from_example"; // String | 
String body = "body_example"; // String | 
try {
    String result = apiInstance.getSMSQuestion(from, body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getSMSQuestion");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
from String [optional]
body String [optional]

Return type

String

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded
  • Accept: text/xml

getScoreforInputSource

Score getScoreforInputSource(inputSource)

generates Highscore for a given InputSource

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
String inputSource = "inputSource_example"; // String | 
try {
    Score result = apiInstance.getScoreforInputSource(inputSource);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getScoreforInputSource");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
inputSource String

Return type

Score

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

getSlideForExerciseNumberAndSlideNumber

String getSlideForExerciseNumberAndSlideNumber(exerciseNumber, slideNumber)

Returns slidePath for ExerciseNumber / SlideNumber

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
Integer exerciseNumber = 56; // Integer | 
Integer slideNumber = 56; // Integer | 
try {
    String result = apiInstance.getSlideForExerciseNumberAndSlideNumber(exerciseNumber, slideNumber);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getSlideForExerciseNumberAndSlideNumber");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
exerciseNumber Integer
slideNumber Integer

Return type

String

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

getSlideForPresentationNumberAndSlideNumber

String getSlideForPresentationNumberAndSlideNumber(presentationNumber, slideNumber)

Returns slidePath for PresentationNumber / SlideNumber

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
Integer presentationNumber = 56; // Integer | 
Integer slideNumber = 56; // Integer | 
try {
    String result = apiInstance.getSlideForPresentationNumberAndSlideNumber(presentationNumber, slideNumber);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getSlideForPresentationNumberAndSlideNumber");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
presentationNumber Integer
slideNumber Integer

Return type

String

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

getSlidesForExerciseName

Map<String, String> getSlidesForExerciseName(exerciseName)

Returns all Slides for ExerciseName

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
String exerciseName = "exerciseName_example"; // String | 
try {
    Map<String, String> result = apiInstance.getSlidesForExerciseName(exerciseName);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getSlidesForExerciseName");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
exerciseName String

Return type

Map<String, String>

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

getSlidesForPresentationName

Map<String, String> getSlidesForPresentationName(presentationName)

Returns all Slides for PresentationName

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
String presentationName = "presentationName_example"; // String | 
try {
    Map<String, String> result = apiInstance.getSlidesForPresentationName(presentationName);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getSlidesForPresentationName");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
presentationName String

Return type

Map<String, String>

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

getWhatsappQuestion

StudentQuestion getWhatsappQuestion(body)

forwards a new Whatsapp question

Example

// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.DefaultApi;


DefaultApi apiInstance = new DefaultApi();
StudentQuestion body = new StudentQuestion(); // StudentQuestion | 
try {
    StudentQuestion result = apiInstance.getWhatsappQuestion(body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getWhatsappQuestion");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
body StudentQuestion [optional]

Return type

StudentQuestion

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

postBestAnswer

StudentQuestion postBestAnswer(replyInputSourceId)

saves a bestAnswer

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
String replyInputSourceId = "replyInputSourceId_example"; // String | 
try {
    StudentQuestion result = apiInstance.postBestAnswer(replyInputSourceId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#postBestAnswer");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
replyInputSourceId String

Return type

StudentQuestion

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

postFeedback

Feedback postFeedback(body)

saves a new Feedback, updates it if already existent

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
Feedback body = new Feedback(); // Feedback | 
try {
    Feedback result = apiInstance.postFeedback(body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#postFeedback");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
body Feedback [optional]

Return type

Feedback

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

postQuestion

StudentQuestion postQuestion(body)

saves a new Question, updates it if already existent

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
StudentQuestion body = new StudentQuestion(); // StudentQuestion | 
try {
    StudentQuestion result = apiInstance.postQuestion(body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#postQuestion");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
body StudentQuestion [optional]

Return type

StudentQuestion

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

postReply

StudentQuestion postReply(questionInputSourceId, body)

saves a new Reply, updates it if already existent

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
String questionInputSourceId = "questionInputSourceId_example"; // String | 
Reply body = new Reply(); // Reply | 
try {
    StudentQuestion result = apiInstance.postReply(questionInputSourceId, body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#postReply");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
questionInputSourceId String
body Reply [optional]

Return type

StudentQuestion

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

putQuestion

StudentQuestion putQuestion(body)

saves a new Question, updates it if already existent

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
StudentQuestion body = new StudentQuestion(); // StudentQuestion | 
try {
    StudentQuestion result = apiInstance.putQuestion(body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#putQuestion");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
body StudentQuestion [optional]

Return type

StudentQuestion

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

putQuiz

TeacherQuestion putQuiz(body)

saves a new Quiz

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
TeacherQuestion body = new TeacherQuestion(); // TeacherQuestion | 
try {
    TeacherQuestion result = apiInstance.putQuiz(body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#putQuiz");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
body TeacherQuestion [optional]

Return type

TeacherQuestion

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

upvote

DataItem upvote(inputSourceId, userId)

upvotes a given DataItem using its inputSourceId

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basic-auth
HttpBasicAuth basic-auth = (HttpBasicAuth) defaultClient.getAuthentication("basic-auth");
basic-auth.setUsername("YOUR USERNAME");
basic-auth.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
String inputSourceId = "inputSourceId_example"; // String | 
String userId = "userId_example"; // String | 
try {
    DataItem result = apiInstance.upvote(inputSourceId, userId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#upvote");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
inputSourceId String
userId String

Return type

DataItem

Authorization

basic-auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json