Remove: Prototype app.py content

Signed-off-by: Kevin Conway <kevinjacobconway@gmail.com>
Remove: Prototype schema.py content

Signed-off-by: Kevin Conway <kevinjacobconway@gmail.com>
Add: Engine.py file

This file should contain the SQLAlchemy engine to be used for the
running app.

Signed-off-by: Kevin Conway <kevinjacobconway@gmail.com>
Add: Serialization module

This module will contain the function used to serialize/deserialize
any content being sent or recieved.

Signed-off-by: Kevin Conway <kevinjacobconway@gmail.com>
Add: Status module

This module will contain macros for returning serialized content
using a particular HTTP status code.

Signed-off-by: Kevin Conway <kevinjacobconway@gmail.com>
Add: Module docstrings for all modules.

Signed-off-by: Kevin Conway <kevinjacobconway@gmail.com>
Add: Initial test engine

This engine simple creates a local sqlite for use in testing.

Signed-off-by: Kevin Conway <kevinjacobconway@gmail.com>
Add: Schema module

This module generates the SQLAlchemy Table objects needed for the
dynamic queries in the app module.

Signed-off-by: Kevin Conway <kevinjacobconway@gmail.com>
Add: Initial unit tests

The included tests are very basic. Mostly they just check that the
most basic constraints defined by docstrings are enforced. More
tests should be added as development goes on, but these at least
get the ball rolling.

Signed-off-by: Kevin Conway <kevinjacobconway@gmail.com>
Change: README to reflect recent changes

Signed-off-by: Kevin Conway <kevinjacobconway@gmail.com>
Change: Test module import statements

Imports now reference the package by the name 'autorest' instead of
adding directories to the path at runtime.

Signed-off-by: Kevin Conway <kevinjacobconway@gmail.com>
Add: Serialization module content

This module uses the JSON library for serialization and
deserialization.

Signed-off-by: Kevin Conway <kevinjacobconway@gmail.com>
Add: Initial status module content

Signed-off-by: Kevin Conway <kevinjacobconway@gmail.com>
Add: Skeleton code for app.py

Signed-off-by: Kevin Conway <kevinjacobconway@gmail.com>
Fix: Incorrect serialization of date/datetime

The formatter was using the lower case %y resulting in only the last
two digits of the year to be outputted. It should now correctly render
the year as four digits.

Signed-off-by: Kevin Conway <kevinjacobconway@gmail.com>
Add: Collection GET handler

This handler responds with a list of all available instances of
a particular resource.

Signed-off-by: Kevin Conway <kevinjacobconway@gmail.com>
Add: Collection POST handler

This handler accepts a resource as input and records it in the
database. It does some basic validation of the data.

Signed-off-by: Kevin Conway <kevinjacobconway@gmail.com>
Fix: Missing 'id' attribute in POST return

Signed-off-by: Kevin Conway <kevinjacobconway@gmail.com>
Add: Collection PUT handler

This handler will replace the collection of resource instances with
one provided. The operation will rollback and return a 500 status
if any of the elements in the given collection do not validate
and save.

Signed-off-by: Kevin Conway <kevinjacobconway@gmail.com>
Fix: Missing checks for 404 in POST/PUT

Signed-off-by: Kevin Conway <kevinjacobconway@gmail.com>