Skip to content
man-git007 edited this page Feb 27, 2017 · 15 revisions

It gives the page-wise text of contract pdf. There's an optional page filter, which is used to get the page text of that particular page. In absence of the page filter, it gives all the pages in one call.

Resource URI

/contract/{id}/text?page={page_no}

Resource Properties

Property Description
id A integer that uniquely identifies this Contract.
page Optional page number.

Response Attribute

{
  results: [{  
      contract_id: Integer,
      id: Integer,
      open_contracting_id: String,
      text: String,
      pdf_url: String
      page_no: Integer,
   }],
   total:Integer
}

HTTP GET

Default Request

curl -GET http://end-point-uri/contract/999/text

Response

HTTP Status Code 200

{  
   "total":7,
   "result":[
      {  
         "contract_id":999,
         "id":"33559",
         "open_contracting_id": "ocds-591adf-9547768832", 
         "text":"valuation, development and production operations arrangement 
            \nand it shall cover Petroleum Operations in the Contract Area. The rights and obligations of 
            \nthe Parties under this Agreement shall take effect from the Effective Date. Albpetrol shall 
            \nnotify Contractor of the date of the approval of the Council of Ministers within five (5) 
            \nworking days of its occurrence. 
            \n2.2 
            \nSubject to the terms and conditions of this Agreement and Article 2.3 and 2.4, 
            \nAlbpetrol hereby irrevocably appoints and constitutes Contractor solely and exclusively to 
            \nconduct Petroleum Operations in the Project Area during the period specified herein, and to 
            \nexpand the Project Area in accordance with this Agreement to include any lands within the 
            \nContract Area. 
            \n2.3 
            \nIn accordance with the Section 3.2 of the Licence Agreement, the Parties have the 
            \nexclusive right: 
            \n(a) 
            \n 
            \nto conduct Petroleum Operations in the Contract Area; 
            \n 
            \n(b) 
            \n 
            \nto treat, store and transport the Petroleum extracted from the Contract Area; 
            \n 
            \n(c) 
            \n 
            \nto construct and install all facilities and equipment (including storage, 
            \ntreatment, pipelines and other means of transportation) required for the 
            \nPetroleum Operations; and 
            \n 
            \n(d) 
            \n 
            \nto use for its own account, sell, exchange, export, realize or possess the 
            \nPetroleum extracted from the Contract Area, and take Profit from and title to 
            \nsuch extracted Petroleum subject to a right of requisition in the event of an 
            \nemergency to supply or contribute to the supply of local market at 
            \ninternational prices at the time of request. 
            \n 
            \nIn accordance with the Section 3.2 of the Licence Agreement, and notwithstanding Article 
            \n2.3(a), (b), (c), and (d), any other contractor may conduct petroleum operations for 
            \ndevelopment and production of Petroleum outside of the Contract Area in accordance with 
            \nany agreement reached between a contractor and AKBN. The Ministry, Albpetrol, AKBN 
            \nand the contractor shall ensure that those petroleum operations will not interfere and 
            \nunreasonably prevent the normal development of Petroleum Operations of the Contractor in 
            \nthe Contract Area, nor shall Contractor unreasonably prevent or interfere with the petroleum 
            \noperations of such other contractor. 
            \n2.4 
            \nAlbpetrol has the right to conduct petroleum operations for its own account on any 
            \nportion of the Contract Area which has not been designated as the Project Area until such 
            \ntime as Contractor requires Albpetrol to cease such operations. Any part of the Contract Area 
            \nmay be selected by Contractor to become the Evaluation Area, a New Evaluation Area or the 
            \nDevelopment and Production Area in accordance with this Agreement, regardless of whether 
            \nAlbpetrol is conducting petroleum operations in that area. 
            \n 
            \nPA_SPG_CaMo 
            \n 
            \n\f",
         "pdf_url":"https:\/\/rc-demo.s3-us-west-2.amazonaws.com\/44\/10.pdf",
         "page_no":10
      },
      
     
   ]
}

Filter Request

curl -GET http://end-point-uri/contract/999/text?page=5

Response

HTTP Status Code 200

{  
   "total":1,
   "result":[
      {  
         "contract_id":999,
         "id":"33559",
         "open_contracting_id": "ocds-591adf-9547768832"
         "text":"
            \nThis Agreement is an evaluation, development and production operations arrangement 
            \nand it shall cover Petroleum Operations in the Contract Area. The rights and obligations of 
            \nthe Parties under this Agreement shall take effect from the Effective Date. Albpetrol shall 
            \nnotify Contractor of the date of the approval of the Council of Ministers within five (5) 
            \nworking days of its occurrence. 
            \n2.2 
            \nSubject to the terms and conditions of this Agreement and Article 2.3 and 2.4, 
            \nAlbpetrol hereby irrevocably appoints and constitutes Contractor solely and exclusively to 
            \nconduct Petroleum Operations in the Project Area during the period specified herein, and to 
            \nexpand the Project Area in accordance with this Agreement to include any lands within the 
            \nContract Area. 
            \n2.3 
            \nIn accordance with the Section 3.2 of the Licence Agreement, the Parties have the 
            \nexclusive right: 
            \n(a) 
            \n 
            \nto conduct Petroleum Operations in the Contract Area; 
           
         
         
            \noperations of such other contractor. 
            \n2.4 
            \nAlbpetrol has the right to conduct petroleum operations for its own account on any 
            \nportion of the Contract Area which has not been designated as the Project Area until such 
            \ntime as Contractor requires Albpetrol to cease such operations. Any part of the Contract Area 
            \nmay be selected by Contractor to become the Evaluation Area, a New Evaluation Area or the 
            \nDevelopment and Production Area in accordance with this Agreement, regardless of whether 
            \nAlbpetrol is conducting petroleum operations in that area. 
            \n 
            \nPA_SPG_CaMo 
            \n 
            \n\f",
         "pdf_url":"https:\/\/rc-demo.s3-us-west-2.amazonaws.com\/44\/10.pdf",
         "page_no":5
      },
   ]
}