Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: “If we are using Link
in any of the models, then the generated models would use the mapped org.springframework.hateoas.Link
class instead of the model defined in the YAML file.”
A block of code is set as follows:
const Footer = () => { return ( <div> <footer className="text-center p-2 border-t-2 bggray- 200 border-gray-300 text-sm"> No © by Ecommerce App.{" "} <a href=https://github.com/PacktPublishing/Modern- API-Development-with-Spring-and-Spring-Boot> Modern API development with Spring and Spring Boot </a> </footer> </div> ); }; export default Footer;
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
<Error> <errorCode>PACKT-0001</errorCode> <message>The system is unable to complete the request. Contact system support.</message> <status>500</status> <url>http://localhost:8080/api/v1/carts/1</url> <reqMethod>GET</reqMethod> </Error>
Any command-line input or output is written as follows:
$ curl --request POST 'http://localhost:8080/api/v1/carts/1/items' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --data-raw '{ "id": "1", "quantity": 1, "unitPrice": 2.5 }' []
Bold: Indicates a new term, an important word, or words that you see onscreen. For instance, words in menus or dialog boxes appear in bold. Here is an example: “Select System info from the Administration panel.”
Tips or important notes
Appear like this.