Skip to content

Latest commit

 

History

History
161 lines (100 loc) · 4.03 KB

GitProviderApi.md

File metadata and controls

161 lines (100 loc) · 4.03 KB

KodingApi.GitProviderApi

All URIs are relative to https://koding.com/remote.api

Method HTTP request Description
createImportedStackTemplate POST /GitProvider.createImportedStackTemplate
fetchConfig POST /GitProvider.fetchConfig
importStackTemplateData POST /GitProvider.importStackTemplateData

createImportedStackTemplate

DefaultResponse createImportedStackTemplate(body)

Example

var KodingApi = require('koding-api');
var defaultClient = KodingApi.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 KodingApi.GitProviderApi();

var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request

apiInstance.createImportedStackTemplate(body).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

Parameters

Name Type Description Notes
body DefaultSelector body of the request

Return type

DefaultResponse

Authorization

Bearer

HTTP request headers

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

fetchConfig

DefaultResponse fetchConfig(body)

Example

var KodingApi = require('koding-api');
var defaultClient = KodingApi.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 KodingApi.GitProviderApi();

var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request

apiInstance.fetchConfig(body).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

Parameters

Name Type Description Notes
body DefaultSelector body of the request

Return type

DefaultResponse

Authorization

Bearer

HTTP request headers

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

importStackTemplateData

DefaultResponse importStackTemplateData(body)

Example

var KodingApi = require('koding-api');
var defaultClient = KodingApi.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 KodingApi.GitProviderApi();

var body = new KodingApi.DefaultSelector(); // DefaultSelector | body of the request

apiInstance.importStackTemplateData(body).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

Parameters

Name Type Description Notes
body DefaultSelector body of the request

Return type

DefaultResponse

Authorization

Bearer

HTTP request headers

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