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

Материал из База знаний АО АСП
Перейти к навигации Перейти к поиску
Новая страница: «======= Запрос (Request) ======= Параметры REST запроса приведены ниже: <syntaxhighlight lang='bash'> 'URL: </syntaxhighlight>' <1c>http://<server-name>[:server-port]/api/v2/{extension}/rollout?omsId={omsId}?reportId={reportId}</1c> <syntaxhighlight lang='bash'> 'Method: </syntaxhighlight>'GET <syntaxhighlight lang='bash'> 'Content-Type: </syntaxhighlight>'application/json <syntaxhighlight lang='bash'> 'clientToken: <...»
 
Нет описания правки
 
(не показано 5 промежуточных версий этого же участника)
Строка 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 запрос номера документа]]
 
<vote type=1 />

Текущая версия от 13:13, 2 апреля 2025

Запрос (Request)

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

URL:

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

'''Content-Type:'''application/json

'''clientToken:'''{clientToken}

'''userName:'''{userName}

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

[[File:84_sk.png]]

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

<syntaxhighlight lang='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
0.00
(0 голосов)