Skip to content

Mc2IdManager.ImagesApi

All URIs are relative to http://127.0.0.1:46841/api

Method HTTP request Description
convertImage2Image POST /v1/images/convert Convert an image to another image
convertImage2RAW POST /v1/images/raw Convert an image to RAW
saveImage2File POST /v1/images/file Save an image in server

convertImage2Image

ImagesConvertImage2ImageResponse convertImage2Image(body)

Convert an image to another image

Convert any supported image types to another image type.

Example

var Mc2IdManager = require('mc2_id_manager');

var apiInstance = new Mc2IdManager.ImagesApi();

var body = new Mc2IdManager.ImagesConvertImage2ImageRequest(); // ImagesConvertImage2ImageRequest | 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.convertImage2Image(body, callback);

Parameters

Name Type Description Notes
body ImagesConvertImage2ImageRequest

Return type

ImagesConvertImage2ImageResponse

Authorization

No authorization required

HTTP request headers

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

convertImage2RAW

ImagesConvertImage2RAWResponse convertImage2RAW(body)

Convert an image to RAW

Convert any supported image types to a RAW image type.

Example

var Mc2IdManager = require('mc2_id_manager');

var apiInstance = new Mc2IdManager.ImagesApi();

var body = new Mc2IdManager.ImagesConvertImage2RAWRequest(); // ImagesConvertImage2RAWRequest | 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.convertImage2RAW(body, callback);

Parameters

Name Type Description Notes
body ImagesConvertImage2RAWRequest

Return type

ImagesConvertImage2RAWResponse

Authorization

No authorization required

HTTP request headers

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

saveImage2File

ModelEmpty saveImage2File(body)

Save an image in server

Save an image to file in the server side.

Example

var Mc2IdManager = require('mc2_id_manager');

var apiInstance = new Mc2IdManager.ImagesApi();

var body = new Mc2IdManager.ImagesSaveImage2FileRequest(); // ImagesSaveImage2FileRequest | 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.saveImage2File(body, callback);

Parameters

Name Type Description Notes
body ImagesSaveImage2FileRequest

Return type

ModelEmpty

Authorization

No authorization required

HTTP request headers

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