diff --git a/bookstore/src/main/resources/messages.properties b/bookstore/src/main/resources/messages.properties index 439de1f..5f31c53 100644 --- a/bookstore/src/main/resources/messages.properties +++ b/bookstore/src/main/resources/messages.properties @@ -60,12 +60,16 @@ page.text.list.delete = Delete page.text.list.edit = Edit page.text.list.json = Get -page.text.apiref.warning = NOTE\:\ these direct JSON keys may differ in name \&\ count when comparing to publicly exposed JSON book data due to custom JSON serializers used in Java code. +page.text.apiref.warning.a = NOTE\:\ these direct JSON keys may differ in name \&\ count when comparing to publicly exposed JSON book data due to custom JSON serializers used in Java code. +page.text.apiref.warning.b = NOTE\:\ You may need to escape \&\ symbol when using multiple parameters with curl command in a shell environment. page.text.apiref.endpoints = REST API end points page.text.apiref.examples = Direct search examples page.text.apiref.book.add = Adding a book +page.text.apiref.book.add.a = Without author and category information\: +page.text.apiref.book.add.b = With author and category information\: + page.text.apiref.book.edit = Editing an existing book page.text.apiref.book.delete = Deleting an existing book page.text.apiref.book.get = Getting information about an existing book @@ -73,7 +77,7 @@ page.text.apiref.book.get = Getting information about an existing book page.text.apiref.author.edit = Editing an existing author page.text.apiref.book.edit.info = Where suffix number 2 is a book ID -page.text.apiref.unix.info = \*\Unix-alike clients. Escape quotes (\\"\) on Windows (may not required on MinGW setups). +page.text.apiref.unix.info = These syntaxes are for Unix-alike clients. On Windows, escape quotes (\\"\) (may not required on MinGW setups). page.text.apiref.author.edit.info = Where suffix number 1 is an author ID diff --git a/bookstore/src/main/resources/templates/apiref.html b/bookstore/src/main/resources/templates/apiref.html index 65820f2..2e08db9 100644 --- a/bookstore/src/main/resources/templates/apiref.html +++ b/bookstore/src/main/resources/templates/apiref.html @@ -17,8 +17,8 @@ page.title.webform.apiref -

- page.text.apiref.warning +

+ page.text.apiref.warning.a

@@ -39,7 +39,9 @@ + + + + + + @@ -163,11 +200,35 @@ + + + + + + @@ -181,7 +242,9 @@
- placeholder + + code placeholder +
- placeholder + + code placeholder +
- placeholder + + code placeholder + page.text.apiref.examples + + page.text.apiref.warning.b +
- placeholder + + code placeholder +
- placeholder + + code placeholder +
- placeholder + + code placeholder +
- + + code placeholder +
page.text.apiref.book.edit.info
@@ -147,8 +164,28 @@
- + + page.text.apiref.book.add.a +
+ + code placeholder + +
+ + page.text.apiref.book.add.b + +
+ + code placeholder + +
page.text.apiref.unix.info
- + + page.text.apiref.book.add.a +
- page.text.apiref.book.edit.info + + code placeholder + +
+ + page.text.apiref.book.add.b +
- page.text.apiref.unix.info + + code placeholder + +
+ + page.text.apiref.book.edit.info + +
+ + page.text.apiref.unix.info +
- + + code placeholder +
page.text.apiref.book.edit.info
@@ -199,7 +262,9 @@
- + + code placeholder +
page.text.apiref.author.edit.info