API Versioning
Pin a version in anything you want to keep working
Every endpoint is available under an explicit major version:
https://gws.gplates.org/v1/reconstruct/reconstruct_points/?points=95,54,142,-33&time=140&model=MULLER2019
The same endpoint without the prefix (
) also works, but it always points at whichever version is current, so its behaviour can change after a major release.https://gws.gplates.org/reconstruct/...
Use the
form in research scripts, notebooks, teaching material and any code published with a paper, so
the results stay reproducible.
What changes between versions
- Minor and patch releases (e.g. v1.1.0 → v1.2.0) are backward compatible: same endpoints, parameters, response
formats and results. They replace the running version in place and the URL prefix stays
./v1/ - Major releases (e.g. v1 → v2) may remove or rename endpoints or parameters, change response formats, or
change results (for example updated plate models or algorithms). A major release is published under a new prefix
(
) and runs alongside the previous one, so/v2/
keeps working./v1/
Which version answered my request?
Every response includes an
header with the full release number:X-GWS-Version
curl -sI "https://gws.gplates.org/version/" | grep -i x-gws-version# X-GWS-Version: v1.1.0
The
endpoint returns the same value. Log it alongside your results
if you use the unversioned URLs.
Deprecation and retirement
When a new major version is released, the previous one is deprecated but keeps running for an announced period. The deprecation and retirement dates are published in the release notes, and responses from the deprecated version carry standard headers you can check for:
| Header | Meaning | | --- | --- | |
| This version is deprecated (RFC 9745). | |Deprecation
| The date after which this version may be switched off (RFC 8594). | |Sunset
| Where the newer version lives. |Link: <...>; rel="successor-version"
At the end of the deprecation period, the unversioned URLs switch to the new version. The old
URLs are retired once their usage is negligible./vN/