Best Practices

Some best practices for using RESTArt are recommendated here.

Project structure

There are many different ways to organize your RESTArt API, but here I will describe one that scales well with larger applications and maintains a nice level organization.

Here’s an example directory structure:

    blog/               # contains the central API object              # contains the WSGI application
            posts/           # contains logic for /posts
            tags/            # contains logic for /tags
    tests/                   # optional, contains the test code

See examples/blog for details.