Skip to content

abramche/rijksmuseum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Rijksmuseum API Java Client

A Java 21-based small test framework Rijksmuseum Collection API, using OkHttp for HTTP requests and Jackson for JSON (de)serialization. Includes JUnit 5 with Allure reporting and a GitHub Actions CI workflow.


πŸ› οΈ Tech Stack

  • Java 21
  • Maven
  • OkHttp
  • Jackson
  • SLF4J + Logback
  • JUnit 5
  • Allure Reporting
  • GitHub Actions CI

βœ… Prerequisites

Before you run this project, make sure you have:

  • Java 21 installed

  • Maven 3 installed (mvn -v should show version 3.8 or higher)

  • Allure CLI installed for local report generation (optional)

    brew install allure   # macOS
    scoop install allure  # Windows (Scoop)

    -or-

  • IntelliJ IDEA or other IDE (Maven will pick up an Allure plugin)


πŸ” API Key

This project uses the Rijksmuseum legacy API which requires an API key.

πŸ”‘ Set up the API Key

Get your API key from Rijksmuseum API registration.

export RIJKSMUSEUM_API_KEY=your_api_key_here

-or- add it to Windows environment variables (shell restart required)

-or- add it to your IDE's run configuration.


πŸš€ Run the Project

  1. Building the project

mvn clean compile exec:java

  1. Running the tests

mvn clean test

  1. Generate the report

When running from IDE, run the maven plugin allure:serve goal

When running locally, make sure Allure executable is in PATH, then

mvn allure:report
allure serve target/allure-results

Alternatively, check the GitHub actions tab


πŸ“‹ License

This project is open source and free to use under the MIT License. Enjoy!

About

A simple REST testing project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages