Clean and compile the application
In this lesson, we'll test the get published event functionality using the user interface, ensuring our endpoint works correctly and delivers the expected event information to users.
Testing Through the User Interface
First, we need to compile and start our backend application:
# Clean and compile the application
mvn clean compile
# Start the Spring Boot application
mvn spring-boot:runOnce the application is running, we can navigate to the attendee landing page where we should see our test events listed.
When clicking on an event (like "Test Event Three"), the application makes a network request to our /api/v1/published-events/{id} endpoint.
Let's examine what happens in this request:
- The request returns a HTTP 200 OK status
- No authorization header is present, confirming the endpoint is public
- The response includes complete event details and ticket types
The UI displays several key pieces of information from the response:
- Event name
- Venue details
- Event dates
- Event image
- Ticket types with their respective prices
- Purchase options (though not yet implemented)
Summary
- Tested the get published event endpoint through the user interface