Giter Site home page Giter Site logo

apiguide's Introduction

EDGE10 API Guide

The EDGE10 API allows developers to query and manipulate data and configuration with an EDGE10 Online environment.

This guide serves as an introduction to a few key principles. For full API documentation you can navigate to http://[your site address]/swagger.

Basics

All API methods are accessible over HTTP using your client library of choice. This documentation includes JavaScript samples for a node-based implementation but the calls will work no matter what client language you are using.

All calls are made with a combination of a resource URL (e.g. /api/session/[session id]) and one of 4 HTTP verbs:

  • GET to retrieve or query data
  • POST to create new data
  • PUT to update existing data
  • DELETE to delete data

There are some exceptions to these rules, but these will serve as a baseline assumption.

Libraries

The samples in this documentation will use node along with a polyfill for ES6-style promises. All dependencies can be installed by running the following from the command line.

npm install

Using the Samples

The samples all use site-specific configuration which can be found in samples/sample-config.js. These should be updated to match your environment before running any of the sample files.

Once updated, you can run any sample using node, e.g.

node samples/api-key-authentication.js

edge10-request

Many of the samples use a helper function edge10-request that creates a request with some default values and with authentication details taken from the sample file.

Further Reading

apiguide's People

Contributors

jessesingleton avatar stevegreatrex avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.