from jsonapi.resource import Resource
from jsonapi.api import API

api = API()


@api.register
class AuthorResource(Resource):
    class Meta:
        model = 'testapp.Author'


@api.register
class PostWithPictureResource(Resource):
    class Meta:
        model = 'testapp.PostWithPicture'


@api.register
class PostResource(Resource):
    class Meta:
        model = 'testapp.Post'


@api.register
class CommentResource(Resource):
    class Meta:
        model = 'testapp.Comment'

@@ -378,16 +378,105 @@
 .Post'%0A%0A
+    @staticmethod%0A    def dump_document_title(value):%0A        return value.capitalize()%0A%0A
 %0A@api.re

add example of field serialization to resources of testapp