Recupera la versión de la API
Recupera la versión actual de la API.
Punto final: /api/version
curl -X GET "https://service.dinamonetworks.io/api/version" -H "accept: application/json; charset=utf-8"
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
Request request = new Request.Builder()
.url("https://service.dinamonetworks.io/api/version")
.method("GET", null)
.build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://service.dinamonetworks.io/api/version");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://service.dinamonetworks.io/api/version"
method := "GET"
client := &http.Client {
}
req, err := http.NewRequest(method, url, nil)
if err != nil {
fmt.Println(err)
return
}
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
var settings = {
"url": "https://service.dinamonetworks.io/api/version",
"method": "GET",
"timeout": 0,
};
$.ajax(settings).done(function (response) {
console.log(response);
});
Respuesta
{
"version": "0.0.13",
"versionapi": "0.0.13 - 13/08/2021 18:05:28",
"now": "2021-09-03T19:41:58.890174914Z",
"environment": "Production"
}