Giter Site home page Giter Site logo

foglight-rest-api-shell-sample-code's Introduction

This is an linux shell code sample for foglight restful api. Currently we only provide json version samples here.

Files

File Name Description
foglight-restfulapi.sh shell script contains the sample codes.
data-topology-query.json post json data for query topology.
jq a tool used for parsing json, please refer to next section for this tool.

JQ Tool

This is a 3rd party library for parsing json data. In our sample code, we provide default linux x86_64 jq tool. You need to download JQ tool from JQ Tool Download Site if your platform is not linux x86_64. Then you need to rename your downloaded jq file to jq and override the one we provided here.

Posting Data

If you invoke the restful api which contains post any data to the fms server. You need to put your json data in a file just like data-topology-query.json. And then call dorequest as below: dorequest <host> <port> <suburl> <authtoken> POST <file location> You can find a sample for it in this .sh file.

foglight-rest-api-shell-sample-code's People

Contributors

janewzhwang avatar

Watchers

 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.