Listar catalogo de rotas
curl --request GET \
--url http://localhost:4000/v1/routesconst options = {method: 'GET'};
fetch('http://localhost:4000/v1/routes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:4000/v1/routes"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:4000/v1/routes"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}[
{
"method": "<string>",
"path": "<string>",
"resource": "<string>"
}
]Listar catalogo de rotas
GET
/
v1
/
routes
Listar catalogo de rotas
curl --request GET \
--url http://localhost:4000/v1/routesconst options = {method: 'GET'};
fetch('http://localhost:4000/v1/routes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:4000/v1/routes"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:4000/v1/routes"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}[
{
"method": "<string>",
"path": "<string>",
"resource": "<string>"
}
]