mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-24 07:52:14 +03:00
52 lines
826 B
ReStructuredText
52 lines
826 B
ReStructuredText
.. meta::
|
|
:description: Hasura version API reference
|
|
:keywords: hasura, docs, version API, API reference
|
|
|
|
.. _version_api_reference:
|
|
|
|
Version API Reference
|
|
=====================
|
|
|
|
.. contents:: Table of contents
|
|
:backlinks: none
|
|
:depth: 1
|
|
:local:
|
|
|
|
Introduction
|
|
------------
|
|
|
|
The ``/v1/version`` is a public endpoint that responds with the current server version in JSON format.
|
|
|
|
Endpoint
|
|
--------
|
|
|
|
All requests are ``GET`` requests to the ``/v1/version`` endpoint.
|
|
|
|
API Spec
|
|
--------
|
|
|
|
Request
|
|
^^^^^^^
|
|
|
|
.. code-block:: http
|
|
|
|
GET /v1/version HTTP/1.1
|
|
|
|
|
|
Sample response
|
|
^^^^^^^^^^^^^^^
|
|
|
|
.. code-block:: http
|
|
|
|
HTTP/1.1 200 OK
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"version": "v1.0.0-alpha01"
|
|
}
|
|
|
|
Disabling Version API
|
|
---------------------
|
|
|
|
The ``version`` API endpoint is public and cannot be disabled.
|