1.2.0 • Published 8 years ago

tsreg_api v1.2.0

Weekly downloads
2
License
Apache-2.0
Repository
-
Last release
8 years ago

ts

Ts - JavaScript client for ts No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.2.0
  • Package version: 1.2.0
  • Build date: 2016-08-16T12:07:11.268Z
  • Build package: class io.swagger.codegen.languages.JavascriptClientCodegen

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install ts --save

git

If the library is hosted at a git repository, e.g. https://github.com/YOUR_USERNAME/ts then install it via:

    npm install YOUR_USERNAME/ts --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Getting Started

Please follow the installation instruction and execute the following JS code:

var Ts = require('ts');

var defaultClient = Ts.ApiClient.instance;

// Configure HTTP basic authorization: HTTP_BASIC
var HTTP_BASIC = defaultClient.authentications['HTTP_BASIC'];
HTTP_BASIC.username = 'YOUR USERNAME'
HTTP_BASIC.password = 'YOUR PASSWORD'

var api = new Ts.TsDataApi()

var courseid = "courseid_example"; // {String} Identifier of the Course


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteCoursesCourseid(courseid, callback);

Documentation for API Endpoints

All URIs are relative to http://localhost:4000/v1

ClassMethodHTTP requestDescription
Ts.TsDataApideleteCoursesCourseidDELETE /courses/{courseid}
Ts.TsDataApideleteFoldersFolderidDELETE /folders/{folderid}
Ts.TsDataApideleteLessonsLessonidDELETE /lessons/{lessonid}
Ts.TsDataApideleteParticipantsParticipantidDELETE /participants/{participantid}
Ts.TsDataApideleteSeasonsSeasonidDELETE /seasons/{seasonid}
Ts.TsDataApideleteStudentsStudentidDELETE /students/{studentid}
Ts.TsDataApigetCoursesGET /courses/
Ts.TsDataApigetCoursesCourseidGET /courses/{courseid}
Ts.TsDataApigetFoldersGET /folders/
Ts.TsDataApigetFoldersFolderidGET /folders/{folderid}
Ts.TsDataApigetLessonsGET /lessons/
Ts.TsDataApigetLessonsLessonidGET /lessons/{lessonid}
Ts.TsDataApigetParticipantsGET /participants/
Ts.TsDataApigetParticipantsParticipantidGET /participants/{participantid}
Ts.TsDataApigetSeasonsGET /seasons/
Ts.TsDataApigetSeasonsSeasonidGET /seasons/{seasonid}
Ts.TsDataApigetStudentsGET /students/
Ts.TsDataApigetStudentsStudentidGET /students/{studentid}
Ts.TsDataApipostCoursesPOST /courses/
Ts.TsDataApipostFoldersPOST /folders/
Ts.TsDataApipostLessonsPOST /lessons/
Ts.TsDataApipostParticipantsPOST /participants/
Ts.TsDataApipostSeasonsPOST /seasons/
Ts.TsDataApipostStudentsPOST /students/
Ts.TsDataApiputCoursesCourseidPUT /courses/{courseid}
Ts.TsDataApiputFoldersFolderidPUT /folders/{folderid}
Ts.TsDataApiputLessonsLessonidPUT /lessons/{lessonid}
Ts.TsDataApiputParticipantsParticipantidPUT /participants/{participantid}
Ts.TsDataApiputSeasonsSeasonidPUT /seasons/{seasonid}
Ts.TsDataApiputStudentsStudentidPUT /students/{studentid}

Documentation for Models

Documentation for Authorization

HTTP_BASIC

  • Type: HTTP basic authentication