(zettel (meta (box-name "manual") (created "20220304164242") (modified "20261109130507") (role "manual") (syntax "zmk") (tags "#api #manual #zettelstore") (title "API: Version data")) (rights read) (content "" "To retrieve the version data, send an HTTP GET request to the endpoint ''/x'', either without the query parameter ''data'', with an empty value, or with ''data=version''.\n\n````\n# curl 'http://127.0.0.1:23123/x'\n(3 0 0 \"dev\" \"7efe008cc3\")\n# curl 'http://127.0.0.1:23123/x?data=version'\n(3 0 0 \"dev\" \"7efe008cc3\")\n````\n\n Zettelstore conforms to the [[Semantic Versioning|https://semver.org/]] standard.\n* The first three numbers represent the major, minor, and patch versions.\n* The first string contains optional pre-release information, for example ``\"dev\"`` for a development version or ``\"preview\"`` for a preview version.\n* The second string contains optional information that identifies the version from a developer's perspective.\n\n==== HTTP Status codes\n; ''200''\n: Retrieval was successful, the body contains an appropriate object.\n; ''400''\n: The value of the query parameter ''data'' is unknown."))