News for hackers. Stuff that matters.
Re:Launch HN: Payload (YC S22) – Headless CMS for Developers by jobsdone on Thursday September 01, 2022 @10:51AM (#32677129)
Oh! I misunderstood your point about versioning. I was thinking versioning of content but you're talking about the API.

That is a harder situation, I think my approach here would be to route requests to the api version on a separate new instance, `v1.example.com/api`, `v2.example.com/api` for example. Any way I can think of handling this scenario in the application layer gets messy right away, but maybe there is a good way I haven't thought about yet. I'll keep this in mind in case as a future feature we could build in or make turn into a plugin perhaps.

Re:Launch HN: Payload (YC S22) – Headless CMS for Developers by cies on Sunday September 04, 2022 @05:40AM (#32711397)
Having a schema generated, one could see if it changed between releases and increase a version number based on that.