-
-
Notifications
You must be signed in to change notification settings - Fork 691
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
Endoflife api/v1 #2080
base: master
Are you sure you want to change the base?
Endoflife api/v1 #2080
Conversation
Few notes:
|
Wrote up a quick draft for the specification: endoflife-date/releases.json#1 |
5e0f74c
to
f8e238b
Compare
I modified the plugin to use a generator. The script itself is much more simple, but the corresponding template will be a bit complex (like the |
Which redirects ? The redirects based on |
The v1 redirects. |
Ok, that can wait if we decide to give time to migrate to client's maintainers. |
f8e238b
to
a471521
Compare
@captn3m0, what is your opinion about those subjects :
|
a471521
to
451c337
Compare
a301630
to
aa324fd
Compare
@captn3m0 I have worked on the API v1, here is where I am :
There are still a lot of things to do but it's going well so far. |
Don't like using |
By introducing the |
@captn3m0, another test, with a a new schema : https://deploy-preview-2080--endoflife-date.netlify.app/api/v1/android/info.json. Just toying a little bit, this is in no way a proposal. But let me know what you think of the ideas.
I am also wondering about the |
Think we can, we have Netlify header support. It's hacky, but if we set permalinks for these files correctly, and set content-type headers (application/json) from Netlify _headers file, it should work. |
1e35540
to
d6438df
Compare
Just tried in with
I tried to also redirect
|
They can be used for documenting things such as related runtime versions, custom dates that cannot be expressed using the default columns, etc. See the documentation in the contribution guide for more information on how to use them. This is only an initial support and: - The allowed positions have been limited to positions that have a chance to be used. More positions may be added in the future if needed. - Those properties may also be exposed in the new API responses (after #2080). Closes #3642.
They can be used for documenting things such as related runtime versions, custom dates that cannot be expressed using the default columns, etc. See the documentation in the contribution guide for more information on how to use them. This is only an initial support and: - The allowed positions have been limited to positions that have a chance to be used. More positions may be added in the future if needed. - Those properties may also be exposed in the new API responses (after #2080). Closes #3642.
cff3ce2
to
94f279f
Compare
94f279f
to
6852ccd
Compare
6852ccd
to
e98bc80
Compare
@captn3m0, any chance to see this reviewed (and hopefully merged !) before the end of the year ? I spent a lot of time on this and I am a little sad that I had little feedback (thanks to those that did it 👍). |
OMG that would an awesome 🎅 🎁 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried several endpoints/combinations at https://deploy-preview-2080--endoflife-date.netlify.app/docs/api/v1/ and all LGTM. I vote for merging this in current shape 👍
5bb1e3b
to
9a06292
Compare
9a06292
to
868952a
Compare
868952a
to
9fd9b2f
Compare
9fd9b2f
to
c9a10f0
Compare
c9a10f0
to
c22d30b
Compare
🙌 |
c22d30b
to
67af7fd
Compare
67af7fd
to
00d746a
Compare
🙏 |
00d746a
to
4d2ea74
Compare
👏 |
Would it be possible to update this branch to pick up some of the latest versions? PS I also wholeheartedly support having this PR reviewed and merged @captn3m0 🙂 |
4d2ea74
to
1d44f32
Compare
This is a major rework of the API with a lot of breaking changes. See CHANGELOG_API.md for more information. Note that we thought of disabling API generation in development (using JEKYLL_ENV like the Jekyll Feed plugin - see https://github.com/jekyll/jekyll-feed/blob/master/lib/jekyll-feed/generator.rb#L145), but it was finally reverted. It does not work well with Netlify preview, and generate production URL (i.e. https://endoflife.date URLs) in development which makes it difficult to use.
1d44f32
to
9b9a9c5
Compare
This is a major rework of the API that fixes a lots of issues, but introduces a lot of breaking changes. See https://github.com/endoflife-date/endoflife.date/blob/2062-expose-product-info-api/CHANGELOG_API.md for more information.
Note that I thought of disabling API generation in development (using JEKYLL_ENV like the Jekyll Feed plugin - see https://github.com/jekyll/jekyll-feed/blob/master/lib/jekyll-feed/generator.rb#L145), but I finally reverted it. It does not work well with Netlify preview, and generate production URL (i.e. https://endoflife.date/ URLs) in development which makes testing more difficult.