Giter Club home page Giter Club logo

azure-api-mgt-resources's Introduction

azure-api-mgt-resources

This repository contains all relevant assets required to follow the "Azure API Management" series of blog posts at https://devtasks.blogspot.com/2017/05/azure-api-management.html

getting started

You can host the contents of the db.json file using the following commands (assuming you have nodejs/npm installed)

npm install -g json-server

npm install -g bootprint

npm install -g bootprint-openapi

bootprint openapi https://raw.githubusercontent.com/rohit-lakhanpal/azure-api-mgt-resources/master/swagger.json public

wget https://raw.githubusercontent.com/rohit-lakhanpal/azure-api-mgt-resources/master/db.json

json-server --port 8080 --watch db.json & disown

If all your pre-requisites are met, you should now be able to host apis based off the db.json.

root@usw2-apidemo-server01:~# npm install -g json-server
...
root@usw2-apidemo-server01:~# npm install -g bootprint
...
root@usw2-apidemo-server01:~# npm install -g bootprint-openapi
...
root@usw2-apidemo-server01:~# wget https://raw.githubusercontent.com/rohit-lakhanpal/azure-api-mgt-resources/master/db.json
root@usw2-apidemo-server01:~# json-server --watch db.json --port 8080 & disown
[1] 22862
root@usw2-apidemo-server01:~#
  \{^_^}/ hi!

  Loading db.json
  Done

  Resources
  http://localhost:8080/posts
  http://localhost:8080/comments
  http://localhost:8080/albums
  http://localhost:8080/photos
  http://localhost:8080/users
  http://localhost:8080/todos

  Home
  http://localhost:8080

  Type s + enter at any time to create a snapshot of the database
  Watching...

azure-api-mgt-resources's People

Contributors

rohit-lakhanpal avatar

Stargazers

 avatar

Watchers

James Cloos 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.