Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add OpenAPI specification for the Hacker News REST API #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
oleg-nenashev wants to merge 1 commit into HackerNews:master
base: master
Choose a base branch
Loading
from oleg-nenashev:openapi_spec

Conversation

@oleg-nenashev
Copy link

@oleg-nenashev oleg-nenashev commented Aug 14, 2023
edited
Loading

This pull request adds OpenAPI specification for the Hacker News API, as documented in the README file. This OpenAPI specification can be used to serve the documentation on the website, to generate client code and to create various API mocks for the integration tests.

In fact, I am currently doing the latter with WireMock and its SaaS edition WireMock Cloud, to demonstrate the templates feature we rolled out in WireMock a while ago. Initially I created the specification for just one request, but then decided that it would be nice to finalize it and to contribute back to the project

I used the most recent version of the specification

Feedback is welcome!

References

kinow, jonbrohauge, ilya-manin, rvente, h1t35h, Indyandie, bbb651, ashu-tosh-kumar, mfbx9da4, triesharder, and 2 more reacted with thumbs up emoji
Copy link

@jamietanna jamietanna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any required blocks in the objects coming back, is that right that every field may be optional?

Copy link
Author

@jamietanna it is not documented, and it is hard to say for sure for some of the fields. IDs should be required for sure

Copy link
Author

Also Mock API specification created as a part of my blog post demonstrating creation of Mock API specifications in WireMock and WireMock Cloud: wiremock/api-template-library#15

Copy link

hamiecod commented Sep 5, 2025

Why hasn't this been merged?

esafak and Buggem reacted with thumbs up emoji thatbeautifuldream reacted with eyes emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

4 more reviewers

@jamietanna jamietanna jamietanna left review comments

@kayang84 kayang84 kayang84 approved these changes

@RamsesAupart RamsesAupart RamsesAupart approved these changes

@96xxzqfhcf-hash 96xxzqfhcf-hash 96xxzqfhcf-hash approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /