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

Нет описания правки
Нет описания правки
Строка 3: Строка 3:
'''Параметры REST запроса (Parameters of REST request)'''
'''Параметры REST запроса (Parameters of REST request)'''


'''URL:'''<1c>http://<server-name>[:server-port]/api/v2/{extension}/codes?
'''URL:'''<syntaxhighlight lang='1c'>http://<server-name>[:server-port]/api/v2/{extension}/codes?
omsId={omsId}&orderId={orderId}&gtin={gtin}&quantity={quantity}&
omsId={omsId}&orderId={orderId}&gtin={gtin}&quantity={quantity}&
lastBlockId={lastBlockId}</1c>
lastBlockId={lastBlockId}</syntaxhighlight>


'''Method:'''GET
'''Method:'''GET
Строка 23: Строка 23:
Пример REST запроса.  
Пример REST запроса.  


'''GET''' <1c>/api/v2/tobacco/codes?orderId=b024ae09-ef7c-449e-b461-
'''GET''' <syntaxhighlight lang='1c'>/api/v2/tobacco/codes?orderId=b024ae09-ef7c-449e-b461-
05d8eb116c79&gtin=01334567894339&quantity=15&lastBlockId=0&omsId=CDF
05d8eb116c79&gtin=01334567894339&quantity=15&lastBlockId=0&omsId=CDF
12109-10D3-11E6-8B6F-0050569977A1 HTTP/1.1</1c>
12109-10D3-11E6-8B6F-0050569977A1 HTTP/1.1</syntaxhighlight>


'''Accept:''' application/json
'''Accept:''' application/json