Skip to content

Mc2IdManager.FingerprintsApi

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

Method HTTP request Description
createFingerprint POST /v1/db/identifications/{code}/fingerprints Create a new fingerprint
deleteFingerprint DELETE /v1/db/identifications/{code}/fingerprints/{index} Delete a fingerprint
deleteFingerprints DELETE /v1/db/identifications/{code}/fingerprints Delete fingerprints
getFingerprint GET /v1/db/identifications/{code}/fingerprints/{index} Get a fingerprint
getFingerprints GET /v1/db/identifications/{code}/fingerprints Get fingerprint list
updateFingerprint PUT /v1/db/identifications/{code}/fingerprints/{index} Update a fingerprint

createFingerprint

FingerprintsCreateFingerprintResponse createFingerprint(code, body)

Create a new fingerprint

Create a new fingerprint, will be added at the end of the list.

Example

var Mc2IdManager = require('mc2_id_manager');

var apiInstance = new Mc2IdManager.FingerprintsApi();

var code = "code_example"; // String | code is the identification code of the fingerprint

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


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

Parameters

Name Type Description Notes
code String code is the identification code of the fingerprint
body FingerprintsCreateFingerprintRequest

Return type

FingerprintsCreateFingerprintResponse

Authorization

No authorization required

HTTP request headers

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

deleteFingerprint

ModelEmpty deleteFingerprint(code, index)

Delete a fingerprint

Delete a fingerprint for the requested code and index. Indexes will be reorganized.

Example

var Mc2IdManager = require('mc2_id_manager');

var apiInstance = new Mc2IdManager.FingerprintsApi();

var code = "code_example"; // String | code is the identification code of the fingerprint to delete

var index = 789; // Number | index is the internal position


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

Parameters

Name Type Description Notes
code String code is the identification code of the fingerprint to delete
index Number index is the internal position

Return type

ModelEmpty

Authorization

No authorization required

HTTP request headers

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

deleteFingerprints

ModelEmpty deleteFingerprints(code)

Delete fingerprints

Delete all fingerprints for the requested code.

Example

var Mc2IdManager = require('mc2_id_manager');

var apiInstance = new Mc2IdManager.FingerprintsApi();

var code = "code_example"; // String | code is the identification code of the fingerprint to delete


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

Parameters

Name Type Description Notes
code String code is the identification code of the fingerprint to delete

Return type

ModelEmpty

Authorization

No authorization required

HTTP request headers

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

getFingerprint

FingerprintsGetFingerprintResponse getFingerprint(code, index)

Get a fingerprint

Get a fingerprint by code and index.

Example

var Mc2IdManager = require('mc2_id_manager');

var apiInstance = new Mc2IdManager.FingerprintsApi();

var code = "code_example"; // String | code is the identification code of the fingerprint

var index = 789; // Number | index is the internal position


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

Parameters

Name Type Description Notes
code String code is the identification code of the fingerprint
index Number index is the internal position

Return type

FingerprintsGetFingerprintResponse

Authorization

No authorization required

HTTP request headers

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

getFingerprints

FingerprintsGetFingerprintsResponse getFingerprints(code)

Get fingerprint list

Get a list with all fingerprints by code.

Example

var Mc2IdManager = require('mc2_id_manager');

var apiInstance = new Mc2IdManager.FingerprintsApi();

var code = "code_example"; // String | code is the identification code of the fingerprint


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

Parameters

Name Type Description Notes
code String code is the identification code of the fingerprint

Return type

FingerprintsGetFingerprintsResponse

Authorization

No authorization required

HTTP request headers

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

updateFingerprint

FingerprintsUpdateFingerprintResponse updateFingerprint(code, index, body)

Update a fingerprint

Update a fingerprint with a selected index.

Example

var Mc2IdManager = require('mc2_id_manager');

var apiInstance = new Mc2IdManager.FingerprintsApi();

var code = "code_example"; // String | code is the identification code of the fingerprint

var index = 789; // Number | index is the internal position

var body = new Mc2IdManager.ModelFingerprint(); // ModelFingerprint | data is a fingerprint to update


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

Parameters

Name Type Description Notes
code String code is the identification code of the fingerprint
index Number index is the internal position
body ModelFingerprint data is a fingerprint to update

Return type

FingerprintsUpdateFingerprintResponse

Authorization

No authorization required

HTTP request headers

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