Appendix B SAmple Code Data Mocking We choose Swagger to mock web services because it gives features to design, build, test, and share API along with mocking the web services as per the recommendation of OpenAPI guidelines, which are meant to provide a standard format to unify how an industry defines and describes RESTful APIs. You can use any of the following API mocking frameworks: • Swagger • RAML • WireMock Implementation and Logic The Angular technology stack (Typescripts, Webpack, NPM, and NodeJS), as shown in Figure B-2, would contain UI implementation and application logic to handle the state of the client-side application. Client-side applications have web hooks; these hooks are responsible for getting the data from the server-side application. Complex business logic and calculation should be avoided on the client side, as one can manipulate it on the browser’s developer tools. Angular REST API Apache Camel REST API Swagger UI Logic Integration Logic Mocking API Business Logic Services Figure B-2. Implementation and logic 336
![Building Digital Experience Platforms - Page 346](/cdn-cgi/image/width=600,quality=80,format=webp/https://cdn.relayto.com/images_originals/600ee85d8897e.jpeg)