|
@ -345,7 +345,7 @@ adminUser = 'admin:admin' |
|
|
</small> |
|
|
</small> |
|
|
<br> |
|
|
<br> |
|
|
<code th:text=" |
|
|
<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}\' ' + |
|
|
|
|
|
|
|
|
'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} |
|
|
' --user ' + ${adminUser} |
|
|
"> |
|
|
"> |
|
@ -377,7 +377,7 @@ adminUser = 'admin:admin' |
|
|
</small> |
|
|
</small> |
|
|
<br> |
|
|
<br> |
|
|
<code th:text=" |
|
|
<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"}}\' ' + |
|
|
|
|
|
|
|
|
'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} |
|
|
' --user ' + ${adminUser} |
|
|
"> |
|
|
"> |
|
@ -448,7 +448,7 @@ adminUser = 'admin:admin' |
|
|
</small> |
|
|
</small> |
|
|
<br> |
|
|
<br> |
|
|
<code th:text=" |
|
|
<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"}}\' ' + |
|
|
|
|
|
|
|
|
'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} |
|
|
' --user ' + ${adminUser} |
|
|
"> |
|
|
"> |
|
|