News for hackers. Stuff that matters.
Re:RFC: Hacker News – OpenAPI Specification for the REST API by wiremock on Monday August 14, 2023 @10:12AM (#37121242)
We're working on a demo for Hacker News REST API mocking in the Android client integration tests, and as a part of it we've assembled an OpenAPI specification for its endpoints provided by Firebase. It's based on the existing documentation and examples. Feedback will be appreciated!

WTH is OpenAPI we use? OpenAPI is an open standard, originally inherited from Swagger. It can be used to serve the docs on the website, IDE integrations, to generate client code and to create various API mocks for the integration tests.

Re:RFC: Hacker News – OpenAPI Specification for the REST API by dandevs on Monday August 14, 2023 @12:05PM (#37122658)
If you want to generate a Java client for testing, you can use Fern to generate one: https://github.com/fern-api/fern-java

disclaimer: I'm a maintainer of Fern.

Re:RFC: Hacker News – OpenAPI Specification for the REST API by onenashev on Tuesday August 15, 2023 @01:42PM (#37136958)
Yeah, there are many projects for client generation from OpenAPI, and the number keeps growing. Make sure to add your tool to https://tools.openapis.org/ !