Finch-API/finch-api-java ? reverse-engineered prompt
Reverse engineered prompt
Build me a Java library for the Finch API that feels easy to use in a normal app.
I want it to handle authenticating with an access token, loading settings from environment variables when possible, and making requests to Finch’s REST API with a clean Java style. It should be nice for Java developers, so use Optional instead of nullable values, Stream instead of Sequence, and CompletableFuture for async work. Include a simple client I can create from env or configure manually, plus a way to tweak options without rebuilding everything.
Please also include a few example calls for things like listing HRIS directory data, and make sure the library is set up like a real published SDK with solid docs and a small example project. If there are any current Finch API details or auth requirements I should know, look them up online as needed.
Are you gonna build this?
make sure you review the code using coderabbit