Skip to content

fnproject/fn_python

Repository files navigation

swagger-client

The open source serverless platform.

This Python package is automatically generated by the Swagger Codegen project:

  • API version: 0.2.1
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.languages.PythonClientCodegen

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

pip install git+https://github.com//.git

(you may need to run pip with root permission: sudo pip install git+https://github.com//.git)

Then import the package:

import swagger_client 

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import swagger_client

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.AppsApi()
app = 'app_example' # str | Name of the app.

try:
    # Delete an app.
    api_instance.apps_app_delete(app)
except ApiException as e:
    print("Exception when calling AppsApi->apps_app_delete: %s\n" % e)

Documentation for API Endpoints

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

Class Method HTTP request Description
AppsApi apps_app_delete DELETE /apps/{app} Delete an app.
AppsApi apps_app_get GET /apps/{app} Get information for a app.
AppsApi apps_app_patch PATCH /apps/{app} Updates an app.
AppsApi apps_get GET /apps Get all app names.
AppsApi apps_post POST /apps Post new app
CallApi apps_app_calls_call_get GET /apps/{app}/calls/{call} Get call information
CallApi apps_app_calls_call_log_delete DELETE /apps/{app}/calls/{call}/log Delete call log entry
CallApi apps_app_calls_call_log_get GET /apps/{app}/calls/{call}/log Get call logs
CallApi apps_app_calls_get GET /apps/{app}/calls Get app-bound calls.
LogApi apps_app_calls_call_log_delete DELETE /apps/{app}/calls/{call}/log Delete call log entry
LogApi apps_app_calls_call_log_get GET /apps/{app}/calls/{call}/log Get call logs
RoutesApi apps_app_routes_get GET /apps/{app}/routes Get route list by app name.
RoutesApi apps_app_routes_post POST /apps/{app}/routes Create new Route
RoutesApi apps_app_routes_route_delete DELETE /apps/{app}/routes/{route} Deletes the route
RoutesApi apps_app_routes_route_get GET /apps/{app}/routes/{route} Gets route by name
RoutesApi apps_app_routes_route_patch 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 apps_app_routes_route_put 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

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published