Skip to content

check for updates

GET
/api/v1/update/check

Controller:

github.com/raghavyuva/nixopus-api/internal/features/update/controller.(*UpdateController).CheckForUpdates

Middlewares:

  • github.com/go-fuego/fuego.defaultLogger.middleware
  • github.com/raghavyuva/nixopus-api/internal.(*Router).Routes.func1
  • github.com/raghavyuva/nixopus-api/internal.(*Router).Routes.func2

Parameters

Header Parameters

Accept
Typestring

Responses

OK
JSON
{
"current_version": "string",
"last_checked": "string",
"latest_version": "string",
"update_available": true
}

Samples

cURL
curl -X GET http://localhost:8080/api/v1/api/v1/update/check
JavaScript
fetch("http://localhost:8080/api/v1/api/v1/update/check")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("http://localhost:8080/api/v1/api/v1/update/check");
Python
import requests
response = requests.get("http://localhost:8080/api/v1/api/v1/update/check")
print(response.json())
Powered by VitePress OpenAPI

Released under the Fair-Code Sustainable Use License