-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Header information #83
base: master
Are you sure you want to change the base?
Conversation
endpoints.html
Outdated
<th>Description</th> | ||
</thead> | ||
<tbody> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this newline?
_data/api-swagger.yaml
Outdated
required: true | ||
ApiKeyParam: | ||
value: | | ||
`APPKey {Appkey}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
key => Key
endpoints.html
Outdated
@@ -9,6 +9,27 @@ | |||
<p>All input strings should be UTF-8 encoded, our response is always UTF-8 encoded.</p> | |||
<p>Some of our endpoints return both the status of the transaction and signer activities. Further details about the statuses and activities can be found <a href="/status-activity/">here</a>.</p> | |||
|
|||
<h3>Default Headers</h3> | |||
<p>In order to communicate with Signhost, the API is expecting the following http headers for all requests. The parts between curlybraces indicate values that need to be replaced.</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would result in saying we require the json version header in every request. But not all requests return JSON, so I don't think this is correct
_data/api-swagger.yaml
Outdated
parameters: | ||
AppkeyParam: | ||
headers: | ||
AppKey: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this new in swagger? Or did you break swagger compatability?
cea66f0
to
691e90e
Compare
Updated:
|
16cf4b2
to
ab2c5a0
Compare
in: header | ||
type: string | ||
required: true | ||
ApiKeyParam: | ||
default: application/vnd.signhost.v1+json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think default might be confusing, because:
- it MUST be explicitly to use new features like the authentication array
- this is only valid for JSON
Let's leave this open and see @MrJoe 's thoughts on this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- this is only valid for JSON
Yes, that's why this parameter is only added to specific endpoints in the swagger file, so in that case default would make sense and it's also the way to add a value according to the spec. (Which I broke in the previous version of this PR 😅)
However I do agree that it might be confusing phrased in the documentation page itself.
_includes/httpheaders.html
Outdated
{% endfor %} | ||
</tbody> | ||
</table> | ||
<!-- End list of all HTTP headers --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing EOF
ab2c5a0
to
669fcce
Compare
application/vnd.signhost.v1+json
Accept header to the curl examples.See #82