Code Monkey home page Code Monkey logo

ngsi-sdk-python's Introduction

swagger_client

NGSI V2 API

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

  • API version: v2
  • Package version: 1.0.0
  • Build package: class 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

# Configure API key authorization: fiware_token
swagger_client.configuration.api_key['X-Auth-Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-Auth-Token'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.APIEntryPointApi()

try:
    api_response = api_instance.retrieve_api_resources()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling APIEntryPointApi->retrieve_api_resources: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://orion.lab.fiware.org:1026/v2

Class Method HTTP request Description
APIEntryPointApi retrieve_api_resources GET /
AttributeValueApi get_attribute_value GET /entities/{entityId}/attrs/{attrName}/value
AttributeValueApi update_attribute_value PUT /entities/{entityId}/attrs/{attrName}/value
AttributesApi get_attribute_data GET /entities/{entityId}/attrs/{attrName}
AttributesApi remove_a_single_attribute DELETE /entities/{entityId}/attrs/{attrName}
AttributesApi update_attribute_data PUT /entities/{entityId}/attrs/{attrName}
BatchOperationsApi query POST /op/query
BatchOperationsApi update POST /op/update
EntitiesApi create_entity POST /entities
EntitiesApi list_entities GET /entities
EntitiesApi remove_entity DELETE /entities/{entityId}
EntitiesApi replace_all_entity_attributes PUT /entities/{entityId}/attrs
EntitiesApi retrieve_entity GET /entities/{entityId}
EntitiesApi retrieve_entity_attributes GET /entities/{entityId}/attrs
EntitiesApi update_existing_entity_attributes PATCH /entities/{entityId}/attrs
EntitiesApi update_or_append_entity_attributes POST /entities/{entityId}/attrs
SubscriptionsApi create_a_new_subscription POST /subscriptions
SubscriptionsApi delete_subscription DELETE /subscriptions/{subscriptionId}
SubscriptionsApi retrieve_subscription GET /subscriptions/{subscriptionId}
SubscriptionsApi retrieve_subscriptions GET /subscriptions
SubscriptionsApi update_subscription PATCH /subscriptions/{subscriptionId}
TypesApi retrieve_entity_type GET /types/{entityType}
TypesApi retrieve_entity_types GET /types/

Documentation For Models

Documentation For Authorization

fiware_token

  • Type: API key
  • API key parameter name: X-Auth-Token
  • Location: HTTP header

Author

ngsi-sdk-python's People

Contributors

chicco785 avatar

Watchers

James Cloos avatar Júlio Zinga 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.