Code Monkey home page Code Monkey logo

holidayclient_jvm's Introduction

swagger-java-client

Requirements

Building the API client library requires Maven to be installed.

Installation

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

mvn install

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

mvn deploy

Refer to the official documentation for more information.

Maven users

Add this dependency to your project's POM:

<dependency>
    <groupId>io.swagger</groupId>
    <artifactId>swagger-java-client</artifactId>
    <version>1.0.0</version>
    <scope>compile</scope>
</dependency>

Gradle users

Add this dependency to your project's build file:

compile "io.swagger:swagger-java-client:1.0.0"

Others

At first generate the JAR by executing:

mvn package

Then manually install the following JARs:

  • target/swagger-java-client-1.0.0.jar
  • target/lib/*.jar

Getting Started

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

import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CarsApi;

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

public class CarsApiExample {

    public static void main(String[] args) {
        
        CarsApi apiInstance = new CarsApi();
        Integer carId = 56; // Integer | carId
        try {
            CarDetails result = apiInstance.carsCarIdGet(carId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CarsApi#carsCarIdGet");
            e.printStackTrace();
        }
    }
}

Documentation for API Endpoints

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

Class Method HTTP request Description
CarsApi carsCarIdGet GET /cars/{carId}
CarsApi carsCarIdPut PUT /cars/{carId}
CarsApi carsGet GET /cars
CarsApi carsPost POST /cars
ComingsApi comingsComingIdDelete DELETE /comings/{comingId}
ComingsApi comingsComingIdGet GET /comings/{comingId}
ComingsApi comingsComingIdPut PUT /comings/{comingId}
ComingsApi comingsGet GET /comings
ComingsApi comingsPost POST /comings
EquipmentsApi equipmentEquipmentIdGet GET /equipment/{equipmentId}
EquipmentsApi equipmentEquipmentIdPut PUT /equipment/{equipmentId}
EquipmentsApi equipmentGet GET /equipment
EquipmentsApi equipmentOrderIdGet GET /equipment/{orderId}
EquipmentsApi equipmentPost POST /equipment
OilsApi oilsGet GET /oils
OilsApi oilsOilIdDelete DELETE /oils/{oilId}
OilsApi oilsOilIdGet GET /oils/{oilId}
OilsApi oilsOilIdPut PUT /oils/{oilId}
OilsApi oilsPost POST /oils
OrdersApi equipmentOrderIdGet GET /equipment/{orderId}
OrdersApi orderGet GET /order
OrdersApi orderOrderIdGet GET /order/{orderId}
OrdersApi orderPost POST /order
OrdersApi ordersGet GET /orders
OrdersApi ordersOrderIdGet GET /orders/{orderId}
OrdersApi workersOrderIdGet GET /workers/{orderId}
OutsApi outsGet GET /outs
OutsApi outsOutIdDelete DELETE /outs/{outId}
OutsApi outsOutIdGet GET /outs/{outId}
OutsApi outsOutIdPut PUT /outs/{outId}
OutsApi outsPost POST /outs
SecurityApi loginPost POST /login
StatementsApi statementsGet GET /statements
StatementsApi statementsPost POST /statements
SubtasksApi tasksTaskIdSubtaskIdGet GET /tasks/{taskId}/{subtaskId}
SubtasksApi tasksTaskIdSubtasksGet GET /tasks/{taskId}/subtasks
TasksApi tasksGet GET /tasks
TasksApi tasksPost POST /tasks
TasksApi tasksTaskIdGet GET /tasks/{taskId}
TasksApi tasksTaskIdPut PUT /tasks/{taskId}
WorkersApi workersGet GET /workers
WorkersApi workersOrderIdGet GET /workers/{orderId}
WorkersApi workersPost POST /workers
WorkersApi workersWorkerIdGet GET /workers/{workerId}
WorkersApi workersWorkerIdPut PUT /workers/{workerId}

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization. Authentication schemes defined for the API:

Recommendation

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

Author

holidayclient_jvm's People

Contributors

maxstgs 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.