@@ -229,8 +229,7 @@ public void classificationsExample() throws Exception {
229229 i -> createPage (i .getArgumentAt (2 , Pageable .class ), classifications ));
230230 // @formatter:off
231231 this .mockMvc .perform (getWithContext ("/classifications" ).accept (MediaType .APPLICATION_JSON ))
232- .andDo (this .documentationHandler .document (
233- links (
232+ .andDo (this .documentationHandler .document (links (
234233 halLinks (),
235234 linkWithRel ("self" ).description ("The current request" ),
236235 linkWithRel ("search" ).description ("Link to search for classifications" )),
@@ -240,7 +239,7 @@ public void classificationsExample() throws Exception {
240239 fieldWithPath ("_embedded.classifications[].lastModified" ).description ("Last modification time of classification" ),
241240 fieldWithPath ("_embedded.classifications[]._links" ).description ("Link to classification" ),
242241 fieldWithPath ("_links" ).description ("<<classifications-links,Links>> to other resources" ),
243- fieldWithPath ("page" ).description ("Describes number of classifications returned, see <<page , page>>" ))))
242+ fieldWithPath ("page" ).description ("Describes number of classifications returned, see <<_page , page>>" ))))
244243 .andExpect (status ().isOk ());
245244 // @formatter:on
246245 }
@@ -277,7 +276,7 @@ public void searchExample() throws Exception {
277276 .description ("Represents this classifications relevans for the search" ),
278277 fieldWithPath ("_embedded.searchResults[]._links" ).description ("Link to classification that matched search" ),
279278 fieldWithPath ("_links" ).description ("<<search-links,Links>> to other resources" ),
280- fieldWithPath ("page" ).description ("Describes number of classifications returned, see <<page , page>>" ))))
279+ fieldWithPath ("page" ).description ("Describes number of classifications returned, see <<_page , page>>" ))))
281280 .andExpect (status ().isOk ());
282281 // @formatter:on
283282 }
@@ -308,19 +307,19 @@ public void classificationExample() throws Exception {
308307 links (
309308 halLinks (),
310309 linkWithRel ("self" ).description ("The current request" ),
311- linkWithRel ("codes" ).description ("Used for getting codes from the classification, see <<Codes , codes>>" ),
310+ linkWithRel ("codes" ).description ("Used for getting codes from the classification, see <<_codes , codes>>" ),
312311 linkWithRel ("codesAt" )
313- .description ("Used for getting codes from the classification valid at a specific date, see <<CodesAt , codesAt>>" ),
314- linkWithRel ("variant" ).description ("Used for getting codes from a classification variant, see <<Variant , variant>>" ),
312+ .description ("Used for getting codes from the classification valid at a specific date, see <<_codesat , codesAt>>" ),
313+ linkWithRel ("variant" ).description ("Used for getting codes from a classification variant, see <<_variant , variant>>" ),
315314 linkWithRel ("variantAt" )
316315 .description ("Used for getting codes from a variant of the classification valid at a specific date, "
317- + "see <<VariantAt , variantAt>>" ),
316+ + "see <<_variantat , variantAt>>" ),
318317 linkWithRel ("corresponds" )
319- .description ("Used for getting mappings between two classifications, see <<Corresponds , corresponds>>" ),
318+ .description ("Used for getting mappings between two classifications, see <<_corresponds , corresponds>>" ),
320319 linkWithRel ("correspondsAt" )
321320 .description ("Used for getting mappings between two classifications at a specific date, "
322- + "see <<CorrespondsAt , correspondsAt>>" ),
323- linkWithRel ("changes" ).description ("Used for getting changes in codes, see <<Changes , changes>>" )),
321+ + "see <<_correspondsat , correspondsAt>>" ),
322+ linkWithRel ("changes" ).description ("Used for getting changes in codes, see <<_changes , changes>>" )),
324323 relaxedResponseFields (
325324 fieldWithPath ("name" ).description ("Classification name" ),
326325 fieldWithPath ("description" ).description ("Description of classification" ),
@@ -1068,23 +1067,23 @@ private ParameterDescriptor includeCodelistsDescription() {
10681067
10691068 private ParameterDescriptor languageDescription () {
10701069 return parameterWithName ("language" ).description (
1071- "[Optional] specifies language of retrieved data. Default is nb (Norwegian Bokmål). For details see <<language , language>>" );
1070+ "[Optional] specifies language of retrieved data. Default is nb (Norwegian Bokmål). For details see <<_language , language>>" );
10721071 }
10731072
10741073 private ParameterDescriptor changedSinceDescription () {
10751074 return parameterWithName ("changedSince" ).description (
1076- "[Optional] specifies that only classifications that have been changed since changedSince shall be included in the reponse ." +
1077- " For details see <<changedSince , changedSince>>" );
1075+ "[Optional] specifies that only classifications that have been changed since changedSince shall be included in the response ." +
1076+ " For details see <<_changedsince , changedSince>>" );
10781077 }
10791078
10801079 private ParameterDescriptor fromParameterDescription () {
10811080 return parameterWithName ("from" ).description (
1082- "[Mandatory] specifies beginning of range with format `<yyyy-MM-dd>`. For details see <<range , range>>" );
1081+ "[Mandatory] specifies beginning of range with format `<yyyy-MM-dd>`. For details see <<_range , range>>" );
10831082 }
10841083
10851084 private ParameterDescriptor toParameterDescription () {
10861085 return parameterWithName ("to" ).description ("[Optional] specifies end of range with format `<yyyy-MM-dd>`. "
1087- + "If not set means that to is indefinite. For details see <<range , range>>" );
1086+ + "If not set means that to is indefinite. For details see <<_range , range>>" );
10881087 }
10891088
10901089 private ParameterDescriptor dateParameterDescription () {
@@ -1101,27 +1100,27 @@ private ParameterDescriptor variantNameParameterDescription() {
11011100 return parameterWithName ("variantName" ).description ("[Mandatory] specifies name of classification variant\n \n "
11021101 + "NOTE: If you want to look up codes from variants across multiple versions do not include the year "
11031102 + "(or year month) and do not include everything after that\n \n "
1104- + "Ex. for `Particulate matter 2009 - Variant of substances emitted to air 2009` would be `Particulate matter`" );
1103+ + "Example for `Particulate matter 2009 - Variant of substances emitted to air 2009` would be `Particulate matter`" );
11051104 }
11061105
11071106 private ParameterDescriptor csvSeparatorParameterDescription () {
11081107 return parameterWithName ("csvSeparator" ).description (
1109- "[Optional] specifies separator to be used for csv format. For details see <<csvSeparator , csvSeparator>>" );
1108+ "[Optional] specifies separator to be used for csv format. For details see <<_csvseparator , csvSeparator>>" );
11101109 }
11111110
11121111 private ParameterDescriptor selectCodesParameterDescription () {
11131112 return parameterWithName ("selectCodes" ).description (
1114- "[Optional] only return codes that match pattern given by selectCodes. For details see <<selectCodes , selectCodes>>" );
1113+ "[Optional] only return codes that match pattern given by selectCodes. For details see <<_selectcodes , selectCodes>>" );
11151114 }
11161115
11171116 private ParameterDescriptor selectLevelParameterDescription () {
11181117 return parameterWithName ("selectLevel" ).description (
1119- "[Optional] only return codes with matching level. For details see <<selectLevel , selectLevel>>" );
1118+ "[Optional] only return codes with matching level. For details see <<_selectlevel , selectLevel>>" );
11201119 }
11211120
11221121 private ParameterDescriptor presentationNamePatternParameterDescription () {
11231122 return parameterWithName ("presentationNamePattern" ).description (
1124- "[Optional] used to build a presentationName. For details see <<presentationNamePattern , presentationNamePattern>>" );
1123+ "[Optional] used to build a presentationName. For details see <<_presentationnamepattern , presentationNamePattern>>" );
11251124 }
11261125
11271126 private ParameterDescriptor ssbSectionParameterDescription (String part ) {
0 commit comments