Newer
Older
web-services / data-computer / examples.http
@Nicolas Thouvenin Nicolas Thouvenin on 23 Oct 2023 2 KB new entrypoint to test/mock error
# File Global Variables: Variables defined in Region without name or request
@baseUrl = http://localhost:31976
#@baseUrl = https://data-computer.services.istex.fr/

###
# @name v1Retrieve
# @save
POST {{baseUrl}}/v1/retrieve HTTP/1.1
Content-Type: application/json

[
	{
		"value":"8RjaJDej5"
	}
]

###
# @name v1collect
POST {{baseUrl}}/v1/collect?indent=true HTTP/1.1
Content-Type: application/json

[
	{
		"value":"8RjaJDej5"
	}
]

###
# @name v1baseLine
POST {{baseUrl}}/v1/base-line HTTP/1.1
Content-Type: application/x-tar
X-Webhook-Success: https://webhook.site/69300b22-a251-4c16-9905-f7ba218ae7e9
X-Webhook-Failure: https://webhook.site/69300b22-a251-4c16-9905-f7ba218ae7e9

< ./example-json.tar.gz

###
## @name v1mockerrorsync
POST {{baseUrl}}/v1/mock-error-sync HTTP/1.1
Content-Type: application/x-tar
X-Webhook-Success: https://webhook.site/69300b22-a251-4c16-9905-f7ba218ae7e9
X-Webhook-Failure: https://webhook.site/69300b22-a251-4c16-9905-f7ba218ae7e9

< ./example-json.tar.gz

###
### @name v1mockerrorasync
POST {{baseUrl}}/v1/mock-error-async HTTP/1.1
Content-Type: application/x-tar
X-Webhook-Success: https://webhook.site/69300b22-a251-4c16-9905-f7ba218ae7e9
X-Webhook-Failure: https://webhook.site/69300b22-a251-4c16-9905-f7ba218ae7e9

< ./example-json.tar.gz

###
# @name v1TreeSegment
POST {{baseUrl}}/v1/tree-segment HTTP/1.1
Content-Type: application/x-tar
X-Webhook-Success: https://webhook.site/69300b22-a251-4c16-9905-f7ba218ae7e9
X-Webhook-Failure: https://webhook.site/69300b22-a251-4c16-9905-f7ba218ae7e9

< ./example-json.tar.gz


###
# @name v1GraphSegment
POST {{baseUrl}}/v1/graph-segment HTTP/1.1
Content-Type: application/x-tar
X-Webhook-Success: https://webhook.site/69300b22-a251-4c16-9905-f7ba218ae7e9
X-Webhook-Failure: https://webhook.site/69300b22-a251-4c16-9905-f7ba218ae7e9

< ./example-json.tar.gz


###
# @name v1Lda
POST {{baseUrl}}/v1/lda HTTP/1.1
Content-Type: application/x-tar
X-Webhook-Success: https://webhook.site/69300b22-a251-4c16-9905-f7ba218ae7e9
X-Webhook-Failure: https://webhook.site/69300b22-a251-4c16-9905-f7ba218ae7e9

< ./example-json.tar.gz

###