Skip to content

Commit

Permalink
Version 3.0.2 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
ColtonProvias committed Oct 5, 2015
1 parent d7f8062 commit afd358d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 23 deletions.
9 changes: 9 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# SQLAlchemy-JSONAPI Changelog

## 3.0.2

*2015-10-05*

* Removed hard dependency on Flask, as suggested by @bladams in pull request #10
* Fixed autoflush on collection post as proposed by @emilecaron in issue #13
* Fixed issues when encountering integer IDs #11
* Made API Type Name overridable. #9

## 3.0.1

*2015-09-22*
Expand Down
24 changes: 1 addition & 23 deletions sqlalchemy_jsonapi/flaskext.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,32 +13,10 @@
from blinker import signal
from flask import make_response, request

from .constants import Endpoint, Method
from .errors import BaseError, MissingContentTypeError
from .serializer import JSONAPI

try:
from enum import Enum
except ImportError:
from enum34 import Enum


class Method(Enum):
""" HTTP Methods used by JSON API """

GET = 'GET'
POST = 'POST'
PATCH = 'PATCH'
DELETE = 'DELETE'


class Endpoint(Enum):
""" Four paths specified in JSON API """

COLLECTION = '/<api_type>'
RESOURCE = '/<api_type>/<obj_id>'
RELATED = '/<api_type>/<obj_id>/<relationship>'
RELATIONSHIP = '/<api_type>/<obj_id>/relationships/<relationship>'


class JSONAPIEncoder(json.JSONEncoder):
""" JSONEncoder Implementation that allows for UUID and datetime """
Expand Down

0 comments on commit afd358d

Please sign in to comment.