diff --git a/README.md b/README.md index af0c7080db6f3f0867d16a7f66778a5328dff180..89953c62c934cd8aeca3c2c5875e93ceb5e55312 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ http://localhost:8080/countryinfo/v1/population/{country_code}{?startyear-endYea Viser status for de eksterne API-ene, versjon og applikasjonens oppetid. ```sh -http://localhost:8080/status +http://localhost:8080/countryinfo/v1/status ``` diff --git a/handelers/constants.go b/handelers/constants.go index eab88b5768ad2e6ca23300d560e8f7b40d3cf760..5e73a1cc0d3c92f1d3fb6d8d1e484026577f34fa 100644 --- a/handelers/constants.go +++ b/handelers/constants.go @@ -24,7 +24,7 @@ const INFO_HEADER = "Get country information" const STATUS_HEADER = "Get status info" const POPULATION_HEADER = "Get population info" const STATUS_DESCRIPTION = "Retrieve information about the API status." -const STATUS_URL = "http://localhost:8080/status/" +const STATUS_URL = "http://localhost:8080/countryinfo/v1/status/" const POPULATION_DESCRIPTION = "It requires the ISO 3166-2 country code and a optional limit of the years in the repsonse" const POPULATION_URL = "http://localhost:8080/countryinfo/v1/population/{ISO_3166-2_country_code}{?startYear-endYear}" const POPULATION_URL_EXAMPLE = "http://localhost:8080/countryinfo/v1/population/NO?2010-2015"