Code Monkey home page Code Monkey logo

ravimoshark-apis-task-libs-android's Introduction

RAVIMOSHARK - APIS - TASK - LIBS - ANDROID

The main repository is hosted in gitlab.com/ravimosharksas but it is automatically mirrored to github.com/RavimoShark, gitlab.com/singletonsd, github.com/singletonsd, github.com/patoperpetua and to gitlab.com/patoperpetua. If you are in the Github page it may occur that is not updated to the last version.

Ravimoshark Task API

  • API version: 1.0.0
    • Build date: 2019-10-20T13:36:04.593821+02:00[Europe/Rome]

This is an API to interact with Ravimoshark contracts database. # Introduction This API allow to create, modify and delete contracts and machines. It also interacts with machines imported from SAGE database. # User Authentication This API does not contain any kind of user validation but It request to have a valid authentication user to interact with it. For more information about user Authentication, please refer to Ravimoshark User Authentication.

For more information, please visit http://ravimoshark.com/contact

Automatically generated by the Swagger Codegen

Requirements

Building the API client library requires:

  1. Java 1.7+
  2. Maven/Gradle

Installation

To install the API client library to your local Maven repository, simply execute:

mvn clean install

To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:

mvn clean deploy

Refer to the OSSRH Guide for more information.

Maven users

Add this dependency to your project's POM:

<dependency>
  <groupId>com.ravimoshark</groupId>
  <artifactId>apis.task</artifactId>
  <version>1.0.0</version>
  <scope>compile</scope>
</dependency>

Gradle users

Add this dependency to your project's build file:

compile "com.ravimoshark:apis.task:1.0.0"

Others

At first generate the JAR by executing:

mvn clean package

Then manually install the following JARs:

  • target/apis.task-1.0.0.jar
  • target/lib/*.jar

Getting Started

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

import com.ravimoshark.apis.task.*;
import com.ravimoshark.apis.task.auth.*;
import com.ravimoshark.apis.task.model.*;
import com.ravimoshark.apis.task.calls.ClientsApi;

import java.io.File;
import java.util.*;

public class ClientsApiExample {

    public static void main(String[] args) {

        ClientsApi apiInstance = new ClientsApi();
        Integer skip = 56; // Integer | number of item to skip
        Integer limit = 56; // Integer | max records to return
        String orderBy = "orderBy_example"; // String | order by property.
        String filterBy = "filterBy_example"; // String | filter data.
        Deleted deleted = new Deleted(); // Deleted | Get all, deleted, not deleted data. Default not deleted.
        Boolean metadata = true; // Boolean | If metadata is needed (for pagination controls)
        try {
            InlineResponse200 result = apiInstance.getClients(skip, limit, orderBy, filterBy, deleted, metadata);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClientsApi#getClients");
            e.printStackTrace();
        }
    }
}

Documentation for API Endpoints

All URIs are relative to http://localhost:8000

Class Method HTTP request Description
ClientsApi getClients GET /clients Get all clients.
ContractsApi addContract POST /contracts Add one contract.
ContractsApi deleteContract DELETE /contracts/{refContract} Delete one contract.
ContractsApi editContract PUT /contracts Edit one contract.
ContractsApi getContractById GET /contracts/{refContract} Get one contract.
ContractsApi getContracts GET /contracts Get all contracts.
ImportedMachinesApi addImportedMachine POST /importedMachines Add one imported Machine.
ImportedMachinesApi deleteImportedMachine DELETE /importedMachines/{id} Delete one imported Machine.
ImportedMachinesApi editImportedMachine PUT /importedMachines Edit one imported Machine.
ImportedMachinesApi getImportedMachineById GET /importedMachines/{id} Get one imported Machine.
ImportedMachinesApi getImportedMachines GET /importedMachines Get all imported Machines.
LocationsApi addLocation POST /locations Add one location.
LocationsApi deleteLocation DELETE /locations/{id} copy Delete one location.
LocationsApi editLocation PUT /locations Edit one location.
LocationsApi getLocationById GET /locations/{id} copy Get one Location.
LocationsApi getLocations GET /locations Get all locations.
MachinesApi addMachine POST /machines Add one machine.
MachinesApi deleteMachine DELETE /machines/{id} Delete one machine.
MachinesApi editMachine PUT /machines Edit one machine.
MachinesApi getMachineById GET /machines/{id} Get one Machine.
MachinesApi getMachines GET /machines Get all machines.
PiecesApi getPieces GET /pieces Get all pieces.

Documentation for Models

Documentation for Authorization

Authentication schemes defined for the API:

api_key

  • Type: API key
  • API key parameter name: api_key
  • Location: HTTP header

basic_auth

  • Type: HTTP basic authentication

main_auth

Recommendation

It's recommended to create an instance of ApiClient per thread in a multi-threaded environment to avoid any potential issues.

Generate

To regenerate the library from spec, first create a .env file with the following content:

SWAGGER_API_SPEC="" #Default value: ../../documentation/dist/openapi.yaml
SWAGGER_GROUP="" #MANDATORY FIELD
SWAGGER_ARTIFACT="" #MANDATORY FIELD

And then just execute the following script:

mkdir -p scripts && \
curl -o scripts/swagger_binaries_downloader.sh -L https://singletonsd.gitlab.io/scripts/swagger/latest/swagger_binaries_downloader.sh && \
curl -o scripts/swagger_generate_android.sh -L https://singletonsd.gitlab.io/scripts/swagger/latest/swagger_generate_android.sh && \
chmod +x scripts/swagger_binaries_downloader.sh scripts/swagger_generate_android.sh && \
./scripts/swagger_generate_android.sh

© Singleton SD, France, 2019.

ravimoshark-apis-task-libs-android's People

Contributors

patoperpetua avatar ravimoshark avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.