Skip to content

Contract Annotation Pull API

hello-deepak edited this page Aug 3, 2015 · 6 revisions

It provide all the annotations of contract text.

Resource URI /contracts/{id}/annotations

Resource Properties

Property Description
id A integer that uniquely identifies this Annotations.

Response Attribute

[  
   {  
      quote: String,
      text: String,
      tag: Array,
      page_no: Integer,
      ranges:{  
         endOffset: Integer,
         start: String,
         end: String,
         startOffset:Integer
      }
   },
]

HTTP GET

Request

curl -GET http://rc-site-demo.elasticbeanstalk.com/api/es/contracts/32/annotations

Response

HTTP Status Code: 200

[  
   {  
      quote:"Rio Tinto International Holdings Limited",
      text:"Company",
      tag:[  
         "Local-Company-Name",
         "holdings",
         "limited"
      ],
      page_no:2,
      ranges:{  
         endOffset:41,
         start:"/div[1]/div[2]/div[1]/div[14]",
         end:"/div[1]/div[2]/div[1]/div[14]",
         startOffset:1
      }
   },
   {  
      quote:"MONGOLIA",
      text:"country",
      tag:[  

      ],
      page_no:1,
      ranges:{  
         start:"/div[1]/div[2]/div[1]/div[4]",
         startOffset:19,
         end:"/div[1]/div[2]/div[1]/div[4]",
         endOffset:27
      }
   }
]

Clone this wiki locally