Skip to content

Latest commit

 

History

History
368 lines (256 loc) · 11.2 KB

ActividadesApi.md

File metadata and controls

368 lines (256 loc) · 11.2 KB

intellidrone_api_client_js.ActividadesApi

All URIs are relative to https://virtserver.swaggerhub.com/singletonar/intellidrone/1.0.0

Method HTTP request Description
addActividad POST /Actividades Add one Actividad.
addActividades POST /Actividades/upload Add actividades from a file.
deleteActividad DELETE /Actividades/{id} Delete one Actividad.
editActividad PUT /Actividades Edit one Actividad.
getActividadById GET /Actividades/{id} Get one Actividad.
getActividades GET /Actividades Get all Actividades.

addActividad

Vacas addActividad(actividad)

Add one Actividad.

Add one Actividad.

Example

var intellidrone_api_client_js = require('@singletonar/intellidrone-api-client-js');
var defaultClient = intellidrone_api_client_js.ApiClient.instance;

// Configure API key authorization: appToken
var appToken = defaultClient.authentications['appToken'];
appToken.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//appToken.apiKeyPrefix = 'Token';

// Configure API key authorization: userToken
var userToken = defaultClient.authentications['userToken'];
userToken.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//userToken.apiKeyPrefix = 'Token';

var apiInstance = new intellidrone_api_client_js.ActividadesApi();

var actividad = new intellidrone_api_client_js.Actividades(); // Actividades | 

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

Parameters

Name Type Description Notes
actividad Actividades

Return type

Vacas

Authorization

appToken, userToken

HTTP request headers

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

addActividades

UploadResponse addActividades(opts)

Add actividades from a file.

Add actividades from a file.

Example

var intellidrone_api_client_js = require('@singletonar/intellidrone-api-client-js');
var defaultClient = intellidrone_api_client_js.ApiClient.instance;

// Configure API key authorization: appToken
var appToken = defaultClient.authentications['appToken'];
appToken.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//appToken.apiKeyPrefix = 'Token';

// Configure API key authorization: userToken
var userToken = defaultClient.authentications['userToken'];
userToken.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//userToken.apiKeyPrefix = 'Token';

var apiInstance = new intellidrone_api_client_js.ActividadesApi();

var opts = { 
  'upfile': "/path/to/file.txt", // File | The file to upload.
  'userId': "userId_example" // String | id of user. Only for admin users.
};
apiInstance.addActividades(opts).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

Parameters

Name Type Description Notes
upfile File The file to upload. [optional]
userId String id of user. Only for admin users. [optional]

Return type

UploadResponse

Authorization

appToken, userToken

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json, application/xml

deleteActividad

DeletedResponse deleteActividad(id)

Delete one Actividad.

Delete one Actividades.

Example

var intellidrone_api_client_js = require('@singletonar/intellidrone-api-client-js');
var defaultClient = intellidrone_api_client_js.ApiClient.instance;

// Configure API key authorization: appToken
var appToken = defaultClient.authentications['appToken'];
appToken.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//appToken.apiKeyPrefix = 'Token';

// Configure API key authorization: userToken
var userToken = defaultClient.authentications['userToken'];
userToken.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//userToken.apiKeyPrefix = 'Token';

var apiInstance = new intellidrone_api_client_js.ActividadesApi();

var id = "id_example"; // String | id to delete

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

Parameters

Name Type Description Notes
id String id to delete

Return type

DeletedResponse

Authorization

appToken, userToken

HTTP request headers

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

editActividad

Actividades editActividad(lote)

Edit one Actividad.

Edit one Actividad

Example

var intellidrone_api_client_js = require('@singletonar/intellidrone-api-client-js');
var defaultClient = intellidrone_api_client_js.ApiClient.instance;

// Configure API key authorization: appToken
var appToken = defaultClient.authentications['appToken'];
appToken.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//appToken.apiKeyPrefix = 'Token';

// Configure API key authorization: userToken
var userToken = defaultClient.authentications['userToken'];
userToken.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//userToken.apiKeyPrefix = 'Token';

var apiInstance = new intellidrone_api_client_js.ActividadesApi();

var lote = new intellidrone_api_client_js.Vacas(); // Vacas | 

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

Parameters

Name Type Description Notes
lote Vacas

Return type

Actividades

Authorization

appToken, userToken

HTTP request headers

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

getActividadById

Actividades getActividadById(id, opts)

Get one Actividad.

Get one Actividades.

Example

var intellidrone_api_client_js = require('@singletonar/intellidrone-api-client-js');
var defaultClient = intellidrone_api_client_js.ApiClient.instance;

// Configure API key authorization: appToken
var appToken = defaultClient.authentications['appToken'];
appToken.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//appToken.apiKeyPrefix = 'Token';

// Configure API key authorization: userToken
var userToken = defaultClient.authentications['userToken'];
userToken.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//userToken.apiKeyPrefix = 'Token';

var apiInstance = new intellidrone_api_client_js.ActividadesApi();

var id = "id_example"; // String | id to delete

var opts = { 
  'userId': "userId_example" // String | id of user. Only for admin users.
};
apiInstance.getActividadById(id, opts).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

Parameters

Name Type Description Notes
id String id to delete
userId String id of user. Only for admin users. [optional]

Return type

Actividades

Authorization

appToken, userToken

HTTP request headers

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

getActividades

[Vacas] getActividades(skip, limit, opts)

Get all Actividades.

Get all Actividades.

Example

var intellidrone_api_client_js = require('@singletonar/intellidrone-api-client-js');
var defaultClient = intellidrone_api_client_js.ApiClient.instance;

// Configure API key authorization: appToken
var appToken = defaultClient.authentications['appToken'];
appToken.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//appToken.apiKeyPrefix = 'Token';

// Configure API key authorization: userToken
var userToken = defaultClient.authentications['userToken'];
userToken.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//userToken.apiKeyPrefix = 'Token';

var apiInstance = new intellidrone_api_client_js.ActividadesApi();

var skip = 56; // Number | number of item to skip (not included the first)

var limit = 56; // Number | max records to return (included the last)

var opts = { 
  'orderBy': "orderBy_example", // String | order by property. Put '-' at the beginning to descendant order.
  'filter': "filter_example", // String | filter data. NOT SUPPORTED YET.
  'userId': "userId_example" // String | id of user. Only for admin users.
};
apiInstance.getActividades(skip, limit, opts).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

Parameters

Name Type Description Notes
skip Number number of item to skip (not included the first)
limit Number max records to return (included the last)
orderBy String order by property. Put '-' at the beginning to descendant order. [optional]
filter String filter data. NOT SUPPORTED YET. [optional]
userId String id of user. Only for admin users. [optional]

Return type

[Vacas]

Authorization

appToken, userToken

HTTP request headers

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