|
|
@ -12,9 +12,9 @@ |
|
|
|
|
|
|
|
</head> |
|
|
|
<body th:with=" |
|
|
|
baseUrl = (@{__${#httpServletRequest.scheme}__} + '://' + |
|
|
|
@{__${#httpServletRequest.serverName}__} + ':' + |
|
|
|
@{__${#httpServletRequest.serverPort}__}), |
|
|
|
baseUrl = (${#httpServletRequest.scheme} + '://' + |
|
|
|
${#httpServletRequest.serverName} + ':' + |
|
|
|
${#httpServletRequest.serverPort}), |
|
|
|
adminUser = 'admin:admin' |
|
|
|
"> |
|
|
|
|
|
|
@ -48,7 +48,7 @@ adminUser = 'admin:admin' |
|
|
|
<td class="apiref-table-right"> |
|
|
|
<code th:text=" |
|
|
|
'curl --include --request GET ' + |
|
|
|
${baseUrl} + @{__${@Pages.REST}__} + @{__${@Pages.RESTBOOKS}__} + '/' + |
|
|
|
${baseUrl} + @{__${@Pages.REST}____${@Pages.RESTBOOKS}__} + '/' + |
|
|
|
' --user ' + ${adminUser} |
|
|
|
"> |
|
|
|
code placeholder |
|
|
@ -57,7 +57,7 @@ adminUser = 'admin:admin' |
|
|
|
<td> |
|
|
|
<a th:text="${#messages.msgOrNull('page.text.apiref.link')} ?: 'page.text.apiref.link'" |
|
|
|
th:href=" |
|
|
|
${baseUrl} + @{__${@Pages.REST}__} + @{__${@Pages.RESTBOOKS}__} + '/' |
|
|
|
${baseUrl} + @{__${@Pages.REST}____${@Pages.RESTBOOKS}__} + '/' |
|
|
|
"> |
|
|
|
page.text.apiref.link |
|
|
|
</a> |
|
|
@ -68,7 +68,7 @@ adminUser = 'admin:admin' |
|
|
|
<td class="apiref-table-right"> |
|
|
|
<code th:text=" |
|
|
|
'curl --include --request GET ' + |
|
|
|
${baseUrl} + @{__${@Pages.REST}__} + @{__${@Pages.RESTCATEGORIES}__} + '/' + |
|
|
|
${baseUrl} + @{__${@Pages.REST}____${@Pages.RESTCATEGORIES}__} + '/' + |
|
|
|
' --user ' + ${adminUser} |
|
|
|
"> |
|
|
|
code placeholder |
|
|
@ -77,7 +77,7 @@ adminUser = 'admin:admin' |
|
|
|
<td> |
|
|
|
<a th:text="${#messages.msgOrNull('page.text.apiref.link')} ?: 'page.text.apiref.link'" |
|
|
|
th:href=" |
|
|
|
${baseUrl} + @{__${@Pages.REST}__} + @{__${@Pages.RESTCATEGORIES}__} + '/' |
|
|
|
${baseUrl} + @{__${@Pages.REST}____${@Pages.RESTCATEGORIES}__} + '/' |
|
|
|
"> |
|
|
|
page.text.apiref.link |
|
|
|
</a> |
|
|
@ -88,7 +88,7 @@ adminUser = 'admin:admin' |
|
|
|
<td class="apiref-table-right"> |
|
|
|
<code th:text=" |
|
|
|
'curl --include --request GET ' + |
|
|
|
${baseUrl} + @{__${@Pages.REST}__} + @{__${@Pages.RESTAUTHORS}__} + '/' + |
|
|
|
${baseUrl} + @{__${@Pages.REST}____${@Pages.RESTAUTHORS}__} + '/' + |
|
|
|
' --user ' + ${adminUser} |
|
|
|
"> |
|
|
|
code placeholder |
|
|
@ -97,7 +97,7 @@ adminUser = 'admin:admin' |
|
|
|
<td> |
|
|
|
<a th:text="${#messages.msgOrNull('page.text.apiref.link')} ?: 'page.text.apiref.link'" |
|
|
|
th:href=" |
|
|
|
${baseUrl} + @{__${@Pages.REST}__} + @{__${@Pages.RESTAUTHORS}__} + '/' |
|
|
|
${baseUrl} + @{__${@Pages.REST}____${@Pages.RESTAUTHORS}__} + '/' |
|
|
|
"> |
|
|
|
page.text.apiref.link |
|
|
|
</a> |
|
|
@ -108,7 +108,7 @@ adminUser = 'admin:admin' |
|
|
|
<td class="apiref-table-right"> |
|
|
|
<code th:text=" |
|
|
|
'curl --include --request GET ' + |
|
|
|
${baseUrl} + @{__${@Pages.REST}__} + @{__${@Pages.RESTUSERS}__} + '/' + |
|
|
|
${baseUrl} + @{__${@Pages.REST}____${@Pages.RESTUSERS}__} + '/' + |
|
|
|
' --user ' + ${adminUser} |
|
|
|
"> |
|
|
|
code placeholder |
|
|
@ -117,7 +117,7 @@ adminUser = 'admin:admin' |
|
|
|
<td> |
|
|
|
<a th:text="${#messages.msgOrNull('page.text.apiref.link')} ?: 'page.text.apiref.link'" |
|
|
|
th:href=" |
|
|
|
${baseUrl} + @{__${@Pages.REST}__} + @{__${@Pages.RESTUSERS}__} + '/' |
|
|
|
${baseUrl} + @{__${@Pages.REST}____${@Pages.RESTUSERS}__} + '/' |
|
|
|
"> |
|
|
|
page.text.apiref.link |
|
|
|
</a> |
|
|
@ -128,7 +128,7 @@ adminUser = 'admin:admin' |
|
|
|
<td class="apiref-table-right"> |
|
|
|
<code th:text=" |
|
|
|
'curl --include --request GET ' + |
|
|
|
${baseUrl} + @{__${@Pages.REST}__} + @{__${@Pages.RESTROLES}__} + '/' + |
|
|
|
${baseUrl} + @{__${@Pages.REST}____${@Pages.RESTROLES}__} + '/' + |
|
|
|
' --user ' + ${adminUser} |
|
|
|
"> |
|
|
|
code placeholder |
|
|
@ -137,7 +137,7 @@ adminUser = 'admin:admin' |
|
|
|
<td> |
|
|
|
<a th:text="${#messages.msgOrNull('page.text.apiref.link')} ?: 'page.text.apiref.link'" |
|
|
|
th:href=" |
|
|
|
${baseUrl} + @{__${@Pages.REST}__} + @{__${@Pages.RESTROLES}__} + '/' |
|
|
|
${baseUrl} + @{__${@Pages.REST}____${@Pages.RESTROLES}__} + '/' |
|
|
|
"> |
|
|
|
page.text.apiref.link |
|
|
|
</a> |
|
|
@ -148,7 +148,7 @@ adminUser = 'admin:admin' |
|
|
|
<td class="apiref-table-right"> |
|
|
|
<code th:text=" |
|
|
|
'curl --include --request GET ' + |
|
|
|
${baseUrl} + @{__${@Pages.REST}__} + @{__${@Pages.RESTUSERROLES}__} + '/' + |
|
|
|
${baseUrl} + @{__${@Pages.REST}____${@Pages.RESTUSERROLES}__} + '/' + |
|
|
|
' --user ' + ${adminUser} |
|
|
|
"> |
|
|
|
code placeholder |
|
|
@ -157,7 +157,7 @@ adminUser = 'admin:admin' |
|
|
|
<td> |
|
|
|
<a th:text="${#messages.msgOrNull('page.text.apiref.link')} ?: 'page.text.apiref.link'" |
|
|
|
th:href=" |
|
|
|
${baseUrl} + @{__${@Pages.REST}__} + @{__${@Pages.RESTUSERROLES}__} + '/' |
|
|
|
${baseUrl} + @{__${@Pages.REST}____${@Pages.RESTUSERROLES}__} + '/' |
|
|
|
"> |
|
|
|
page.text.apiref.link |
|
|
|
</a> |
|
|
@ -180,7 +180,7 @@ adminUser = 'admin:admin' |
|
|
|
<td class="apiref-table-right"> |
|
|
|
<code th:text=" |
|
|
|
'curl --include --request GET ' + |
|
|
|
${baseUrl} + @{__${@Pages.REST}__} + @{__${@Pages.RESTBOOKS}__} + '/search/title?name=Bloody+Chamber' + |
|
|
|
${baseUrl} + @{__${@Pages.REST}____${@Pages.RESTBOOKS}__} + '/search/title?name=Bloody+Chamber' + |
|
|
|
' --user ' + ${adminUser} |
|
|
|
"> |
|
|
|
code placeholder |
|
|
@ -189,7 +189,7 @@ adminUser = 'admin:admin' |
|
|
|
<td> |
|
|
|
<a th:text="${#messages.msgOrNull('page.text.apiref.link')} ?: 'page.text.apiref.link'" |
|
|
|
th:href=" |
|
|
|
${baseUrl} + @{__${@Pages.REST}__} + @{__${@Pages.RESTBOOKS}__} + '/search/title?name=Bloody+Chamber' |
|
|
|
${baseUrl} + @{__${@Pages.REST}____${@Pages.RESTBOOKS}__} + '/search/title?name=Bloody+Chamber' |
|
|
|
"> |
|
|
|
page.text.apiref.link |
|
|
|
</a> |
|
|
@ -200,7 +200,7 @@ adminUser = 'admin:admin' |
|
|
|
<td class="apiref-table-right"> |
|
|
|
<code th:text=" |
|
|
|
'curl --include --request GET ' + |
|
|
|
${baseUrl} + @{__${@Pages.REST}__} + @{__${@Pages.RESTCATEGORIES}__} + '/search/category?name=Fantasy' + |
|
|
|
${baseUrl} + @{__${@Pages.REST}____${@Pages.RESTCATEGORIES}__} + '/search/category?name=Fantasy' + |
|
|
|
' --user ' + ${adminUser} |
|
|
|
"> |
|
|
|
code placeholder |
|
|
@ -209,7 +209,7 @@ adminUser = 'admin:admin' |
|
|
|
<td> |
|
|
|
<a th:text="${#messages.msgOrNull('page.text.apiref.link')} ?: 'page.text.apiref.link'" |
|
|
|
th:href=" |
|
|
|
${baseUrl} + @{__${@Pages.REST}__} + @{__${@Pages.RESTCATEGORIES}__} + '/search/category?name=Fantasy' |
|
|
|
${baseUrl} + @{__${@Pages.REST}____${@Pages.RESTCATEGORIES}__} + '/search/category?name=Fantasy' |
|
|
|
"> |
|
|
|
page.text.apiref.link |
|
|
|
</a> |
|
|
@ -220,7 +220,7 @@ adminUser = 'admin:admin' |
|
|
|
<td class="apiref-table-right"> |
|
|
|
<code th:text=" |
|
|
|
'curl --include --request GET ' + |
|
|
|
${baseUrl} + @{__${@Pages.REST}__} + @{__${@Pages.RESTCATEGORIES}__} + '/search/category?name=horr' + |
|
|
|
${baseUrl} + @{__${@Pages.REST}____${@Pages.RESTCATEGORIES}__} + '/search/category?name=horr' + |
|
|
|
' --user ' + ${adminUser} |
|
|
|
"> |
|
|
|
code placeholder |
|
|
@ -229,7 +229,7 @@ adminUser = 'admin:admin' |
|
|
|
<td> |
|
|
|
<a th:text="${#messages.msgOrNull('page.text.apiref.link')} ?: 'page.text.apiref.link'" |
|
|
|
th:href=" |
|
|
|
${baseUrl} + @{__${@Pages.REST}__} + @{__${@Pages.RESTCATEGORIES}__} + '/search/category?name=horr' |
|
|
|
${baseUrl} + @{__${@Pages.REST}____${@Pages.RESTCATEGORIES}__} + '/search/category?name=horr' |
|
|
|
"> |
|
|
|
page.text.apiref.link |
|
|
|
</a> |
|
|
@ -240,7 +240,7 @@ adminUser = 'admin:admin' |
|
|
|
<td class="apiref-table-right"> |
|
|
|
<code th:text=" |
|
|
|
'curl --include --request GET "' + |
|
|
|
${baseUrl} + @{__${@Pages.REST}__} + @{__${@Pages.RESTAUTHORS}__} + '/search/fullname?firstname=Angela&lastname=Carter"' + |
|
|
|
${baseUrl} + @{__${@Pages.REST}____${@Pages.RESTAUTHORS}__} + '/search/fullname?firstname=Angela&lastname=Carter"' + |
|
|
|
' --user ' + ${adminUser} |
|
|
|
"> |
|
|
|
code placeholder |
|
|
@ -249,7 +249,7 @@ adminUser = 'admin:admin' |
|
|
|
<td> |
|
|
|
<a th:text="${#messages.msgOrNull('page.text.apiref.link')} ?: 'page.text.apiref.link'" |
|
|
|
th:href=" |
|
|
|
${baseUrl} + @{__${@Pages.REST}__} + @{__${@Pages.RESTAUTHORS}__} + '/search/fullname?firstname=Angela&lastname=Carter' |
|
|
|
${baseUrl} + @{__${@Pages.REST}____${@Pages.RESTAUTHORS}__} + '/search/fullname?firstname=Angela&lastname=Carter' |
|
|
|
"> |
|
|
|
page.text.apiref.link |
|
|
|
</a> |
|
|
@ -260,7 +260,7 @@ adminUser = 'admin:admin' |
|
|
|
<td class="apiref-table-right"> |
|
|
|
<code th:text=" |
|
|
|
'curl --include --request GET ' + |
|
|
|
${baseUrl} + @{__${@Pages.REST}__} + @{__${@Pages.RESTAUTHORS}__} + '/search/firstname?firstname=anGel' + |
|
|
|
${baseUrl} + @{__${@Pages.REST}____${@Pages.RESTAUTHORS}__} + '/search/firstname?firstname=anGel' + |
|
|
|
' --user ' + ${adminUser} |
|
|
|
"> |
|
|
|
code placeholder |
|
|
@ -269,7 +269,7 @@ adminUser = 'admin:admin' |
|
|
|
<td> |
|
|
|
<a th:text="${#messages.msgOrNull('page.text.apiref.link')} ?: 'page.text.apiref.link'" |
|
|
|
th:href=" |
|
|
|
${baseUrl} + @{__${@Pages.REST}__} + @{__${@Pages.RESTAUTHORS}__} + '/search/firstname?firstname=anGel' |
|
|
|
${baseUrl} + @{__${@Pages.REST}____${@Pages.RESTAUTHORS}__} + '/search/firstname?firstname=anGel' |
|
|
|
"> |
|
|
|
page.text.apiref.link |
|
|
|
</a> |
|
|
@ -280,7 +280,7 @@ adminUser = 'admin:admin' |
|
|
|
<td class="apiref-table-right"> |
|
|
|
<code th:text=" |
|
|
|
'curl --include --request GET ' + |
|
|
|
${baseUrl} + @{__${@Pages.REST}__} + @{__${@Pages.RESTAUTHORS}__} + '/search/lastname?lastname=Sapkowski' + |
|
|
|
${baseUrl} + @{__${@Pages.REST}____${@Pages.RESTAUTHORS}__} + '/search/lastname?lastname=Sapkowski' + |
|
|
|
' --user ' + ${adminUser} |
|
|
|
"> |
|
|
|
code placeholder |
|
|
@ -289,7 +289,7 @@ adminUser = 'admin:admin' |
|
|
|
<td> |
|
|
|
<a th:text="${#messages.msgOrNull('page.text.apiref.link')} ?: 'page.text.apiref.link'" |
|
|
|
th:href=" |
|
|
|
${baseUrl} + @{__${@Pages.REST}__} + @{__${@Pages.RESTAUTHORS}__} + '/search/lastname?lastname=Sapkowski' |
|
|
|
${baseUrl} + @{__${@Pages.REST}____${@Pages.RESTAUTHORS}__} + '/search/lastname?lastname=Sapkowski' |
|
|
|
"> |
|
|
|
page.text.apiref.link |
|
|
|
</a> |
|
|
@ -309,7 +309,7 @@ adminUser = 'admin:admin' |
|
|
|
<td class="apiref-table-right"> |
|
|
|
<code th:text=" |
|
|
|
'curl --include --request GET ' + |
|
|
|
${baseUrl} + @{__${@Pages.REST}__} + @{__${@Pages.RESTBOOKS}__} + '/2' + |
|
|
|
${baseUrl} + @{__${@Pages.REST}____${@Pages.RESTBOOKS}__} + '/2' + |
|
|
|
' --user ' + ${adminUser} |
|
|
|
"> |
|
|
|
code placeholder |
|
|
@ -322,7 +322,7 @@ adminUser = 'admin:admin' |
|
|
|
<td> |
|
|
|
<a th:text="${#messages.msgOrNull('page.text.apiref.link')} ?: 'page.text.apiref.link'" |
|
|
|
th:href=" |
|
|
|
${baseUrl} + @{__${@Pages.REST}__} + @{__${@Pages.RESTBOOKS}__} + '/2' |
|
|
|
${baseUrl} + @{__${@Pages.REST}____${@Pages.RESTBOOKS}__} + '/2' |
|
|
|
"> |
|
|
|
page.text.apiref.link |
|
|
|
</a> |
|
|
@ -346,7 +346,7 @@ adminUser = 'admin:admin' |
|
|
|
<br> |
|
|
|
<code th:text=" |
|
|
|
'curl --include --request POST --header "Content-Type: application/json" --data \'{"title":"The Witcher: Blood of Elves","year":1994,"isbn":"5474512-543","price":22.49,"publish":true}\' ' + |
|
|
|
${baseUrl} + @{__${@Pages.REST}__} + @{__${@Pages.RESTBOOKS}__} + |
|
|
|
${baseUrl} + @{__${@Pages.REST}____${@Pages.RESTBOOKS}__} + |
|
|
|
' --user ' + ${adminUser} |
|
|
|
"> |
|
|
|
code placeholder |
|
|
@ -362,7 +362,7 @@ adminUser = 'admin:admin' |
|
|
|
<br> |
|
|
|
<code th:text=" |
|
|
|
'curl --include --request POST --header "Content-Type: application/json" --data \'{"title":"Mass Effect: Retribution","year":2010,"isbn":"0345520-722","price":29.90,"category":{"name":"Sci-Fi"},"author":{"firstname":"Drew","lastname":"Karpyshyn"}}\' ' + |
|
|
|
${baseUrl} + @{__${@Pages.REST}__} + @{__${@Pages.RESTBOOKS}__} + |
|
|
|
${baseUrl} + @{__${@Pages.REST}____${@Pages.RESTBOOKS}__} + |
|
|
|
' --user ' + ${adminUser} |
|
|
|
"> |
|
|
|
code placeholder |
|
|
@ -378,7 +378,7 @@ adminUser = 'admin:admin' |
|
|
|
<br> |
|
|
|
<code th:text=" |
|
|
|
'curl --include --request POST --header "Content-Type: application/json" --data \'{"title":"Mass Effect: Deception","year":2012,"isbn":"0345520-739","price":34.65,"category":{"name":"sci-fi"},"publish":true}\' ' + |
|
|
|
${baseUrl} + @{__${@Pages.REST}__} + @{__${@Pages.RESTBOOKS}__} + |
|
|
|
${baseUrl} + @{__${@Pages.REST}____${@Pages.RESTBOOKS}__} + |
|
|
|
' --user ' + ${adminUser} |
|
|
|
"> |
|
|
|
code placeholder |
|
|
@ -398,7 +398,7 @@ adminUser = 'admin:admin' |
|
|
|
<br> |
|
|
|
<code th:text=" |
|
|
|
'curl --include --request POST --header "Content-Type: application/json" --data \'{"title":"Halo: The Flood","year":2003,"isbn":"0345459-210","price":24.99,"category":{"name":"sCi-fI"},"author":{"lastname":"Dietz"}}\' ' + |
|
|
|
${baseUrl} + @{__${@Pages.REST}__} + @{__${@Pages.RESTBOOKS}__} + |
|
|
|
${baseUrl} + @{__${@Pages.REST}____${@Pages.RESTBOOKS}__} + |
|
|
|
' --user ' + ${adminUser} |
|
|
|
"> |
|
|
|
code placeholder |
|
|
@ -433,7 +433,7 @@ adminUser = 'admin:admin' |
|
|
|
<br> |
|
|
|
<code th:text=" |
|
|
|
'curl --include --request PUT --header "Content-Type: application/json" --data \'{"title":"The Witcher: Blood of Elves","year":1999,"isbn":"3213221-3","price":22.49}\' ' + |
|
|
|
${baseUrl} + @{__${@Pages.REST}__} + @{__${@Pages.RESTBOOKS}__} + '/2' + |
|
|
|
${baseUrl} + @{__${@Pages.REST}____${@Pages.RESTBOOKS}__} + '/2' + |
|
|
|
' --user ' + ${adminUser} |
|
|
|
"> |
|
|
|
code placeholder |
|
|
@ -449,7 +449,7 @@ adminUser = 'admin:admin' |
|
|
|
<br> |
|
|
|
<code th:text=" |
|
|
|
'curl --include --request PUT --header "Content-Type: application/json" --data \'{"title":"The Witcher: Blood of Elves - Enhanced Edition","year":2019,"author":{"firstname":"Vitaly","lastname":"Zarikov"},"category":{"name":"horror"},"publish":false}\' ' + |
|
|
|
${baseUrl} + @{__${@Pages.REST}__} + @{__${@Pages.RESTBOOKS}__} + '/2' + |
|
|
|
${baseUrl} + @{__${@Pages.REST}____${@Pages.RESTBOOKS}__} + '/2' + |
|
|
|
' --user ' + ${adminUser} |
|
|
|
"> |
|
|
|
code placeholder |
|
|
@ -482,7 +482,7 @@ adminUser = 'admin:admin' |
|
|
|
<td class="apiref-table-right"> |
|
|
|
<code th:text=" |
|
|
|
'curl --include --request DELETE ' + |
|
|
|
${baseUrl} + @{__${@Pages.REST}__} + @{__${@Pages.RESTBOOKS}__} + '/2' + |
|
|
|
${baseUrl} + @{__${@Pages.REST}____${@Pages.RESTBOOKS}__} + '/2' + |
|
|
|
' --user ' + ${adminUser} |
|
|
|
"> |
|
|
|
code placeholder |
|
|
@ -507,7 +507,7 @@ adminUser = 'admin:admin' |
|
|
|
<td class="apiref-table-right"> |
|
|
|
<code th:text=" |
|
|
|
'curl --include --request PUT --header "Content-Type: application/json" --data \'{"firstname":"Tanya","lastname":"Rose"}\' ' + |
|
|
|
${baseUrl} + @{__${@Pages.REST}__} + @{__${@Pages.RESTAUTHORS}__} + '/1' + |
|
|
|
${baseUrl} + @{__${@Pages.REST}____${@Pages.RESTAUTHORS}__} + '/1' + |
|
|
|
' --user ' + ${adminUser} |
|
|
|
"> |
|
|
|
code placeholder |
|
|
|