Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Include Page
SGTDOC:О «Подсказках»: город по IP-адресу
SGTDOC:О «Подсказках»: город по IP-адресу

Запрос

POST (21.1+):

No Format
curl -X POST \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{ "ip": "2a0d:e100::12", "language": "ru" }' \
  http://ВАШ_СЕРВЕР:ПОРТ/suggestions/api/4_1/rs/iplocate/address

...

GET:

No Format
curl -X GET \
  -H "Accept: application/json" \
  http://ВАШ_СЕРВЕР:ПОРТ/suggestions/api/4_1/rs/iplocate/address?ip=2a0d:e100::12

...