Skip to content

Updated to api version 2.0.0 #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .swagger-codegen/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.2.3
2.4.4
95 changes: 55 additions & 40 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,47 @@
# swagger-java-client

fn
- API version: 2.0.0
- Build date: 2019-03-27T15:47:31.669Z

The open source serverless platform.


*Automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen)*


## Requirements

Building the API client library requires [Maven](https://maven.apache.org/) to be installed.
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:

```shell
mvn install
mvn clean install
```

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

```shell
mvn deploy
mvn clean deploy
```

Refer to the [official documentation](https://maven.apache.org/plugins/maven-deploy-plugin/usage.html) for more information.
Refer to the [OSSRH Guide](http://central.sonatype.org/pages/ossrh-guide.html) for more information.

### Maven users

Add this dependency to your project's POM:

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

Expand All @@ -45,12 +57,14 @@ compile "io.swagger:swagger-java-client:1.0.0"

At first generate the JAR by executing:

mvn package
```shell
mvn clean package
```

Then manually install the following JARs:

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

## Getting Started

Expand All @@ -71,11 +85,12 @@ public class AppsApiExample {
public static void main(String[] args) {

AppsApi apiInstance = new AppsApi();
String app = "app_example"; // String | Name of the app.
App body = new App(); // App | Application data to insert.
try {
apiInstance.appsAppDelete(app);
App result = apiInstance.createApp(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AppsApi#appsAppDelete");
System.err.println("Exception when calling AppsApi#createApp");
e.printStackTrace();
}
}
Expand All @@ -85,45 +100,45 @@ public class AppsApiExample {

## Documentation for API Endpoints

All URIs are relative to *https://127.0.0.1:8080/v1*
All URIs are relative to *https://127.0.0.1:8080/v2*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*AppsApi* | [**appsAppDelete**](docs/AppsApi.md#appsAppDelete) | **DELETE** /apps/{app} | Delete an app.
*AppsApi* | [**appsAppGet**](docs/AppsApi.md#appsAppGet) | **GET** /apps/{app} | Get information for a app.
*AppsApi* | [**appsAppPatch**](docs/AppsApi.md#appsAppPatch) | **PATCH** /apps/{app} | Updates an app.
*AppsApi* | [**appsGet**](docs/AppsApi.md#appsGet) | **GET** /apps | Get all app names.
*AppsApi* | [**appsPost**](docs/AppsApi.md#appsPost) | **POST** /apps | Post new app
*CallApi* | [**appsAppCallsCallGet**](docs/CallApi.md#appsAppCallsCallGet) | **GET** /apps/{app}/calls/{call} | Get call information
*CallApi* | [**appsAppCallsCallLogGet**](docs/CallApi.md#appsAppCallsCallLogGet) | **GET** /apps/{app}/calls/{call}/log | Get call logs
*CallApi* | [**appsAppCallsGet**](docs/CallApi.md#appsAppCallsGet) | **GET** /apps/{app}/calls | Get app-bound calls.
*LogApi* | [**appsAppCallsCallLogGet**](docs/LogApi.md#appsAppCallsCallLogGet) | **GET** /apps/{app}/calls/{call}/log | Get call logs
*RoutesApi* | [**appsAppRoutesGet**](docs/RoutesApi.md#appsAppRoutesGet) | **GET** /apps/{app}/routes | Get route list by app name.
*RoutesApi* | [**appsAppRoutesPost**](docs/RoutesApi.md#appsAppRoutesPost) | **POST** /apps/{app}/routes | Create new Route
*RoutesApi* | [**appsAppRoutesRouteDelete**](docs/RoutesApi.md#appsAppRoutesRouteDelete) | **DELETE** /apps/{app}/routes/{route} | Deletes the route
*RoutesApi* | [**appsAppRoutesRouteGet**](docs/RoutesApi.md#appsAppRoutesRouteGet) | **GET** /apps/{app}/routes/{route} | Gets route by name
*RoutesApi* | [**appsAppRoutesRoutePatch**](docs/RoutesApi.md#appsAppRoutesRoutePatch) | **PATCH** /apps/{app}/routes/{route} | Update a Route, Fails if the route or app does not exist. Accepts partial updates / skips validation of zero values.
*RoutesApi* | [**appsAppRoutesRoutePut**](docs/RoutesApi.md#appsAppRoutesRoutePut) | **PUT** /apps/{app}/routes/{route} | Create a Route if it does not exist. Update if it does. Will also create app if it does not exist. Put does not skip validation of zero values
*AppsApi* | [**createApp**](docs/AppsApi.md#createApp) | **POST** /apps | Create A New Application
*AppsApi* | [**deleteApp**](docs/AppsApi.md#deleteApp) | **DELETE** /apps/{appID} | Delete An Application
*AppsApi* | [**getApp**](docs/AppsApi.md#getApp) | **GET** /apps/{appID} | Get Information For An Application
*AppsApi* | [**listApps**](docs/AppsApi.md#listApps) | **GET** /apps | Get A List Of Applications
*AppsApi* | [**updateApp**](docs/AppsApi.md#updateApp) | **PUT** /apps/{appID} | Update an Application
*CallApi* | [**fnsFnIDCallsCallIDGet**](docs/CallApi.md#fnsFnIDCallsCallIDGet) | **GET** /fns/{fnID}/calls/{callID} | Get call information
*CallApi* | [**fnsFnIDCallsGet**](docs/CallApi.md#fnsFnIDCallsGet) | **GET** /fns/{fnID}/calls | Get a fns calls.
*CallApi* | [**getCallLogs**](docs/CallApi.md#getCallLogs) | **GET** /fns/{fnID}/calls/{callID}/log | Get logs for a call.
*FnsApi* | [**createFn**](docs/FnsApi.md#createFn) | **POST** /fns | Create A New Function
*FnsApi* | [**deleteFn**](docs/FnsApi.md#deleteFn) | **DELETE** /fns/{fnID} | Delete A Function
*FnsApi* | [**getFn**](docs/FnsApi.md#getFn) | **GET** /fns/{fnID} | Get Definition Of A Function
*FnsApi* | [**listFns**](docs/FnsApi.md#listFns) | **GET** /fns | Get A list Of Functions Within An Application
*FnsApi* | [**updateFn**](docs/FnsApi.md#updateFn) | **PUT** /fns/{fnID} | Update A Function
*LogApi* | [**getCallLogs**](docs/LogApi.md#getCallLogs) | **GET** /fns/{fnID}/calls/{callID}/log | Get logs for a call.
*TriggersApi* | [**createTrigger**](docs/TriggersApi.md#createTrigger) | **POST** /triggers | Create A New Trigger.
*TriggersApi* | [**deleteTrigger**](docs/TriggersApi.md#deleteTrigger) | **DELETE** /triggers/{triggerID} | Delete A Trigger
*TriggersApi* | [**getTrigger**](docs/TriggersApi.md#getTrigger) | **GET** /triggers/{triggerID} | Get Definition Of A Trigger
*TriggersApi* | [**listTriggers**](docs/TriggersApi.md#listTriggers) | **GET** /triggers | Get A List Of Triggers Within An Application Or Function
*TriggersApi* | [**updateTrigger**](docs/TriggersApi.md#updateTrigger) | **PUT** /triggers/{triggerID} | Update A Trigger


## Documentation for Models

- [App](docs/App.md)
- [AppWrapper](docs/AppWrapper.md)
- [AppsWrapper](docs/AppsWrapper.md)
- [AppList](docs/AppList.md)
- [Call](docs/Call.md)
- [CallWrapper](docs/CallWrapper.md)
- [CallsWrapper](docs/CallsWrapper.md)
- [CallList](docs/CallList.md)
- [Error](docs/Error.md)
- [ErrorBody](docs/ErrorBody.md)
- [Fn](docs/Fn.md)
- [FnList](docs/FnList.md)
- [Log](docs/Log.md)
- [LogWrapper](docs/LogWrapper.md)
- [Route](docs/Route.md)
- [RouteWrapper](docs/RouteWrapper.md)
- [RoutesWrapper](docs/RoutesWrapper.md)
- [Stat](docs/Stat.md)
- [StatMetrics](docs/StatMetrics.md)
- [Version](docs/Version.md)
- [Trigger](docs/Trigger.md)
- [TriggerList](docs/TriggerList.md)


## Documentation for Authorization
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.2
2.0.0
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,11 @@ if(hasProperty('target') && target == 'android') {
}

dependencies {
compile 'io.swagger:swagger-annotations:1.5.15'
compile 'io.swagger:swagger-annotations:1.5.17'
compile 'com.squareup.okhttp:okhttp:2.7.5'
compile 'com.squareup.okhttp:logging-interceptor:2.7.5'
compile 'com.google.code.gson:gson:2.8.1'
compile 'joda-time:joda-time:2.9.9'
compile 'io.gsonfire:gson-fire:1.8.0'
compile 'org.threeten:threetenbp:1.3.5'
testCompile 'junit:junit:4.12'
}
5 changes: 3 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ lazy val root = (project in file(".")).
publishArtifact in (Compile, packageDoc) := false,
resolvers += Resolver.mavenLocal,
libraryDependencies ++= Seq(
"io.swagger" % "swagger-annotations" % "1.5.15",
"io.swagger" % "swagger-annotations" % "1.5.17",
"com.squareup.okhttp" % "okhttp" % "2.7.5",
"com.squareup.okhttp" % "logging-interceptor" % "2.7.5",
"com.google.code.gson" % "gson" % "2.8.1",
"joda-time" % "joda-time" % "2.9.9" % "compile",
"org.threeten" % "threetenbp" % "1.3.5" % "compile",
"io.gsonfire" % "gson-fire" % "1.8.0" % "compile",
"junit" % "junit" % "4.12" % "test",
"com.novocode" % "junit-interface" % "0.10" % "test"
)
Expand Down
7 changes: 6 additions & 1 deletion docs/App.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **String** | App ID | [optional]
**name** | **String** | Name of this app. Must be different than the image name. Can ony contain alphanumeric, -, and _. | [optional]
**config** | **Map&lt;String, String&gt;** | Application configuration, applied to all routes. | [optional]
**config** | **Map&lt;String, String&gt;** | Application function configuration, applied to all Functions. | [optional]
**annotations** | **Map&lt;String, Object&gt;** | Application annotations - this is a map of annotations attached to this app, keys must not exceed 128 bytes and must consist of non-whitespace printable ascii characters, and the seralized representation of individual values must not exeed 512 bytes. | [optional]
**syslogUrl** | **String** | A comma separated list of syslog urls to send all function logs to. supports tls, udp or tcp. e.g. tls://logs.papertrailapp.com:1 | [optional]
**createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | Time when app was created. Always in UTC. | [optional]
**updatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | Most recent time that app was updated. Always in UTC. | [optional]



11 changes: 11 additions & 0 deletions docs/AppList.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

# AppList

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**nextCursor** | **String** | Cursor to send with subsequent request to receive the next page, if non-empty. | [optional]
**items** | [**List&lt;App&gt;**](App.md) | |



Loading