Resetar estado local de desenvolvimento
curl --request POST \
--url http://localhost:4000/v1/dev/resetconst options = {method: 'POST'};
fetch('http://localhost:4000/v1/dev/reset', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:4000/v1/dev/reset"
response = requests.post(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:4000/v1/dev/reset"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"ok": true,
"reset": true
}Resetar estado local de desenvolvimento
Endpoint destinado apenas a desenvolvimento local e testes.
POST
/
v1
/
dev
/
reset
Resetar estado local de desenvolvimento
curl --request POST \
--url http://localhost:4000/v1/dev/resetconst options = {method: 'POST'};
fetch('http://localhost:4000/v1/dev/reset', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:4000/v1/dev/reset"
response = requests.post(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:4000/v1/dev/reset"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"ok": true,
"reset": true
}