All URIs are relative to http://api.topcoder-dev.com/v3
Method | HTTP request | Description |
---|---|---|
activateChallenge | POST /challenges/{id}/activate | |
cancelPrivateContest | POST /challenges/{id}/cancel | |
challengeResultsGet | GET /challengeResults | |
challengesGet | GET /challenges | |
challengesIdGet | GET /challenges/{id} | |
challengesIdPut | PUT /challenges/{id} | |
challengesIdResourcesDelete | DELETE /challenges/{id}/resources | |
challengesIdResourcesGet | GET /challenges/{id}/resources | |
challengesIdResourcesPost | POST /challenges/{id}/resources | |
closePrivateContest | POST /challenges/{id}/close | |
directChallengesGet | GET /direct/challenges | |
getChallengeTypes | GET /challenge-types | |
marathonMatcheResultsGet | GET /marathonMatcheResults | |
marathonMatchesGet | GET /marathonMatches | |
membersHandleChallengesGet | GET /members/{handle}/challenges | |
membersHandleMmsGet | GET /members/{handle}/mms | |
membersHandleSrmsGet | GET /members/{handle}/srms | |
phasesGet | GET /phases | |
platformsGet | GET /platforms | |
platformsIdDelete | DELETE /platforms/{id} | |
platformsIdPatch | PATCH /platforms/{id} | |
platformsPost | POST /platforms | |
registerChallenge | POST /challenges/{id}/register | |
saveDraftContest | POST /challenges | |
srmResultsGet | GET /srmResults | |
srmsGet | GET /srms | |
technologiesGet | GET /technologies | |
technologiesIdDelete | DELETE /technologies/{id} | |
technologiesIdPatch | PATCH /technologies/{id} | |
technologiesPost | POST /technologies | |
unregisterChallenge | POST /challenges/{id}/unregister |
ChallengeResponse activateChallenge(id)
Activate a draft challenge
var ApChallengeMicroservice = require('ap_challenge_microservice');
var defaultClient = ApChallengeMicroservice.ApiClient.default;
// Configure API key authorization: bearer
var bearer = defaultClient.authentications['bearer'];
bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearer.apiKeyPrefix = 'Token';
var apiInstance = new ApChallengeMicroservice.DefaultApi();
var id = "id_example"; // String | the id of the draft challenge
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.activateChallenge(id, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | String | the id of the draft challenge |
- Content-Type: Not defined
- Accept: Not defined
NullResponse cancelPrivateContest(id)
Cancel the private task
var ApChallengeMicroservice = require('ap_challenge_microservice');
var defaultClient = ApChallengeMicroservice.ApiClient.default;
// Configure API key authorization: bearer
var bearer = defaultClient.authentications['bearer'];
bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearer.apiKeyPrefix = 'Token';
var apiInstance = new ApChallengeMicroservice.DefaultApi();
var id = 3.4; // Number | the id of the challenge
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.cancelPrivateContest(id, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | Number | the id of the challenge |
- Content-Type: Not defined
- Accept: Not defined
InlineResponse200 challengeResultsGet(opts)
Retrieves results of dev and design challenges. These parameters parameters are optional, if none is provided, returns 10 first phases accessible by the user, ordered by createAt date desc, i.e. recent 10 phases.
var ApChallengeMicroservice = require('ap_challenge_microservice');
var defaultClient = ApChallengeMicroservice.ApiClient.default;
// Configure API key authorization: bearer
var bearer = defaultClient.authentications['bearer'];
bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearer.apiKeyPrefix = 'Token';
var apiInstance = new ApChallengeMicroservice.DefaultApi();
var opts = {
'filter': "filter_example", // String | fieldName=fieldValue (enum[string],optional) - parameter for filtering the fields according to v3 spec + userId - filter by challenges in which the user has a role + challengeId - id of the challenge for which to return the results.
'offset': 56, // Integer | number of items to skip. Defaults to 0
'limit': 56 // Integer | max records to return. Defaults to 10
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.challengeResultsGet(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
filter | String | fieldName=fieldValue (enum[string],optional) - parameter for filtering the fields according to v3 spec + userId - filter by challenges in which the user has a role + challengeId - id of the challenge for which to return the results. | [optional] |
offset | Integer | number of items to skip. Defaults to 0 | [optional] |
limit | Integer | max records to return. Defaults to 10 | [optional] |
- Content-Type: Not defined
- Accept: application/json
InlineResponse2001 challengesGet(opts)
Retrieve active/past results for dev/design/data science challenges. This endpoint serves results based on filter variable list_type ( active/past) and filter variable type ( data_science / develop /design ).
var ApChallengeMicroservice = require('ap_challenge_microservice');
var defaultClient = ApChallengeMicroservice.ApiClient.default;
// Configure API key authorization: bearer
var bearer = defaultClient.authentications['bearer'];
bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearer.apiKeyPrefix = 'Token';
var apiInstance = new ApChallengeMicroservice.DefaultApi();
var opts = {
'filter': "filter_example", // String | fieldName=fieldValue (enum[string],optional) - parameter for filtering the fields according to v3 spec + userId - Filter by user_id + challengeType + challengeName - Challenge Name + challengeId + platforms + technologies + reviewType + prizeLowerBound + prizeUpperBound + submissionEndFrom + submissionEndTo + projectId - Filter by Direct project id + projectName - Filter by Direct project name, only available for admin + isTask - Filter by isTask field + groupIds - Filter by the group ids, it will only be used and when the API is called with authenticated user. The value should be ids separated by comma.
'offset': 56, // Integer | number of items to skip. Defaults to 0
'limit': 56 // Integer | max records to return. Defaults to 10
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.challengesGet(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
filter | String | fieldName=fieldValue (enum[string],optional) - parameter for filtering the fields according to v3 spec + userId - Filter by user_id + challengeType + challengeName - Challenge Name + challengeId + platforms + technologies + reviewType + prizeLowerBound + prizeUpperBound + submissionEndFrom + submissionEndTo + projectId - Filter by Direct project id + projectName - Filter by Direct project name, only available for admin + isTask - Filter by isTask field + groupIds - Filter by the group ids, it will only be used and when the API is called with authenticated user. The value should be ids separated by comma. | [optional] |
offset | Integer | number of items to skip. Defaults to 0 | [optional] |
limit | Integer | max records to return. Defaults to 10 | [optional] |
- Content-Type: Not defined
- Accept: application/json
InlineResponse2002 challengesIdGet(id)
Get challenge details.
var ApChallengeMicroservice = require('ap_challenge_microservice');
var defaultClient = ApChallengeMicroservice.ApiClient.default;
// Configure API key authorization: bearer
var bearer = defaultClient.authentications['bearer'];
bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearer.apiKeyPrefix = 'Token';
var apiInstance = new ApChallengeMicroservice.DefaultApi();
var id = 3.4; // Number | The challenge id to get the challenge details.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.challengesIdGet(id, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | Number | The challenge id to get the challenge details. |
- Content-Type: Not defined
- Accept: application/json
ChallengeResponse challengesIdPut(id, body)
Update the challenge
var ApChallengeMicroservice = require('ap_challenge_microservice');
var defaultClient = ApChallengeMicroservice.ApiClient.default;
// Configure API key authorization: bearer
var bearer = defaultClient.authentications['bearer'];
bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearer.apiKeyPrefix = 'Token';
var apiInstance = new ApChallengeMicroservice.DefaultApi();
var id = 3.4; // Number | The id of the challenge.
var body = new ApChallengeMicroservice.UpdateChallengeBodyParam(); // UpdateChallengeBodyParam |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.challengesIdPut(id, body, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | Number | The id of the challenge. | |
body | UpdateChallengeBodyParam |
- Content-Type: Not defined
- Accept: application/json
ManageResourceResponse challengesIdResourcesDelete(id, body)
Remove Resource from a challenge
var ApChallengeMicroservice = require('ap_challenge_microservice');
var defaultClient = ApChallengeMicroservice.ApiClient.default;
// Configure API key authorization: bearer
var bearer = defaultClient.authentications['bearer'];
bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearer.apiKeyPrefix = 'Token';
var apiInstance = new ApChallengeMicroservice.DefaultApi();
var id = 3.4; // Number | The id of the challenge from which to remove the resource
var body = new ApChallengeMicroservice.RemoveResourceBody(); // RemoveResourceBody |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.challengesIdResourcesDelete(id, body, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | Number | The id of the challenge from which to remove the resource | |
body | RemoveResourceBody |
- Content-Type: Not defined
- Accept: application/json
GetResourceResponse challengesIdResourcesGet(id)
Get all resources for a challenge.
var ApChallengeMicroservice = require('ap_challenge_microservice');
var defaultClient = ApChallengeMicroservice.ApiClient.default;
// Configure API key authorization: bearer
var bearer = defaultClient.authentications['bearer'];
bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearer.apiKeyPrefix = 'Token';
var apiInstance = new ApChallengeMicroservice.DefaultApi();
var id = 3.4; // Number | The id of the challenge.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.challengesIdResourcesGet(id, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | Number | The id of the challenge. |
- Content-Type: Not defined
- Accept: application/json
ManageResourceResponse challengesIdResourcesPost(id, body)
Add Resource to a challenge.
var ApChallengeMicroservice = require('ap_challenge_microservice');
var defaultClient = ApChallengeMicroservice.ApiClient.default;
// Configure API key authorization: bearer
var bearer = defaultClient.authentications['bearer'];
bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearer.apiKeyPrefix = 'Token';
var apiInstance = new ApChallengeMicroservice.DefaultApi();
var id = 3.4; // Number | The id of the challenge to which to add the resource.
var body = new ApChallengeMicroservice.AddResourceBody(); // AddResourceBody |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.challengesIdResourcesPost(id, body, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | Number | The id of the challenge to which to add the resource. | |
body | AddResourceBody |
- Content-Type: Not defined
- Accept: application/json
NullResponse closePrivateContest(id)
Close the private task
var ApChallengeMicroservice = require('ap_challenge_microservice');
var defaultClient = ApChallengeMicroservice.ApiClient.default;
// Configure API key authorization: bearer
var bearer = defaultClient.authentications['bearer'];
bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearer.apiKeyPrefix = 'Token';
var apiInstance = new ApChallengeMicroservice.DefaultApi();
var id = 3.4; // Number | the id of the challenge
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.closePrivateContest(id, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | Number | the id of the challenge |
- Content-Type: Not defined
- Accept: Not defined
InlineResponse2003 directChallengesGet(opts)
get challenges
var ApChallengeMicroservice = require('ap_challenge_microservice');
var defaultClient = ApChallengeMicroservice.ApiClient.default;
// Configure API key authorization: bearer
var bearer = defaultClient.authentications['bearer'];
bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearer.apiKeyPrefix = 'Token';
var apiInstance = new ApChallengeMicroservice.DefaultApi();
var opts = {
'filter': "filter_example", // String | fieldName=fieldValue (enum[string],optional) - parameter for filtering the fields according to v3 spec + type - Filter by challenge status type, it must be active, past, or draft + creator - Only return challenges created by current user + directProjectId - Filter by direct project id + clientId - Filter by client id + billingId - Filter by billing id + startDateFrom - Left range of the challenge start date + startDateTo - Right range of the challenge start date + endDateFrom - Left range of the challenge end date + endDateTo - Right range of the challenge end date + challengeType - Filter by challenge type + challengeStatus - Filter by challenge status + challengeTechnologies - Filter by challenge technologies + challengePlatforms - Filter by challenge platforms + directProjectName - Filter by direct project name
'offset': 56, // Integer | number of items to skip. Defaults to 0
'limit': 56 // Integer | max records to return. Defaults to 10
'orderBy': "orderBy_example" // String | sort the result by the provided order by clause
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.directChallengesGet(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
filter | String | fieldName=fieldValue (enum[string],optional) - parameter for filtering the fields according to v3 spec + type - Filter by challenge status type, it must be active, past, or draft + creator - Only return challenges created by current user + directProjectId - Filter by direct project id + clientId - Filter by client id + billingId - Filter by billing id + startDateFrom - Left range of the challenge start date + startDateTo - Right range of the challenge start date + endDateFrom - Left range of the challenge end date + endDateTo - Right range of the challenge end date + challengeType - Filter by challenge type + challengeStatus - Filter by challenge status + challengeTechnologies - Filter by challenge technologies + challengePlatforms - Filter by challenge platforms + directProjectName - Filter by direct project name | [optional] |
offset | Integer | number of items to skip. Defaults to 0 | [optional] |
limit | Integer | max records to return. Defaults to 10 | [optional] |
orderBy | String | sort the result by the provided order by clause | [optional] |
- Content-Type: Not defined
- Accept: application/json
ChallengeTypeResponse getChallengeTypes()
Get challenge types
var ApChallengeMicroservice = require('ap_challenge_microservice');
var defaultClient = ApChallengeMicroservice.ApiClient.default;
// Configure API key authorization: bearer
var bearer = defaultClient.authentications['bearer'];
bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearer.apiKeyPrefix = 'Token';
var apiInstance = new ApChallengeMicroservice.DefaultApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getChallengeTypes(callback);
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: Not defined
InlineResponse2004 marathonMatcheResultsGet(opts)
Retrieves results for marathon matches. These parameters parameters are optional, if none is provided, returns 10 first phases accessible by the user, ordered by createAt date desc, i.e. recent 10 phases.
var ApChallengeMicroservice = require('ap_challenge_microservice');
var defaultClient = ApChallengeMicroservice.ApiClient.default;
// Configure API key authorization: bearer
var bearer = defaultClient.authentications['bearer'];
bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearer.apiKeyPrefix = 'Token';
var apiInstance = new ApChallengeMicroservice.DefaultApi();
var opts = {
'filter': "filter_example", // String | fieldName=fieldValue (enum[string],optional) - parameter for filtering the fields according to v3 spec + contestId - id of the marathon match + userId - filters by user id
'offset': 56, // Integer | number of items to skip. Defaults to 0
'limit': 56 // Integer | max records to return. Defaults to 10
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.marathonMatcheResultsGet(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
filter | String | fieldName=fieldValue (enum[string],optional) - parameter for filtering the fields according to v3 spec + contestId - id of the marathon match + userId - filters by user id | [optional] |
offset | Integer | number of items to skip. Defaults to 0 | [optional] |
limit | Integer | max records to return. Defaults to 10 | [optional] |
- Content-Type: Not defined
- Accept: application/json
InlineResponse2005 marathonMatchesGet(opts)
Retrieves marathon matches. These parameters parameters are optional, if none is provided, returns 10 first phases accessible by the user, ordered by createAt date desc, i.e. recent 10 phases.
var ApChallengeMicroservice = require('ap_challenge_microservice');
var defaultClient = ApChallengeMicroservice.ApiClient.default;
// Configure API key authorization: bearer
var bearer = defaultClient.authentications['bearer'];
bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearer.apiKeyPrefix = 'Token';
var apiInstance = new ApChallengeMicroservice.DefaultApi();
var opts = {
'filter': "filter_example", // String | fieldName=fieldValue (enum[string],optional) - parameter for filtering the fields according to v3 spec + listType - active or past + userId - filters by marathon matches in which the user has a role
'offset': 56, // Integer | number of items to skip. Defaults to 0
'limit': 56 // Integer | max records to return. Defaults to 10
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.marathonMatchesGet(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
filter | String | fieldName=fieldValue (enum[string],optional) - parameter for filtering the fields according to v3 spec + listType - active or past + userId - filters by marathon matches in which the user has a role | [optional] |
offset | Integer | number of items to skip. Defaults to 0 | [optional] |
limit | Integer | max records to return. Defaults to 10 | [optional] |
- Content-Type: Not defined
- Accept: application/json
InlineResponse2006 membersHandleChallengesGet(handle, opts)
Retrieve Challenges of a particular user handle.
var ApChallengeMicroservice = require('ap_challenge_microservice');
var defaultClient = ApChallengeMicroservice.ApiClient.default;
// Configure API key authorization: bearer
var bearer = defaultClient.authentications['bearer'];
bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearer.apiKeyPrefix = 'Token';
var apiInstance = new ApChallengeMicroservice.DefaultApi();
var handle = "handle_example"; // String | the handle of the user
var opts = {
'filter': "filter_example", // String | fieldName=fieldValue (enum[string],optional) - parameter for filtering the fields according to v3 spec + id - Filter by challenge id, it supports a single id as in id=123 or an in filter: id=in(123,456) + isPrivate - Filter by private flag, boolean + technologies - Filter by a single technology + platforms - Filter by a single platform + userIds - Filter by a single userId + forumId - Filter by a forum id + reviewType - Filter by review type, values are Internal, peer + status - Active, Completed + subTrack - One of the allowed subTrack Values + track - One of the allowed Track values + hasUserSubmittedForReview - boolean value indicating if user has submitted for review + name - Challenge name + projectId - Filter by Direct project id + projectName - Filter by Direct project name, only available for admin + isTask - Filter type isTask field + groupIds - Filter by the group ids, it will only be used and when the API is called with authenticated user. The value should be ids separated by comma.
'offset': 56, // Integer | number of items to skip. Defaults to 0
'limit': 56 // Integer | max records to return. Defaults to 10
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.membersHandleChallengesGet(handle, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
handle | String | the handle of the user | |
filter | String | fieldName=fieldValue (enum[string],optional) - parameter for filtering the fields according to v3 spec + id - Filter by challenge id, it supports a single id as in id=123 or an in filter: id=in(123,456) + isPrivate - Filter by private flag, boolean + technologies - Filter by a single technology + platforms - Filter by a single platform + userIds - Filter by a single userId + forumId - Filter by a forum id + reviewType - Filter by review type, values are Internal, peer + status - Active, Completed + subTrack - One of the allowed subTrack Values + track - One of the allowed Track values + hasUserSubmittedForReview - boolean value indicating if user has submitted for review + name - Challenge name + projectId - Filter by Direct project id + projectName - Filter by Direct project name, only available for admin + isTask - Filter type isTask field + groupIds - Filter by the group ids, it will only be used and when the API is called with authenticated user. The value should be ids separated by comma. | [optional] |
offset | Integer | number of items to skip. Defaults to 0 | [optional] |
limit | Integer | max records to return. Defaults to 10 | [optional] |
- Content-Type: Not defined
- Accept: application/json
InlineResponse2007 membersHandleMmsGet(handle, opts)
Retrieve MMs of a particular user handle.
var ApChallengeMicroservice = require('ap_challenge_microservice');
var defaultClient = ApChallengeMicroservice.ApiClient.default;
// Configure API key authorization: bearer
var bearer = defaultClient.authentications['bearer'];
bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearer.apiKeyPrefix = 'Token';
var apiInstance = new ApChallengeMicroservice.DefaultApi();
var handle = "handle_example"; // String | the handle of the user
var opts = {
'filter': "filter_example", // String | fieldName=fieldValue (enum[string],optional) - parameter for filtering the fields according to v3 spec + id - Filter by srm id + userIds - Filter by a single userId + forumId - Filter by a forum id + status - Active, Completed + name - MM name + startDate - Start date of particular MM + endDate - End date of particular MM + isRatedForMM - Boolean, indicating is user is rated for this MM
'offset': 56, // Integer | number of items to skip. Defaults to 0
'limit': 56 // Integer | max records to return. Defaults to 10
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.membersHandleMmsGet(handle, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
handle | String | the handle of the user | |
filter | String | fieldName=fieldValue (enum[string],optional) - parameter for filtering the fields according to v3 spec + id - Filter by srm id + userIds - Filter by a single userId + forumId - Filter by a forum id + status - Active, Completed + name - MM name + startDate - Start date of particular MM + endDate - End date of particular MM + isRatedForMM - Boolean, indicating is user is rated for this MM | [optional] |
offset | Integer | number of items to skip. Defaults to 0 | [optional] |
limit | Integer | max records to return. Defaults to 10 | [optional] |
- Content-Type: Not defined
- Accept: application/json
InlineResponse2008 membersHandleSrmsGet(handle, opts)
Retrieve SRMs of a particular user handle.
var ApChallengeMicroservice = require('ap_challenge_microservice');
var defaultClient = ApChallengeMicroservice.ApiClient.default;
// Configure API key authorization: bearer
var bearer = defaultClient.authentications['bearer'];
bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearer.apiKeyPrefix = 'Token';
var apiInstance = new ApChallengeMicroservice.DefaultApi();
var handle = "handle_example"; // String | the handle of the user
var opts = {
'filter': "filter_example", // String | fieldName=fieldValue (enum[string],optional) - parameter for filtering the fields according to v3 spec + id - Filter by srm id + userIds - Filter by a single userId + forumId - Filter by a forum id + status - Active, Completed + name - SRM name + startDate - Start date of particular SRM + endDate - End date of particular SRM + isRatedForSRM - Boolean, indicating is user is rated for this SRM
'offset': 56, // Integer | number of items to skip. Defaults to 0
'limit': 56 // Integer | max records to return. Defaults to 10
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.membersHandleSrmsGet(handle, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
handle | String | the handle of the user | |
filter | String | fieldName=fieldValue (enum[string],optional) - parameter for filtering the fields according to v3 spec + id - Filter by srm id + userIds - Filter by a single userId + forumId - Filter by a forum id + status - Active, Completed + name - SRM name + startDate - Start date of particular SRM + endDate - End date of particular SRM + isRatedForSRM - Boolean, indicating is user is rated for this SRM | [optional] |
offset | Integer | number of items to skip. Defaults to 0 | [optional] |
limit | Integer | max records to return. Defaults to 10 | [optional] |
- Content-Type: Not defined
- Accept: application/json
InlineResponse2009 phasesGet(opts)
Retrieves phases for dev and design challenges. These parameters parameters are optional, if none is provided, returns 10 first phases accessible by the user, ordered by createAt date desc, i.e. recent 10 phases.
var ApChallengeMicroservice = require('ap_challenge_microservice');
var defaultClient = ApChallengeMicroservice.ApiClient.default;
// Configure API key authorization: bearer
var bearer = defaultClient.authentications['bearer'];
bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearer.apiKeyPrefix = 'Token';
var apiInstance = new ApChallengeMicroservice.DefaultApi();
var opts = {
'filter': "filter_example", // String | fieldName=fieldValue (enum[string],optional) - parameter for filtering the fields according to v3 spec + challengeId - The id of the challenge for which to fetch phases. Supports comma separated list of values to fetch phases for multiple challenges.
'offset': 56, // Integer | number of items to skip. Defaults to 0
'limit': 56 // Integer | max records to return. Defaults to 10
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.phasesGet(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
filter | String | fieldName=fieldValue (enum[string],optional) - parameter for filtering the fields according to v3 spec + challengeId - The id of the challenge for which to fetch phases. Supports comma separated list of values to fetch phases for multiple challenges. | [optional] |
offset | Integer | number of items to skip. Defaults to 0 | [optional] |
limit | Integer | max records to return. Defaults to 10 | [optional] |
- Content-Type: Not defined
- Accept: application/json
PlatformArrayResponse platformsGet()
return all platforms
var ApChallengeMicroservice = require('ap_challenge_microservice');
var defaultClient = ApChallengeMicroservice.ApiClient.default;
// Configure API key authorization: bearer
var bearer = defaultClient.authentications['bearer'];
bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearer.apiKeyPrefix = 'Token';
var apiInstance = new ApChallengeMicroservice.DefaultApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.platformsGet(callback);
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: Not defined
NormalResponse platformsIdDelete(id)
delete a single platform. currently this endpoint is just a mock.
var ApChallengeMicroservice = require('ap_challenge_microservice');
var defaultClient = ApChallengeMicroservice.ApiClient.default;
// Configure API key authorization: bearer
var bearer = defaultClient.authentications['bearer'];
bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearer.apiKeyPrefix = 'Token';
var apiInstance = new ApChallengeMicroservice.DefaultApi();
var id = 3.4; // Number |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.platformsIdDelete(id, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | Number |
- Content-Type: Not defined
- Accept: Not defined
PlatformResponse platformsIdPatch(id, body)
update a single platform
var ApChallengeMicroservice = require('ap_challenge_microservice');
var defaultClient = ApChallengeMicroservice.ApiClient.default;
// Configure API key authorization: bearer
var bearer = defaultClient.authentications['bearer'];
bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearer.apiKeyPrefix = 'Token';
var apiInstance = new ApChallengeMicroservice.DefaultApi();
var id = 3.4; // Number |
var body = new ApChallengeMicroservice.NewPlatformBodyParam(); // NewPlatformBodyParam |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.platformsIdPatch(id, body, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | Number | ||
body | NewPlatformBodyParam |
- Content-Type: Not defined
- Accept: Not defined
PlatformResponse platformsPost(body)
create a new platform
var ApChallengeMicroservice = require('ap_challenge_microservice');
var defaultClient = ApChallengeMicroservice.ApiClient.default;
// Configure API key authorization: bearer
var bearer = defaultClient.authentications['bearer'];
bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearer.apiKeyPrefix = 'Token';
var apiInstance = new ApChallengeMicroservice.DefaultApi();
var body = new ApChallengeMicroservice.NewPlatformBodyParam(); // NewPlatformBodyParam |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.platformsPost(body, callback);
Name | Type | Description | Notes |
---|---|---|---|
body | NewPlatformBodyParam |
- Content-Type: Not defined
- Accept: Not defined
NormalResponse registerChallenge(id)
Register for a challenge
var ApChallengeMicroservice = require('ap_challenge_microservice');
var defaultClient = ApChallengeMicroservice.ApiClient.default;
// Configure API key authorization: bearer
var bearer = defaultClient.authentications['bearer'];
bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearer.apiKeyPrefix = 'Token';
var apiInstance = new ApChallengeMicroservice.DefaultApi();
var id = 3.4; // Number | the id of the challenge
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.registerChallenge(id, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | Number | the id of the challenge |
- Content-Type: Not defined
- Accept: Not defined
ChallengeResponse saveDraftContest(body)
Create a draft challenge
var ApChallengeMicroservice = require('ap_challenge_microservice');
var defaultClient = ApChallengeMicroservice.ApiClient.default;
// Configure API key authorization: bearer
var bearer = defaultClient.authentications['bearer'];
bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearer.apiKeyPrefix = 'Token';
var apiInstance = new ApChallengeMicroservice.DefaultApi();
var body = new ApChallengeMicroservice.NewChallengeBodyParam(); // NewChallengeBodyParam |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.saveDraftContest(body, callback);
Name | Type | Description | Notes |
---|---|---|---|
body | NewChallengeBodyParam |
- Content-Type: Not defined
- Accept: Not defined
InlineResponse20010 srmResultsGet(opts)
Retrieves single round matche results. These parameters parameters are optional, if none is provided, returns 10 first phases accessible by the user, ordered by createAt date desc, i.e. recent 10 phases.
var ApChallengeMicroservice = require('ap_challenge_microservice');
var defaultClient = ApChallengeMicroservice.ApiClient.default;
// Configure API key authorization: bearer
var bearer = defaultClient.authentications['bearer'];
bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearer.apiKeyPrefix = 'Token';
var apiInstance = new ApChallengeMicroservice.DefaultApi();
var opts = {
'filter': "filter_example", // String | fieldName=fieldValue (enum[string],optional) - parameter for filtering the fields according to v3 spec + userId - filters by srms in which the user has a role + contestId - Id of the srm to return results
'offset': 56, // Integer | number of items to skip. Defaults to 0
'limit': 56 // Integer | max records to return. Defaults to 10
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.srmResultsGet(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
filter | String | fieldName=fieldValue (enum[string],optional) - parameter for filtering the fields according to v3 spec + userId - filters by srms in which the user has a role + contestId - Id of the srm to return results | [optional] |
offset | Integer | number of items to skip. Defaults to 0 | [optional] |
limit | Integer | max records to return. Defaults to 10 | [optional] |
- Content-Type: Not defined
- Accept: application/json
InlineResponse20011 srmsGet(opts)
Retrieves single round matches. These parameters parameters are optional, if none is provided, returns 10 first phases accessible by the user, ordered by createAt date desc, i.e. recent 10 phases.
var ApChallengeMicroservice = require('ap_challenge_microservice');
var defaultClient = ApChallengeMicroservice.ApiClient.default;
// Configure API key authorization: bearer
var bearer = defaultClient.authentications['bearer'];
bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearer.apiKeyPrefix = 'Token';
var apiInstance = new ApChallengeMicroservice.DefaultApi();
var opts = {
'filter': "filter_example", // String | fieldName=fieldValue (enum[string],optional) - parameter for filtering the fields according to v3 spec + listType - future, active, or past + userId - filters by srms in which the user has a role
'offset': 56, // Integer | number of items to skip. Defaults to 0
'limit': 56 // Integer | max records to return. Defaults to 10
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.srmsGet(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
filter | String | fieldName=fieldValue (enum[string],optional) - parameter for filtering the fields according to v3 spec + listType - future, active, or past + userId - filters by srms in which the user has a role | [optional] |
offset | Integer | number of items to skip. Defaults to 0 | [optional] |
limit | Integer | max records to return. Defaults to 10 | [optional] |
- Content-Type: Not defined
- Accept: application/json
TechnologyArrayResponse technologiesGet()
return all technologies
var ApChallengeMicroservice = require('ap_challenge_microservice');
var defaultClient = ApChallengeMicroservice.ApiClient.default;
// Configure API key authorization: bearer
var bearer = defaultClient.authentications['bearer'];
bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearer.apiKeyPrefix = 'Token';
var apiInstance = new ApChallengeMicroservice.DefaultApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.technologiesGet(callback);
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: Not defined
NormalResponse technologiesIdDelete(id)
delete a single technology
var ApChallengeMicroservice = require('ap_challenge_microservice');
var defaultClient = ApChallengeMicroservice.ApiClient.default;
// Configure API key authorization: bearer
var bearer = defaultClient.authentications['bearer'];
bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearer.apiKeyPrefix = 'Token';
var apiInstance = new ApChallengeMicroservice.DefaultApi();
var id = 3.4; // Number |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.technologiesIdDelete(id, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | Number |
- Content-Type: Not defined
- Accept: Not defined
TechnologyResponse technologiesIdPatch(id, body)
update a single technology
var ApChallengeMicroservice = require('ap_challenge_microservice');
var defaultClient = ApChallengeMicroservice.ApiClient.default;
// Configure API key authorization: bearer
var bearer = defaultClient.authentications['bearer'];
bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearer.apiKeyPrefix = 'Token';
var apiInstance = new ApChallengeMicroservice.DefaultApi();
var id = 3.4; // Number |
var body = new ApChallengeMicroservice.NewTechnologyBodyParam(); // NewTechnologyBodyParam |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.technologiesIdPatch(id, body, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | Number | ||
body | NewTechnologyBodyParam |
- Content-Type: Not defined
- Accept: Not defined
TechnologyResponse technologiesPost(body)
create a new technology
var ApChallengeMicroservice = require('ap_challenge_microservice');
var defaultClient = ApChallengeMicroservice.ApiClient.default;
// Configure API key authorization: bearer
var bearer = defaultClient.authentications['bearer'];
bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearer.apiKeyPrefix = 'Token';
var apiInstance = new ApChallengeMicroservice.DefaultApi();
var body = new ApChallengeMicroservice.NewTechnologyBodyParam(); // NewTechnologyBodyParam |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.technologiesPost(body, callback);
Name | Type | Description | Notes |
---|---|---|---|
body | NewTechnologyBodyParam |
- Content-Type: Not defined
- Accept: Not defined
NormalResponse unregisterChallenge(id)
Unregister for a challenge
var ApChallengeMicroservice = require('ap_challenge_microservice');
var defaultClient = ApChallengeMicroservice.ApiClient.default;
// Configure API key authorization: bearer
var bearer = defaultClient.authentications['bearer'];
bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearer.apiKeyPrefix = 'Token';
var apiInstance = new ApChallengeMicroservice.DefaultApi();
var id = 3.4; // Number | the id of the challenge
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.unregisterChallenge(id, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | Number | the id of the challenge |
- Content-Type: Not defined
- Accept: Not defined