-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ogcapi records - better catalog objects #1
base: origin_main
Are you sure you want to change the base?
Changes from 5 commits
0005bce
8496c6e
f8e9ce6
9909a0e
6623ea7
dd1db6e
acfc284
1014da7
734a97d
dbf1eb1
dad79a6
51fbde4
39136d8
4f4017e
5304f8b
fc6d900
77b988f
db02e4f
7b9f4df
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,3 +1,8 @@ | ||||||
/** | ||||||
* (c) 2020 Open Source Geospatial Foundation - all rights reserved This code is licensed under the | ||||||
* GPL 2.0 license, available at the root application directory. | ||||||
*/ | ||||||
|
||||||
package org.fao.geonet.ogcapi.records.controller; | ||||||
|
||||||
import io.swagger.annotations.Api; | ||||||
|
@@ -75,6 +80,9 @@ public class CollectionApiController { | |||||
@Autowired | ||||||
MediaTypeUtil mediaTypeUtil; | ||||||
|
||||||
@Autowired | ||||||
CollectionInfoBuilder collectionInfoBuilder; | ||||||
|
||||||
/** | ||||||
* Describe a collection. | ||||||
*/ | ||||||
|
@@ -126,9 +134,9 @@ public ResponseEntity<CollectionInfo> describeCollection( | |||||
String requestBaseUrl = request.getRequestURL() | ||||||
.toString().replace(collectionId, ""); | ||||||
|
||||||
CollectionInfo collectionInfo = CollectionInfoBuilder | ||||||
CollectionInfo collectionInfo = collectionInfoBuilder | ||||||
.buildFromSource(source, language, requestBaseUrl, | ||||||
configuration.getFormat(mediaType), configuration); | ||||||
configuration.getFormat(mediaType), configuration,request); | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank for the review, jose. I've run the code through an intellij reformat "cleanup". The first time I did this, it changed my javadocs and the checkstyle got very upset. However, I just re-ran it and it didn't make changes - all these types of problems should be fixed now. |
||||||
|
||||||
return ResponseEntity.ok(collectionInfo); | ||||||
|
||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems not used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed