# -*- coding: utf-8 -*-

"""
traceview.annotation

This module contains the objects associated with Annotation API resources.

http://dev.appneta.com/docs/api-v2/annotations.html

"""

from .resource import Resource


class Annotate(Resource):

    PATH = "log_message"

class Annotations(Resource):

    PATH = "annotations"

@@ -224,17 +224,19 @@
  Annotat
-e
+ion
 (Resourc
@@ -300,24 +300,28 @@
 ):%0A%0A    PATH
+_ALL
  = %22annotati
@@ -325,8 +325,371 @@
 ations%22%0A
+    PATH_BY_APP = %22app/%7Bapp%7D/annotations%22%0A%0A    def get(self, app=None, *args, **kwargs):%0A        %22%22%22 Get annotations.%0A%0A        :param app: (optional) The app name.%0A%0A        %22%22%22%0A        if app:%0A            self.path = self.PATH_BY_APP.format(app=app)%0A        else:%0A            self.path = self.PATH_ALL%0A        return super(Annotations, self).get(*args, **kwargs)%0A

Update annotation module #12