The Wayback Machine - https://web.archive.org/web/20201002130721/https://github.com/cabify/api-docs
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
v2
 
 
v3
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Cabify Business API Documentation

This project contains all the documentation used to integrate with our business api.

How to test in local

  1. Clone the project (use the SSH instead of HTTPS)
  2. Go to [api-docs/v3]$ and run bundle install
    1. If using asdf and getting the asdf: No preset version installed for command bundle error, install the bundle gem with gem install bundler
    2. If that still doesn't work: gem update --system
  3. In the same folder [api-docs/v3]$ run ENVIRONMENT=local ruby lib/graphql-docs.rb each time you want Ruby to generate the static output for the website
  4. Use python to deploy an http server
    1. cd to [/api-docs2/v3/output]$
    2. Python 2: python -m SimpleHTTPServer 8080
    3. Python 3: python -m http.server 8080 (your python 3 may be named python3 if you have both versions installed)
  5. Open the browser and check localhost:8080

NOTE: If you're being redirected to developers.cabify.com/ look for <meta http-equiv="refresh" content="0; URL=http://developers.cabify.com/v3"/> and comment it. Don't forget to uncomment it before commiting any changes

Remember to run ENVIRONMENT=local ruby lib/graphql-docs.rb each time you apply a change to your static html/css etc. in order to generate the updated static output

NOTE: there's no need to reset the server also

About

Documentation for Cabify software's APIs

Topics

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.