2.2.18.2 запрос: различия между версиями

Материал из База знаний АО АСП
Перейти к навигации Перейти к поиску
Нет описания правки
Нет описания правки
Строка 1: Строка 1:
======= Запрос (Request) =======
====== Запрос (Request) ======


Параметры REST запроса приведены ниже:  
Параметры REST запроса приведены ниже:  


<syntaxhighlight lang='bash'>
'''URL:''' <1c>http://<server-name>[:server-port]/api/v2/{extension}/rollout?omsId={omsId}?reportId={reportId}</1c>
'URL:
</syntaxhighlight>' <1c>http://<server-name>[:server-port]/api/v2/{extension}/rollout?omsId={omsId}?reportId={reportId}</1c>


<syntaxhighlight lang='bash'>
'''Method:'''GET
'Method:
</syntaxhighlight>'GET


<syntaxhighlight lang='bash'>
'''Content-Type:'''application/json
'Content-Type:
</syntaxhighlight>'application/json


<syntaxhighlight lang='bash'>
'''clientToken:'''{clientToken}
'clientToken:
</syntaxhighlight>'{clientToken}


<syntaxhighlight lang='bash'>
'''userName:'''{userName}
'userName:
</syntaxhighlight>'{userName}


Параметры строки запроса (Query string parameters)
Параметры строки запроса (Query string parameters)

Версия от 07:58, 28 марта 2025

Запрос (Request)

Параметры REST запроса приведены ниже:

URL: <1c>http://<server-name>[:server-port]/api/v2/{extension}/rollout?omsId={omsId}?reportId={reportId}</1c>

Method:GET

Content-Type:application/json

clientToken:{clientToken}

userName:{userName}

Параметры строки запроса (Query string parameters)

Пример запроса

<1c> GET /api/v2/{extension}/rollout?omsId=123456789?reportId=46795d19-5024-404e-9275-959ac89ccb57 HTTP/1.1 Accept: application/json clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f Host: localhost:8080 </1c>

0.00
(0 голосов)