Skip to content

Commit

Permalink
Add Accept header to all examples
Browse files Browse the repository at this point in the history
  • Loading branch information
WouterJanson committed Oct 12, 2020
1 parent 7c2c2ae commit edc6211
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions _data/endpoint_examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ get/api/transaction/{transactionId}:
curl \
-H "Authorization: APIKey {usertoken here}" \
-H "Application: APPKey {appkey here}" \
-H "Accept: application/vnd.signhost.v1+json" \
https://api.signhost.com/api/transaction/b2a9aca4-cd5e-4a21-b7f7-c08a9f2b2d57
json_response: get_api_transaction_transactionId.json
response_information: This method returns a transaction.
Expand All @@ -27,6 +28,7 @@ post/api/transaction:
curl \
-H "Authorization: APIKey {usertoken here}" \
-H "Application: APPKey {appkey here}" \
-H "Accept: application/vnd.signhost.v1+json" \
-H "Content-Type: application/json" \
-d '{
"Signers": [
Expand Down Expand Up @@ -69,6 +71,7 @@ put/api/transaction/{transactionId}/file/{fileId}:
curl \
-H "Authorization: APIKey {usertoken here}" \
-H "Application: APPKey {appkey here}" \
-H "Accept: application/vnd.signhost.v1+json" \
-H "Content-Type: application/pdf" \
-H "Digest: SHA-256=HtHRpLOZBEMnTpQS6Zn12veC4uhjtMwamfVAwmPQPmE=" \
-XPUT \
Expand All @@ -80,13 +83,15 @@ put/api/transaction/{transactionId}/start:
curl \
-H "Authorization: APIKey {usertoken here}" \
-H "Application: APPKey {appkey here}" \
-H "Accept: application/vnd.signhost.v1+json" \
https://api.signhost.com/api/transaction/b2a9aca4-cd5e-4a21-b7f7-c08a9f2b2d57/start
delete/api/transaction/{transactionId}:
- example:
curl_request: |
curl \
-H "Authorization: APIKey {usertoken here}" \
-H "Application: APPKey {appkey here}" \
-H "Accept: application/vnd.signhost.v1+json" \
-H "Content-Type: application/json" \
-d '{
"SendNotifications": true
Expand Down

0 comments on commit edc6211

Please sign in to comment.