Self-contained Skillable lab for Workshop 1 – APIs and Services. Implement an API client that sends GET, POST, PUT, and DELETE requests and analyses responses.
- Starter code: Maven/Spring Boot project with
ApiClientskeleton to complete. - Skillable instructions:
skillable-lab-w1-apis-services.md(upload this as the lab Instructions in Skillable).
- Java 17+
- Maven 3.6+ (or use included
./mvnw)
./mvnw spring-boot:runComplete the methods in src/main/java/com/jse/module06/lab01/ApiClient.java, then uncomment the example calls in Lab01ApisServicesApplication.run() to test against JSONPlaceholder.
- Module: JSE Module 6 – Building APIs in Java
- Workshop: 1 – APIs and Services
- Learning objectives: Implement API requests (GET, POST, PUT, DELETE) with appropriate headers and bodies; analyse status codes and JSON responses; handle errors.