1 Feature: Object details
 
   2     Testing different parameter options for details API.
 
   4     Scenario: Basic details
 
   5         When sending v1/details
 
   8         Then a HTTP 200 is returned
 
   9         And the result is valid json
 
  10         And the result has attributes geometry
 
  11         And the result has no attributes keywords,address,linked_places,parentof
 
  12         And the result contains
 
  16     Scenario: Basic details with pretty printing
 
  17         When sending v1/details
 
  18           | osmtype | osmid     | pretty |
 
  20         Then a HTTP 200 is returned
 
  21         And the result is valid json
 
  22         And the result has attributes geometry
 
  23         And the result has no attributes keywords,address,linked_places,parentof
 
  25     Scenario: Details with addressdetails
 
  26         When sending v1/details
 
  27           | osmtype | osmid     | addressdetails |
 
  29         Then a HTTP 200 is returned
 
  30         And the result is valid json
 
  31         And the result has attributes address
 
  33     Scenario: Details with linkedplaces
 
  34         When sending v1/details
 
  35           | osmtype | osmid  | linkedplaces |
 
  37         Then a HTTP 200 is returned
 
  38         And the result is valid json
 
  39         And the result has attributes linked_places
 
  41     Scenario: Details with hierarchy
 
  42         When sending v1/details
 
  43           | osmtype | osmid     | hierarchy |
 
  45         Then a HTTP 200 is returned
 
  46         And the result is valid json
 
  47         And the result has attributes hierarchy
 
  49     Scenario: Details with grouped hierarchy
 
  50         When sending v1/details
 
  51           | osmtype | osmid     | hierarchy | group_hierarchy |
 
  52           | W       | 297699560 | 1         | 1               |
 
  53         Then a HTTP 200 is returned
 
  54         And the result is valid json
 
  55         And the result has attributes hierarchy
 
  57     Scenario Outline: Details with keywords
 
  58         When sending v1/details
 
  59             | osmtype | osmid | keywords |
 
  61         Then a HTTP 200 is returned
 
  62         Then the result is valid json
 
  63         And the result has attributes keywords
 
  73     Scenario: Details of a country with keywords
 
  74         When sending v1/details
 
  75             | osmtype | osmid   | keywords |
 
  77         Then a HTTP 200 is returned
 
  78         And the result is valid json
 
  79         And the result has attributes keywords
 
  81     Scenario Outline: Details with full geometry
 
  82         When sending v1/details
 
  83             | osmtype | osmid | polygon_geojson |
 
  85         Then a HTTP 200 is returned
 
  86         And the result is valid json
 
  87         And the result has attributes geometry
 
  88         And the result contains
 
  93             | type | id        | geometry   |
 
  94             | W    | 297699560 | LineString |
 
  95             | W    | 243055645 | Polygon    |
 
  96             | W    | 243055716 | Polygon    |
 
  97             | W    | 43327921  | LineString |