Vaadin's new endpoint feature builds on standard REST. It adds developer convenience and security with automatic JavaScript to TypeScript type generation and async TypeScript methods for calling the server. Full-stack type safety and autocomplete everywhere help you code faster and make fewer mistakes. This example uses a SpringBoot backend and Vaadin 17 with LitElement based client-side views.
Shortcuts:
0:00 - Intro
1:02 - Creating the data model in Java (POJO)
1:36 - Defining an endpoint in Java (generates TS types, and type-safe methods to access the server through REST)
3:37 - Importing and using generated TypeScript types
4:07 - Fetching data from the server using async/await
5:50 - Posting data to the server with async/await
Download a starter project: https://start.vaadin.com/
Playlist: • TypeScript and Java web app development
In questa pagina del sito puoi guardare il video online Type-safe server access from TypeScript to Java (REST made easy) della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Vaadin 03 settembre 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 1,623 volte e gli è piaciuto 27 spettatori. Buona visione!