API v1 index
const options = {method: 'GET'};
fetch('http://localhost:4005/v1/arc', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:4005/v1/arc"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}curl --request GET \
--url http://localhost:4005/v1/arcimport requests
url = "http://localhost:4005/v1/arc"
response = requests.get(url)
print(response.text){
"status": "<string>",
"message": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}API
API v1 index
Protected API v1 index endpoint
GET
/
v1
/
arc
API v1 index
const options = {method: 'GET'};
fetch('http://localhost:4005/v1/arc', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:4005/v1/arc"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}curl --request GET \
--url http://localhost:4005/v1/arcimport requests
url = "http://localhost:4005/v1/arc"
response = requests.get(url)
print(response.text){
"status": "<string>",
"message": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Was this page helpful?