NOTE: This repository has been archived and is no longer being maintained. Asana's API documentation is available at https://developers.asana.com/docs. To access up-to-date versions of Asana's OpenAPI Specifications, visit the openapi repository.
The Asana OpenAPI spec is currently used to generate our documentation. You can also use it to generate mock servers, client code, and many other things. You can read more about OpenAPI specs here.
The up-to-date Asana OpenAPI spec is in this repository. Here's a
link. See openapi for up-to-date OpenAPI Specifications.
If you find any issues or have any suggestions for our OpenAPI spec. Please create an issue in this repo or create a PR with the changes!
Commands should be run from the root of this repository.
You must be running macOS, and have homebrew available.
You can install all dependencies for building locally by running the following:
./bin/configure
This will install the following:
- asdf: a version manager used for other dependencies
note: it will not be added to your
$PATH
, but used by the scripts in this repo- asdf will install (defined:in
.tool-versions
)- node
- python
- ruby
- asdf will install (defined:in
- maven: java package manager for swagger
To build once:
make
To reset the working directory:
make clean
To build continouously upon changes and launch the local web server:
./bin/watch_and_serve_local_dev
Documentation will be accessible here (also included in the build output):
Internal Asanas: See https://app.asana.com/0/77076599077/1122503737028047/f and https://app.asana.com/0/0/1200652548580470/f before making any updates.
If the content you're changing is static (not generated from the OpenAPI spec):
- edit the
.md
files insource/includes/markdown
- if you're adding a markdown file, you'll also need to add it to
source/docs/index.html.md
- if you're adding a markdown file, you'll also need to add it to
If the content you're changing is in the OpenAPI spec:
- modify the OAS in
CODEZ
- to quickly test something, make the changes in
def/asana_oas.yaml
. Just remember to put the changes inCODEZ
if you want them to not be overridden on the next build.
- to quickly test something, make the changes in
- run
make
. - verify your changes with
git diff
. Run - run
./bin/watch_and_serve_local_dev
- confirm the changes in the local dev environment by going to the url in the
bin/watch_and_serve_local_dev
output
Merging these changes into master causes them to be deployed.
Make changes in source/stylesheets/_variables.scss because the changes here will be valid with future versions of Slate.
If you need to make more complex css changes, edit screen.css.scss or print.css.scss but keep in mind that these will need to be merged for new versions of Slate.
This should happen automatically when changes are merged into this repo.
If you need to do this manually, then run the deploy.sh
script. This will use
your local git credentials and local /build
folder to push a build to a branch
named gh-pages (Where the docs are hosted).
The public OpenAPI spec is located at
defs/asana_oas.yaml
To generate markdown from the spec, we use a forked widdershins.
Why did we fork widdershins? For our use case, we needed things like denormalizing and dereferencing. We tried doing this to the spec & using an unforked widdershins, but as we progressed with client library generation, it made more sense to keep a clean spec and do this doc-specific editing in the tooling. A potential future is pulling out this logic to a "openapi spec transformer" to prep the spec for widdershins, but there will be a trade-offs to consider.