Skip to content

eldss-classwork/cs6650-client

Repository files navigation

swagger-java-client

Ski Data API for NEU Seattle distributed systems course

  • API version: 1.13
    • Build date: 2020-09-22T20:44:21.827Z[GMT]

An API for an emulation of skier managment system for RFID tagged lift tickets. Basis for CS6650 Assignments for 2019

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>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 clean 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.ResortsApi;

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

public class ResortsApiExample {

    public static void main(String[] args) {
        
        ResortsApi apiInstance = new ResortsApi();
        List<String> resort = Arrays.asList("resort_example"); // List<String> | resort to query by
        List<String> dayID = Arrays.asList("dayID_example"); // List<String> | day number in the season
        try {
            TopTen result = apiInstance.getTopTenVert(resort, dayID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ResortsApi#getTopTenVert");
            e.printStackTrace();
        }
    }
}

Documentation for API Endpoints

All URIs are relative to /

Class Method HTTP request Description
ResortsApi getTopTenVert GET /resort/day/top10vert get the top 10 skier vertical totals for this day
SkiersApi getSkierDayVertical GET /skiers/{resortID}/days/{dayID}/skiers/{skierID}
SkiersApi getSkierResortTotals GET /skiers/{skierID}/vertical get the total vertical for the skier for the specified resort
SkiersApi writeNewLiftRide POST /skiers/liftrides write a new lift ride for the skier

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

About

Client code for CS6650, Fall 2020

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages