1 Feature: Localization of search results
 
   3     Scenario: default language
 
   4         When sending v1/details
 
   7         Then a HTTP 200 is returned
 
   8         And the result is valid json
 
   9         And the result contains
 
  13     Scenario: accept-language first
 
  14         When sending v1/details
 
  15           | osmtype | osmid   | accept-language |
 
  16           | R       | 1155955 | zh,de |
 
  17         Then a HTTP 200 is returned
 
  18         And the result is valid json
 
  19         And the result contains
 
  23     Scenario: accept-language missing
 
  24         When sending v1/details
 
  25           | osmtype | osmid   | accept-language |
 
  26           | R       | 1155955 | xx,fr,en,de |
 
  27         Then a HTTP 200 is returned
 
  28         And the result is valid json
 
  29         And the result contains
 
  33     Scenario: http accept language header first
 
  36           | fo;q=0.8,en-ca;q=0.5,en;q=0.3 |
 
  37         When sending v1/details
 
  40         Then a HTTP 200 is returned
 
  41         And the result is valid json
 
  42         And the result contains
 
  46     Scenario: http accept language header and accept-language
 
  49           | fr-ca,fr;q=0.8,en-ca;q=0.5,en;q=0.3 |
 
  50         When sending v1/details
 
  51           | osmtype | osmid   | accept-language |
 
  52           | R       | 1155955 | fo,en |
 
  53         Then a HTTP 200 is returned
 
  54         And the result is valid json
 
  55         And the result contains
 
  59     Scenario: http accept language header fallback
 
  63         When sending v1/details
 
  66         Then a HTTP 200 is returned
 
  67         And the result is valid json
 
  68         And the result contains
 
  72     Scenario: http accept language header fallback (upper case)
 
  75           | fo-FR;q=0.8,en-ca;q=0.5 |
 
  76         When sending v1/details
 
  79         Then a HTTP 200 is returned
 
  80         And the result is valid json
 
  81         And the result contains