Git Product home page Git Product logo

api-training's Introduction

API Training

Some RESTful API training using Jupyter Notebooks.

Contents

See instructions for installing Jupyter below and then:

demo-clientid-client

Here are some notebooks that demonstrate using the demo-clientid API and the OAuth 2.0 Client Credentials grant:

demo-echo-client

Here's a notebook that demonstrates using the demo-echo API with the Authorization Code grant:

demo-jsonapi-client

This set of notebooks demonstrates the {json:api} RESTful request/response standard. See https://github.com/n2ygk/mulesoft-demo-jsonapi for a demo server that runs on Mulesoft. This client uses said deployed server. Credentials for it are in the notebook. Don't worry; it's rate-limited.

Installing and running Jupyter on your laptop

Installing Jupyter gets you a basic Python system:

git clone [email protected]:n2ygk/api-training.git
cd api-training
pip3 -m venv env
source env/bin/activate
pip3 install -r requirements.txt
jupyter notebook

Your browser will open a new window with the Jupyter notebook browser.

Adding JavaScript (node.js)

See https://github.com/n-riesco/ijavascript

For MacOS (need a back-level version of node.js to work with ijavascript):

brew install node@6
brew link --force node@6
sudo pip install --upgrade pyzmq jupyter
sudo npm install -g ijavascript
ijsinstall

Modules installed with npm install -g do not work. You have to make them local to the home directory of your juptyer server (e.g. this directory) and the node_modules directory must pre-exist or npm will complain. See package.json for the list of added modules.

mkdir node_modules
npm install

Adding R

This has nothing to do with APIs -- just playing around with Jupyter

See the instructions at https://irkernel.github.io/installation/

install.packages(c('repr', 'IRdisplay', 'evaluate', 'crayon', 'pbdZMQ', 'devtools', 'uuid', 'digest'))
devtools::install_github('IRkernel/IRkernel')
IRkernel::installspec(user = FALSE)

I've added two examples from the Stats course I took, including the data files they need.

Author

Alan Crosswell

Copyright (c) 2017 The Trustees of Columbia University in the City of New York

LICENSE

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

api-training's People

Contributors

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