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

Нет описания правки
 
(не показаны 3 промежуточные версии этого же участника)
Строка 1: Строка 1:
======= Запрос (Request) =======
====== Запрос (Request) ======


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


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


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


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


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


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


<1c>
<syntaxhighlight lang='1c'>
GET /api/v2/{extension}/rollout?omsId=123456789?reportId=46795d19-5024-404e-9275-959ac89ccb57
GET /api/v2/{extension}/rollout?omsId=123456789?reportId=46795d19-5024-404e-9275-959ac89ccb57
HTTP/1.1
HTTP/1.1
Строка 35: Строка 23:
clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f
clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f
Host: localhost:8080
Host: localhost:8080
</1c>
</syntaxhighlight>
[[Category:2.2.18 запрос номера документа]]
[[Category:2.2.18 запрос номера документа]]
<vote type=1 />