Ski Data API for NEU Seattle distributed systems course
- API version: 1.13
- Build date: 2020-09-29T23:17:21.533Z[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
Building the API client library requires:
- Java 1.7+
- Maven/Gradle
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.
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>
Add this dependency to your project's build file:
compile "io.swagger:swagger-java-client:1.0.0"
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
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();
}
}
}
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 |
- LiftRide
- ResortsList
- ResortsListResorts
- ResponseMsg
- SeasonsList
- SkiDayDetails
- SkierVertical
- TopTen
- TopTenTopTenSkiers
All endpoints do not require authorization. Authentication schemes defined for the API:
It's recommended to create an instance of ApiClient
per thread in a multithreaded environment to avoid any potential issues.