Skip to content

Latest commit

 

History

History
62 lines (45 loc) · 796 Bytes

api_version.md

File metadata and controls

62 lines (45 loc) · 796 Bytes

GET - API Version

Used to get the API Version

URL : /api/v1/

Method : POST

Auth required : NO

Data constraints

{
    "date": "[timestring]",
    "explanation": "[password in plain text]",
    "unit": "[ ]"
    "data": "[Returned type: string]"
}

Data example

{
  "data": "1.0",
  "date": "2017-12-29 22:38",
  "explanation": "Gerneral Information: API Version v1.0",
  "unit": "None"
}

Success Response

Code : 200 OK

Content example

{
  "data": "1.0",
  "date": "2017-12-29 22:38",
  "explanation": "Gerneral Information: API Version v1.0",
  "unit": "None"
}

Error Response

Condition : TODO

Code : 400 BAD REQUEST

Content :

{
    "non_field_errors": [
        "TODO"
    ]
}