Using ChatGPT to Generate a Retrofit API Client Automatically
This video walks through an example of applying ChatGPT to generate a Retrofit API client automatically based on a Java Spring WebMVC controller created for my CS 891 class at Vanderbilt (see http://www.dre.vanderbilt.edu/~schmidt/cs891 for all the material in this class).
I've been manually writing proxies for Spring WebMVC clients to show my students, but until yesterday hadn't used Retrofit (which generates proxies automatically) since I didn't have time to read the Retrofit documentation and convert my code. By using ChatGPT I was able to rapidly generate the Retrofit proxies automatically and integrate this generated code into my example Spring WebMVC application, which saved me hours--if not days--of plowing through Retrofit documentation trying to do this transition manually with tedious and error-prone trial-and-error.
All source code shown in this video (both hand-written and auto-generated by ChatGPT) is available in open-source form from https://github.com/douglascraigschmidt/LiveLessons/tree/master/WebMVC/ex4.
Видео Using ChatGPT to Generate a Retrofit API Client Automatically канала Douglas Schmidt
I've been manually writing proxies for Spring WebMVC clients to show my students, but until yesterday hadn't used Retrofit (which generates proxies automatically) since I didn't have time to read the Retrofit documentation and convert my code. By using ChatGPT I was able to rapidly generate the Retrofit proxies automatically and integrate this generated code into my example Spring WebMVC application, which saved me hours--if not days--of plowing through Retrofit documentation trying to do this transition manually with tedious and error-prone trial-and-error.
All source code shown in this video (both hand-written and auto-generated by ChatGPT) is available in open-source form from https://github.com/douglascraigschmidt/LiveLessons/tree/master/WebMVC/ex4.
Видео Using ChatGPT to Generate a Retrofit API Client Automatically канала Douglas Schmidt
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Combining Object-Oriented & Functional Programming in Java (Part 2)Overview of Java: Key Functional Concepts and FeaturesOverview of Java: Case Study ex0Java "Happens-Before" Relationships: IntroductionJava Monitor Object Motivating ExampleSection 1: Introduction to Android ConcurrencyWalkthrough of Assignment 2 (Part 1: the Server)Assignment 4 WalkthroughKey Blocking Operators in the Mono ClassThe Java Executor Framework: Overview of Java Thread PoolsOverview of the Java Memory ModelImplementing a Monolithic Flight Listing App using Spring BootOverview of Atomic OperationsAdvanced Java CompletableFuture Features: Introducing Completion Stage MethodsOverview of Java: Key Object-Oriented Concepts and FeaturesIntroduction to Teaching Online ProgrammingComparing Sequential and Parallel Algorithms for Computing Factorials with JavaCS 253: Parallel Functional Programming with Java, Android, & Spring WebFlux: Overview (Part 3)Common Java Streams Factory MethodsKey Suppressing Operators in the Mono Class (Part 2)