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 |
StudentQuestion deleteBestAnswer(replyInputSourceId)
delete bestAnswer
// 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();
}
Name | Type | Description | Notes |
---|---|---|---|
replyInputSourceId | String |
- Content-Type: Not defined
- Accept: application/json
StudentQuestion deleteQuestion(body)
deletes a given Question
// 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();
}
Name | Type | Description | Notes |
---|---|---|---|
body | StudentQuestion | [optional] |
- Content-Type: Not defined
- Accept: application/json
StudentQuestion deleteQuestionByInputSourceId(inputSourceId)
deletes a given Question by using its inputSourceId
// 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();
}
Name | Type | Description | Notes |
---|---|---|---|
inputSourceId | String |
- Content-Type: Not defined
- Accept: application/json
StudentQuestion deleteQuestionByInputSourceIdandInputSource(inputSourceId, inputSource)
deletes a given Question by using its inputSourceId and inputSource
// 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();
}
Name | Type | Description | Notes |
---|---|---|---|
inputSourceId | String | ||
inputSource | String |
- Content-Type: Not defined
- Accept: application/json
StudentQuestion deleteReply(inputSourceId)
deletes a reply by its inputSourceId
// 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();
}
Name | Type | Description | Notes |
---|---|---|---|
inputSourceId | String |
- Content-Type: Not defined
- Accept: application/json
DataItem downvote(inputSourceId, userId)
upvotes a given DataItem using its inputSourceId
// 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();
}
Name | Type | Description | Notes |
---|---|---|---|
inputSourceId | String | ||
userId | String |
- Content-Type: Not defined
- Accept: application/json
ActiveSlide getActiveSlides()
Returns an Array of active slides for (ppt, key, and dev)
// 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();
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
AdminAnswer getAdminAnswer(body)
forwards a new Admin Answer
// 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();
}
Name | Type | Description | Notes |
---|---|---|---|
body | AdminAnswer | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
List<String> getAllBots()
retrieves all bots
// 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();
}
This endpoint does not need any parameter.
List<String>
- Content-Type: Not defined
- Accept: application/json
getAllClosedStudentQuestionsForExercises()
retrieves all exercise questions report not including general questions - ordered by slideSet
// 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();
}
This endpoint does not need any parameter.
null (empty response body)
- Content-Type: Not defined
- Accept: application/octet-stream
getAllClosedStudentQuestionsForLectures()
retrieves all lecture questions report not including general questions - ordered by slideSet
// 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();
}
This endpoint does not need any parameter.
null (empty response body)
- Content-Type: Not defined
- Accept: application/octet-stream
List<String> getAllPresenterSessions()
Retrieves all Presenters
// 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();
}
This endpoint does not need any parameter.
List<String>
- Content-Type: Not defined
- Accept: application/json
List<String> getAllQuestionWallSessions()
retrieves all question wall listeners
// 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();
}
This endpoint does not need any parameter.
List<String>
- Content-Type: Not defined
- Accept: application/json
List<StudentQuestion> getAllStudentQuestions()
retrieves all Questions
// 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();
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
List<StudentQuestion> getAllStudentQuestionsByInputSource(inputSource)
retrieves all Questions
// 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();
}
Name | Type | Description | Notes |
---|---|---|---|
inputSource | String |
- Content-Type: Not defined
- Accept: application/json
List<StudentQuestion> getClosedLastNumStudentQuestions(num)
retrieves last {num} closed Questions
// 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();
}
Name | Type | Description | Notes |
---|---|---|---|
num | Integer |
- Content-Type: Not defined
- Accept: application/json
List<StudentQuestion> getClosedStudentQuestions()
retrieves closed Questions
// 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();
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Map<String, String> getExercises()
Returns a mapping ordered by timestamp of all exerciseNames
// 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();
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
List<TeacherQuestion> getLastNumTeacherQuestions(num)
retrieves last {num} quizzes
// 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();
}
Name | Type | Description | Notes |
---|---|---|---|
num | Integer |
- Content-Type: Not defined
- Accept: application/json
List<StudentQuestion> getOpenQuestions()
retrieves open Questions
// 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();
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Map<String, String> getPresentations()
Returns a mapping ordered by timestamp of all presentationNames
// 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();
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
StudentQuestion getQuestionByInputSourceId(inputSourceId)
retrieves question by its InputSourceId
// 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();
}
Name | Type | Description | Notes |
---|---|---|---|
inputSourceId | String |
- Content-Type: Not defined
- Accept: application/json
StudentQuestion getQuestionByInputSourceIdandInputSource(inputSourceId, inputSource)
retrieves question by its InputSourceId and inputSource
// 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();
}
Name | Type | Description | Notes |
---|---|---|---|
inputSourceId | String | ||
inputSource | String |
- Content-Type: Not defined
- Accept: application/json
StudentQuestion getQuestionByObjectId(id)
retrieves question by its ObjectId
// 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();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String |
- Content-Type: Not defined
- Accept: application/json
StudentQuestion getQuestionByReplyInputSourceId(inputSourceId)
retrieves question by looking for a certain reply.inputSourceId
// 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();
}
Name | Type | Description | Notes |
---|---|---|---|
inputSourceId | String |
- Content-Type: Not defined
- Accept: application/json
Reply getReplyByInputSourceId(inputSourceId)
retrieves reply by looking for a certain reply.inputSourceId
// 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();
}
Name | Type | Description | Notes |
---|---|---|---|
inputSourceId | String |
- Content-Type: Not defined
- Accept: application/json
Reply getReplyForQuestionByContent(inputSourceId, content)
retrieves reply by looking for a certain reply.content
// 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();
}
Name | Type | Description | Notes |
---|---|---|---|
inputSourceId | String | ||
content | String |
- Content-Type: Not defined
- Accept: application/json
getReportForExercise(num)
retrieves all questions report for specific exercise(slideSet)
// 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();
}
Name | Type | Description | Notes |
---|---|---|---|
num | Integer |
null (empty response body)
- Content-Type: Not defined
- Accept: application/octet-stream
getReportForGeneral()
retrieves all questions report for specific lecture(slideSet)
// 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();
}
This endpoint does not need any parameter.
null (empty response body)
- Content-Type: Not defined
- Accept: application/octet-stream
getReportForLecture(num)
retrieves all questions report for specific lecture(slideSet)
// 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();
}
Name | Type | Description | Notes |
---|---|---|---|
num | Integer |
null (empty response body)
- Content-Type: Not defined
- Accept: application/octet-stream
String getSMSQuestion(from, body)
forwards a new SMS question
// 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();
}
Name | Type | Description | Notes |
---|---|---|---|
from | String | [optional] | |
body | String | [optional] |
String
No authorization required
- Content-Type: application/x-www-form-urlencoded
- Accept: text/xml
Score getScoreforInputSource(inputSource)
generates Highscore for a given InputSource
// 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();
}
Name | Type | Description | Notes |
---|---|---|---|
inputSource | String |
- Content-Type: Not defined
- Accept: application/json
String getSlideForExerciseNumberAndSlideNumber(exerciseNumber, slideNumber)
Returns slidePath for ExerciseNumber / SlideNumber
// 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();
}
Name | Type | Description | Notes |
---|---|---|---|
exerciseNumber | Integer | ||
slideNumber | Integer |
String
- Content-Type: Not defined
- Accept: application/json
String getSlideForPresentationNumberAndSlideNumber(presentationNumber, slideNumber)
Returns slidePath for PresentationNumber / SlideNumber
// 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();
}
Name | Type | Description | Notes |
---|---|---|---|
presentationNumber | Integer | ||
slideNumber | Integer |
String
- Content-Type: Not defined
- Accept: application/json
Map<String, String> getSlidesForExerciseName(exerciseName)
Returns all Slides for ExerciseName
// 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();
}
Name | Type | Description | Notes |
---|---|---|---|
exerciseName | String |
- Content-Type: Not defined
- Accept: application/json
Map<String, String> getSlidesForPresentationName(presentationName)
Returns all Slides for PresentationName
// 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();
}
Name | Type | Description | Notes |
---|---|---|---|
presentationName | String |
- Content-Type: Not defined
- Accept: application/json
StudentQuestion getWhatsappQuestion(body)
forwards a new Whatsapp question
// 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();
}
Name | Type | Description | Notes |
---|---|---|---|
body | StudentQuestion | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
StudentQuestion postBestAnswer(replyInputSourceId)
saves a bestAnswer
// 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();
}
Name | Type | Description | Notes |
---|---|---|---|
replyInputSourceId | String |
- Content-Type: Not defined
- Accept: application/json
Feedback postFeedback(body)
saves a new Feedback, updates it if already existent
// 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();
}
Name | Type | Description | Notes |
---|---|---|---|
body | Feedback | [optional] |
- Content-Type: Not defined
- Accept: application/json
StudentQuestion postQuestion(body)
saves a new Question, updates it if already existent
// 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();
}
Name | Type | Description | Notes |
---|---|---|---|
body | StudentQuestion | [optional] |
- Content-Type: Not defined
- Accept: application/json
StudentQuestion postReply(questionInputSourceId, body)
saves a new Reply, updates it if already existent
// 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();
}
Name | Type | Description | Notes |
---|---|---|---|
questionInputSourceId | String | ||
body | Reply | [optional] |
- Content-Type: Not defined
- Accept: application/json
StudentQuestion putQuestion(body)
saves a new Question, updates it if already existent
// 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();
}
Name | Type | Description | Notes |
---|---|---|---|
body | StudentQuestion | [optional] |
- Content-Type: Not defined
- Accept: application/json
TeacherQuestion putQuiz(body)
saves a new Quiz
// 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();
}
Name | Type | Description | Notes |
---|---|---|---|
body | TeacherQuestion | [optional] |
- Content-Type: Not defined
- Accept: application/json
DataItem upvote(inputSourceId, userId)
upvotes a given DataItem using its inputSourceId
// 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();
}
Name | Type | Description | Notes |
---|---|---|---|
inputSourceId | String | ||
userId | String |
- Content-Type: Not defined
- Accept: application/json