Skip to content

Commit

Permalink
Merge pull request #4 from PDOK/PDOK-10007
Browse files Browse the repository at this point in the history
Pdok 10007
  • Loading branch information
DennisRutjes committed Mar 26, 2020
2 parents caa7385 + cacaba3 commit c60444b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
2 changes: 2 additions & 0 deletions server/server.go
Expand Up @@ -34,6 +34,8 @@ func NewServer(serviceEndpoint, serviceSpecPath string, defaultReturnLimit, maxR
log.Fatal("Specification initialisation error:", err)
return nil, err
}
// Set endpoint
swagger.AddServer(&openapi3.Server{URL: serviceEndpoint, Description: "Production server"})

server := &Server{ServiceEndpoint: serviceEndpoint, ServiceSpecPath: serviceSpecPath, MaxReturnLimit: maxReturnLimit, DefaultReturnLimit: defaultReturnLimit, Swagger: swagger}

Expand Down
6 changes: 0 additions & 6 deletions spec/wfs1.0.0.json
Expand Up @@ -1216,12 +1216,6 @@
}
}
},
"servers": [
{
"url": "download.pdok.io/bgt/oaf/v1_0",
"description": "Production server"
}
],
"tags": [
{
"description": "essential characteristics of this API",
Expand Down
3 changes: 0 additions & 3 deletions spec/wfs1.0.0.yml
Expand Up @@ -20,9 +20,6 @@ info:
license:
name: CC-BY 4.0 license
url: 'https://creativecommons.org/licenses/by/4.0/'
servers:
- url: 'download.pdok.io/bgt/oaf/v1_0'
description: Production server
tags:
- name: Capabilities
description: |-
Expand Down

0 comments on commit c60444b

Please sign in to comment.