Cabify Business API Documentation
This project contains all the documentation used to integrate with our business api.
How to test in local
- Clone the project (use the SSH instead of HTTPS)
- Go to
[api-docs/v3]$and runbundle install- If using
asdfand getting theasdf: No preset version installed for command bundleerror, install the bundle gem withgem install bundler - If that still doesn't work:
gem update --system
- If using
- In the same folder
[api-docs/v3]$runENVIRONMENT=local ruby lib/graphql-docs.rbeach time you want Ruby to generate the static output for the website - Use python to deploy an http server
- cd to
[/api-docs2/v3/output]$ - Python 2:
python -m SimpleHTTPServer 8080 - Python 3:
python -m http.server 8080(your python 3 may be named python3 if you have both versions installed)
- cd to
- 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

