Pho Networks REST API
This Python package is automatically generated by the Swagger Codegen project:
- API version: 1.1.1
- Package version: 1.1.1
- Build package: class io.swagger.codegen.languages.PythonClientCodegen
Python 2.7 and 3.4+
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 pho_client
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 pho_client
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import pho_client
from pho_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = pho_client.DefaultApi()
value = 'value_example' # str | The value to update the key with. (optional)
try:
# updates (or creates) an attribute
api_response = api_instance.add_attribute(value=value)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->add_attribute: %s\n" % e)
All URIs are relative to https://virtserver.swaggerhub.com/phonetworks/server-rest/1.1.0
Class | Method | HTTP request | Description |
---|---|---|---|
DefaultApi | add_attribute | POST /{uuid}/attribute/{key} | updates (or creates) an attribute |
DefaultApi | del_attribute | DELETE /{uuid}/attribute/{key} | deletes an attribute |
DefaultApi | del_entity | DELETE /{uuid} | deletes an entity |
DefaultApi | get_all_edges | GET /{uuid}/edges/all | retrieves the edges of a node |
DefaultApi | get_attribute | GET /{uuid}/attribute/{key} | retrieves the value of an entity attribute |
DefaultApi | get_attributes | GET /{uuid}/attributes | retrieves the existing attribute keys of an entity (edge or node) |
DefaultApi | get_edge | GET /edge/{uuid} | retrieves an edge |
DefaultApi | get_edge_getters | GET /{uuid}/edges/getters | retrieves the edge getter methods of a node |
DefaultApi | get_edge_setters | GET /{uuid}/edges/setters | retrieves the edge setter methods of a node |
DefaultApi | get_founder | GET /founder | retrieves the Graph Founder |
DefaultApi | get_graph | GET /graph | retrieves the main Graph |
DefaultApi | get_incoming_edges | GET /{uuid}/edges/in | retrieves the incoming edges of a node |
DefaultApi | get_node | GET /{uuid} | retrieves a node |
DefaultApi | get_node_edge | GET /{uuid}/{edge} | edge getter |
DefaultApi | get_outgoing_edges | GET /{uuid}/edges/out | retrieves the outgoing edges of a node |
DefaultApi | get_space | GET /space | retrieves the Space |
DefaultApi | get_type | GET /{uuid}/type | fetches entity type |
DefaultApi | make_actor | POST /actor | creates an Actor object |
DefaultApi | make_edge | POST /{uuid}/{edge} | creates an edge |
DefaultApi | set_attribute | PUT /{uuid}/attribute/{key} | updates (or creates) an attribute |
- Edge
- InlineResponse200
- InlineResponse2001
- InlineResponse2002
- InlineResponse2003
- InlineResponse2003In
- InlineResponse2004
- Node
- NodeEdge
All endpoints do not require authorization.