You're going to need:
- Ruby, version 1.9.3 or newer
- Bundler — If Ruby is already installed, but the
bundle
command doesn't work, just rungem install bundler
in a terminal.
- Fork this repository on Github.
- Clone your forked repository (not our original one) to your hard drive with
git clone https://github.com/YOURUSERNAME/todoist-api.git
cd todoist-api
- Install all dependencies:
bundle install
(abundle update
maybe needed before that) - Start the test server:
bundle exec middleman server
You can now see the docs at http://localhost:4567. And as you edit source/index.md
, your server should automatically update.
Now that all is setup in your machine, you'll probably want to learn more about the Slate template, which is used for this API documentation. There is a lot of articles on it at the Slate wiki.
rake build
"Sync API request" - We will use capitalized "Sync" word to refer to all requests made to the sync API endpoint (https://todoist.com/API/v6/sync)
When describing a JSON data, make sure you use the terms that is consistent to the spec. (i.e. Use "array", not "list". Use "object", not "dictionary").