Giter Club home page Giter Club logo

apidocs's Introduction

Performance Horizon API Docs

Build Status

The PH api documentation is written in api blueprint.

Read and interact with our docs at apiary.io.

We test our docs with dredd.

We would welcome all contributions to our docs, to get involved, follow the setup instructions below and hit us with a pull request.

Local Install (MacOS)

Dependencies

  • Ruby 1.8 +
  • Brew

Instructions

1 - Clone this repository

2 - Install Node.js, NPM and NVM globally by running:

bash
brew install node npm nvm

3 - Install the apiaryio Ruby Gem globally:

# With RVM or rbenv
gem install apiaryio

# Without RVM or rbenv
sudo gem install apiaryio

4 . Install the Node.js modules. Run the below in the directory that this repository was cloned into:

npm install

Preview

You can preview the docs locally, this will open up your default browser and render the docs. Please give the docs time to render, they require external assets.

MacOS

make && apiary preview --path="apiary.apib"

Ubuntu

./ubuntu-build

Contributing

Edits

Any edits to existing endpoints should be made within the relevant file(s) and submitted via Pull Requests.

New Endpoints

We use transclusion to ensure the .apib files are easily readable and maintainable. If you are documenting a new endpoint, you should:

  • Create a new file named after the endpoint in /src which contains all the endpoint information
  • For any new Data Structures directly related to the new endpoint, document these in a new file in /data
  • If you refactor commonly used, simple entities (referenced by multiple endpoints) into a Data Structure, reference these in /data/common.apib
  • To include your new files into the master document, modify /src/apiary.apib to flag them for hercule
  • Submit a Pull Request

apidocs's People

Contributors

pete001 avatar pksunkara avatar webmasterjunkie avatar reed2903 avatar harnasz avatar benhawker avatar ninjapenguin avatar vertexbz 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.