Rest API
Learning objectives
Monday
- Review of the friday exercise: Activity Logger part 2. Prepare a short presentation of your solution.
Tuesday (class)
Prepare for class
Videos
Reading
- REST API Tutorial. Read the following chapters:
- Guiding Principles of REST
- What is a Resource?
- Resource Methods
- REST API URI Naming Conventions
- Idempotence
- HTTP Methods
- HTTP Response Codes
- Javalin documentation (skim quickly)
Exercises in in class
Wednesday (CodeLab)
Thursday (class)
Prepare for class
Video
Reading
- Logback - skim
- Javalin Exception Mapping
- 3rd semester documentation format
- Rest-assured.io (5 min)
- Short Rest Assured Tutorial, read 1-7 (5 min)
- Hamcrest guide (skim and use for reference 10 min)
Toolbox
Exercises in class
- Gherkin Syntax
- Hamcrest Matchers
- Testing Poems API
- Logging
- We will work on transforming a simple API into a more advanced API with error handling and logging.