Skip to content

GET Concession By ID

Ksenyia edited this page Feb 2, 2017 · 3 revisions

It gives the data of concession like concession title, aliases, country, commodities and so on.

Resource URI

/concessions/{id}

Resource Properties

Property Description
id A string that uniquely identifies the concession.

Response Attribute

{
  concession: {
    _id: String,
    concession_name: String,
    concession_established_source: String,
    concession_company_share: [
      {
        number: Float,
        _id: String,
        iso2: String
      }
    ],
    concession_country: [
      {
        _id: String,
        iso2: String,
        name: String
      }
    ],
    concession_aliases: Array,
    description: String,
    concession_status: Array,
    concession_commodity: [
      {
        _id: String,
        commodity_name: String,
        commodity_type: String,
        commodity_id: String,
        commodity_aliases: Array
      }
    ],
    oo_url_api: String,
    oo_url_wiki: String,
    oo_details: String,
    proj_coordinates: [
      {
        _id: String,
        lat: Float,
        lng: Float,
        message: String,
        timestamp: String,
        type: String
      }
    ],
    contracts: [
      {
        _id: String,
        contract_title: String
      }
    ]
  },
  errorList: Array
}

  

HTTP GET

Default Request

curl -GET http://end-point-uri/concessions/56fcd3bcbe65cd01000bd563

Response

HTTP Status Code 200

{
  concession: {
    _id: "585bb9118bb3aa000f2118ea",
    concession_name: "OPL-321",
    concession_established_source: "585bb9088bb3aa000f211567",
    concession_company_share: [
      {
        number: 0.1,
        _id: "585bb9098bb3aa000f2115d8",
        iso2: "Equator Exploration"
      }
    ],
    concession_country: [
      {
        _id: "5808851f5e0ba42fc79bd5b7",
        iso2: "NG",
        name: "Nigeria"
      }
    ],
    concession_aliases: [],
    description: null,
    concession_status: [],
    concession_commodity: [
      {
        _id: "5808851f5e0ba42fc79bd511",
        commodity_name: "Oil",
        commodity_type: "oil_and_gas",
        commodity_id: "oil",
        commodity_aliases: []
      }
    ],
    oo_url_api: null,
    oo_url_wiki: null,
    oo_details: null,
    proj_coordinates: [
      {
        _id: "585bb9118bb3aa000f2118da",
        lat: 3.557062,
        lng: 7.456029,
        message: "Usan",
        timestamp: "2016-12-22T11:17:39.000Z",
        type: "field"
      }
    ],
    contracts: [
      {
        _id: "585bb9118bb3aa000f2118e9",
        contract_title: "NG_gen_contract_14"
      }
    ]
  },
  errorList: []
}
  
Clone this wiki locally