|
@ -17,6 +17,10 @@ |
|
|
page.title.webform.apiref |
|
|
page.title.webform.apiref |
|
|
</h1> |
|
|
</h1> |
|
|
|
|
|
|
|
|
|
|
|
<p th:text="${#messages.msgOrNull('page.text.apiref.warning')} ?: 'page.text.apiref.warning'"> |
|
|
|
|
|
page.text.apiref.warning |
|
|
|
|
|
</p> |
|
|
|
|
|
|
|
|
<table class="table table-striped"> |
|
|
<table class="table table-striped"> |
|
|
<tbody> |
|
|
<tbody> |
|
|
<tr> |
|
|
<tr> |
|
@ -57,6 +61,18 @@ |
|
|
</a> |
|
|
</a> |
|
|
</td> |
|
|
</td> |
|
|
</tr> |
|
|
</tr> |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td class="apiref-table-right"> |
|
|
|
|
|
<code th:text="${baseUrl} + 'api/authors/'">placeholder</code> |
|
|
|
|
|
</td> |
|
|
|
|
|
<td> |
|
|
|
|
|
<a th:text="${#messages.msgOrNull('page.text.apiref.link')} ?: 'page.text.apiref.link'" |
|
|
|
|
|
th:href="${baseUrl} + 'api/authors/'" |
|
|
|
|
|
> |
|
|
|
|
|
page.text.apiref.link |
|
|
|
|
|
</a> |
|
|
|
|
|
</td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
|
<tr> |
|
|
<tr> |
|
|
<th class="apiref-table-right apiref-table-title"> |
|
|
<th class="apiref-table-right apiref-table-title"> |
|
@ -90,11 +106,23 @@ |
|
|
</a> |
|
|
</a> |
|
|
</td> |
|
|
</td> |
|
|
</tr> |
|
|
</tr> |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td class="apiref-table-right"> |
|
|
|
|
|
<code th:text="${baseUrl} + 'api/authors/search/author?firstname=Angela&lastname=Carter'">placeholder</code> |
|
|
|
|
|
</td> |
|
|
|
|
|
<td> |
|
|
|
|
|
<a th:text="${#messages.msgOrNull('page.text.apiref.link')} ?: 'page.text.apiref.link'" |
|
|
|
|
|
th:href="${baseUrl} + 'api/authors/search/author?firstname=Angela&lastname=Carter'" |
|
|
|
|
|
> |
|
|
|
|
|
page.text.apiref.link |
|
|
|
|
|
</a> |
|
|
|
|
|
</td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
|
<tr> |
|
|
<tr> |
|
|
<th class="apiref-table-right apiref-table-title"> |
|
|
<th class="apiref-table-right apiref-table-title"> |
|
|
<h3 th:text="${#messages.msgOrNull('page.text.apiref.get')} ?: 'page.text.apiref.get'"> |
|
|
|
|
|
page.text.apiref.get |
|
|
|
|
|
|
|
|
<h3 th:text="${#messages.msgOrNull('page.text.apiref.book.get')} ?: 'page.text.apiref.book.get'"> |
|
|
|
|
|
page.text.apiref.book.get |
|
|
</h3> |
|
|
</h3> |
|
|
</th> |
|
|
</th> |
|
|
<th></th> |
|
|
<th></th> |
|
@ -103,44 +131,50 @@ |
|
|
<td class="apiref-table-right"> |
|
|
<td class="apiref-table-right"> |
|
|
<code th:text="'curl --request GET ' + ${baseUrl} + 'api/booklist/2'"></code> |
|
|
<code th:text="'curl --request GET ' + ${baseUrl} + 'api/booklist/2'"></code> |
|
|
<br> |
|
|
<br> |
|
|
<small th:text="${#messages.msgOrNull('page.text.apiref.edit.info')} ?: 'page.text.apiref.edit.info'">page.text.apiref.edit.info</small> |
|
|
|
|
|
|
|
|
<small th:text="${#messages.msgOrNull('page.text.apiref.book.edit.info')} ?: 'page.text.apiref.book.edit.info'">page.text.apiref.book.edit.info</small> |
|
|
|
|
|
<br> |
|
|
|
|
|
<small th:text="${#messages.msgOrNull('page.text.apiref.unix.info')} ?: 'page.text.apiref.unix.info'">page.text.apiref.unix.info</small> |
|
|
</td> |
|
|
</td> |
|
|
</tr> |
|
|
</tr> |
|
|
|
|
|
|
|
|
<tr> |
|
|
<tr> |
|
|
<th class="apiref-table-right apiref-table-title"> |
|
|
<th class="apiref-table-right apiref-table-title"> |
|
|
<h3 th:text="${#messages.msgOrNull('page.text.apiref.add')} ?: 'page.text.apiref.add'"> |
|
|
|
|
|
page.text.apiref.add |
|
|
|
|
|
|
|
|
<h3 th:text="${#messages.msgOrNull('page.text.apiref.book.add')} ?: 'page.text.apiref.book.add'"> |
|
|
|
|
|
page.text.apiref.book.add |
|
|
</h3> |
|
|
</h3> |
|
|
</th> |
|
|
</th> |
|
|
<th></th> |
|
|
<th></th> |
|
|
</tr> |
|
|
</tr> |
|
|
<tr> |
|
|
<tr> |
|
|
<td class="apiref-table-right"> |
|
|
<td class="apiref-table-right"> |
|
|
<code th:text="'curl --include --request POST --header "Content-Type: application/json" --data \'{"title":"The Witcher: Blood of Elves","author":"Andrzej Sapkowski","year":1994,"isbn":"5474512-543","price":22.49}\' ' + ${baseUrl} + 'api/booklist'"></code> |
|
|
|
|
|
|
|
|
<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}\' ' + ${baseUrl} + 'api/booklist'"></code> |
|
|
|
|
|
<br> |
|
|
|
|
|
<small th:text="${#messages.msgOrNull('page.text.apiref.unix.info')} ?: 'page.text.apiref.unix.info'">page.text.apiref.unix.info</small> |
|
|
</td> |
|
|
</td> |
|
|
</tr> |
|
|
</tr> |
|
|
|
|
|
|
|
|
<tr> |
|
|
<tr> |
|
|
<th class="apiref-table-right apiref-table-title"> |
|
|
<th class="apiref-table-right apiref-table-title"> |
|
|
<h3 th:text="${#messages.msgOrNull('page.text.apiref.edit')} ?: 'page.text.apiref.edit'"> |
|
|
|
|
|
page.text.apiref.edit |
|
|
|
|
|
|
|
|
<h3 th:text="${#messages.msgOrNull('page.text.apiref.book.edit')} ?: 'page.text.apiref.book.edit'"> |
|
|
|
|
|
page.text.apiref.book.edit |
|
|
</h3> |
|
|
</h3> |
|
|
</th> |
|
|
</th> |
|
|
<th></th> |
|
|
<th></th> |
|
|
</tr> |
|
|
</tr> |
|
|
<tr> |
|
|
<tr> |
|
|
<td class="apiref-table-right"> |
|
|
<td class="apiref-table-right"> |
|
|
<code th:text="'curl --include --request PUT --header "Content-Type: application/json" --data \'{"title":"The Witcher: Blood of Elves","author":"Andrzej Sapkowski","year":1999,"isbn":"3213221-3","price":22.49}\' ' + ${baseUrl} + 'api/booklist/2'"></code> |
|
|
|
|
|
|
|
|
<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} + 'api/booklist/2'"></code> |
|
|
<br> |
|
|
<br> |
|
|
<small th:text="${#messages.msgOrNull('page.text.apiref.edit.info')} ?: 'page.text.apiref.edit.info'">page.text.apiref.edit.info</small> |
|
|
|
|
|
|
|
|
<small th:text="${#messages.msgOrNull('page.text.apiref.book.edit.info')} ?: 'page.text.apiref.book.edit.info'">page.text.apiref.book.edit.info</small> |
|
|
|
|
|
<br> |
|
|
|
|
|
<small th:text="${#messages.msgOrNull('page.text.apiref.unix.info')} ?: 'page.text.apiref.unix.info'">page.text.apiref.unix.info</small> |
|
|
</td> |
|
|
</td> |
|
|
</tr> |
|
|
</tr> |
|
|
|
|
|
|
|
|
<tr> |
|
|
<tr> |
|
|
<th class="apiref-table-right apiref-table-title"> |
|
|
<th class="apiref-table-right apiref-table-title"> |
|
|
<h3 th:text="${#messages.msgOrNull('page.text.apiref.delete')} ?: 'page.text.apiref.delete'"> |
|
|
|
|
|
page.text.apiref.delete |
|
|
|
|
|
|
|
|
<h3 th:text="${#messages.msgOrNull('page.text.apiref.book.delete')} ?: 'page.text.apiref.book.delete'"> |
|
|
|
|
|
page.text.apiref.book.delete |
|
|
</h3> |
|
|
</h3> |
|
|
</th> |
|
|
</th> |
|
|
<th></th> |
|
|
<th></th> |
|
@ -149,16 +183,42 @@ |
|
|
<td class="apiref-table-right"> |
|
|
<td class="apiref-table-right"> |
|
|
<code th:text="'curl --request DELETE ' + ${baseUrl} + 'api/booklist/2'"></code> |
|
|
<code th:text="'curl --request DELETE ' + ${baseUrl} + 'api/booklist/2'"></code> |
|
|
<br> |
|
|
<br> |
|
|
<small th:text="${#messages.msgOrNull('page.text.apiref.edit.info')} ?: 'page.text.apiref.edit.info'">page.text.apiref.edit.info</small> |
|
|
|
|
|
|
|
|
<small th:text="${#messages.msgOrNull('page.text.apiref.book.edit.info')} ?: 'page.text.apiref.book.edit.info'">page.text.apiref.book.edit.info</small> |
|
|
|
|
|
<br> |
|
|
|
|
|
<small th:text="${#messages.msgOrNull('page.text.apiref.unix.info')} ?: 'page.text.apiref.unix.info'">page.text.apiref.unix.info</small> |
|
|
|
|
|
</td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
<th class="apiref-table-right apiref-table-title"> |
|
|
|
|
|
<h3 th:text="${#messages.msgOrNull('page.text.apiref.author.edit')} ?: 'page.text.apiref.author.edit'"> |
|
|
|
|
|
page.text.apiref.author.edit |
|
|
|
|
|
</h3> |
|
|
|
|
|
</th> |
|
|
|
|
|
<th></th> |
|
|
|
|
|
</tr> |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td class="apiref-table-right"> |
|
|
|
|
|
<code th:text="'curl --include --request PUT --header "Content-Type: application/json" --data \'{"firstName":"Tanya","lastName":"Rose"}\' ' + ${baseUrl} + 'api/authors/1'"></code> |
|
|
|
|
|
<br> |
|
|
|
|
|
<small th:text="${#messages.msgOrNull('page.text.apiref.author.edit.info')} ?: 'page.text.apiref.author.edit.info'">page.text.apiref.author.edit.info</small> |
|
|
|
|
|
<br> |
|
|
|
|
|
<small th:text="${#messages.msgOrNull('page.text.apiref.unix.info')} ?: 'page.text.apiref.unix.info'">page.text.apiref.unix.info</small> |
|
|
</td> |
|
|
</td> |
|
|
</tr> |
|
|
</tr> |
|
|
</tbody> |
|
|
</tbody> |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td> |
|
|
|
|
|
<a class="btn btn-success" th:href="@{__${listpage}__}" |
|
|
|
|
|
th:text="${#messages.msgOrNull('button.page.list.return')} ?: 'button.page.list.return'"> |
|
|
|
|
|
button.page.list.return |
|
|
|
|
|
</a> |
|
|
|
|
|
</td> |
|
|
|
|
|
<td></td> |
|
|
|
|
|
</tr> |
|
|
</table> |
|
|
</table> |
|
|
|
|
|
|
|
|
<a class="btn btn-success" th:href="@{__${listpage}__}" |
|
|
|
|
|
th:text="${#messages.msgOrNull('button.page.list.return')} ?: 'button.page.list.return'"> |
|
|
|
|
|
button.page.list.return |
|
|
|
|
|
</a> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</body> |
|
|
</body> |
|
|
</html> |
|
|
</html> |