TAŇBA-OOH Әзірлеушілерге

Citizen complaint form

GET /v1/complaint

https://verify.tanba-ooh.kz/v1/complaint

Анықтамалықтың техникалық мәтіні ағылшын тілінде жазылған.

HTML form, served at /complaint on the verify host. ?code= prefills the structure code.

Аутентификация

Қажет емес. Шақыру ашық.

Параметрлер

АтауыОрныТүріМіндеттіСипаттамаМысал
codeсұрауstringжоқStructure code to prefill in the form.ALM-0012
langсұрауstringжоқLanguage of the page: kk, ru or en. kk, ru, enkk

Жауаптар

200 HTML form.

text/html

Қателер

Қателер problem құжаты (application/problem+json) түрінде, тұрақты code өрісімен келеді.

МәртебесіМағынасы
429Rate limit; see Retry-After.

Код мысалдары

curl

curl 'https://verify.tanba-ooh.kz/v1/complaint'
Python
import requests

response = requests.get(
    "https://verify.tanba-ooh.kz/v1/complaint",
)
print(response.status_code, response.text)
Go
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	req, err := http.NewRequest("GET", "https://verify.tanba-ooh.kz/v1/complaint", nil)
	if err != nil {
		panic(err)
	}
	resp, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer resp.Body.Close()
	data, _ := io.ReadAll(resp.Body)
	fmt.Println(resp.Status, string(data))
}