-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix #167: REST API documentation #179
Conversation
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.
Looks good to me.
|
||
### User Claims API (Deprecated) | ||
|
||
This REST API is deprecated, see Swagger for usage information. |
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.
What about using a warning box?
This REST API is deprecated, see Swagger for usage information. | |
<!-- begin box warning --> | |
This REST API is deprecated, see Swagger for usage information. | |
<!-- end --> |
docs/User-Data-Store-API.md
Outdated
|
||
The following paths require a ROLE_WRITE authority: | ||
- `/admin/**` - supported REST API for User Data Store | ||
- `/public/**` - deprecated REST API for user claims |
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.
- `/public/**` - deprecated REST API for user claims | |
- `/public/**` - **deprecated** REST API for user claims |
docs/User-Data-Store-API.md
Outdated
Authorization: Basic YWRtaW46YWRtaW4= | ||
|
||
The username and password is a Base-64 encoded string in format username:password. |
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.
Authorization: Basic YWRtaW46YWRtaW4= | |
The username and password is a Base-64 encoded string in format username:password. | |
`Authorization: Basic YWRtaW46YWRtaW4=` | |
The username and password is a Base-64 encoded string in the format `username:password`. |
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.
Nice!
I found only a few minor problems. Those that should be fixed:
- There is inconsistency in the placing of the asterisk. We should keep the symbol in the param column.
- You use
photo
instead ofattachment
in some description.
The others are just nitpicking.
- Headers: | ||
- `Authorization: Basic ...` | ||
|
||
##### Query Params |
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.
Header is a bullet list while query params is a heading. Is this the usual formatting of our API documentation?
docs/User-Data-Store-API.md
Outdated
|--------------------------------------------------------------|----------|----------------------------------------------------------------------------------------------------| | ||
| `userId`<span class="required" title="Required">*</span> | `String` | User identifier of document owner. | | ||
| `documentId`<span class="required" title="Required">*</span> | `String` | Identifier of the related document. | | ||
| `photoType`<span class="required" title="Required">*</span> | `String` | One of `photoType`: `person`, `document_front_side`, `document_back_side`, `person_with_document`. | |
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.
A small detail, just for consistency with other lists of expected values.
| `photoType`<span class="required" title="Required">*</span> | `String` | One of `photoType`: `person`, `document_front_side`, `document_back_side`, `person_with_document`. | | |
| `photoType`<span class="required" title="Required">*</span> | `String` | One of: `person`, `document_front_side`, `document_back_side`, `person_with_document`. | |
docs/User-Data-Store-API.md
Outdated
|
||
| Parameter | Type | Description | | ||
|--------------------------------------------------------------|----------|----------------------------------------------------------------------------------------------------| | ||
| `photoType`<span class="required" title="Required">*</span> | `String` | One of `photoType`: `person`, `document_front_side`, `document_back_side`, `person_with_document`. | |
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.
dtto
docs/User-Data-Store-API.md
Outdated
|
||
| Param | Type | Description | | ||
|--------------|----------------------------------------------------------|---------------------------------------------------------------------| | ||
| `userId` | `String`<span class="required" title="Required">*</span> | User identifier of the owner of fetched documents. | |
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.
There is inconsistency in the placing of the asterisk. We should keep the symbol in the param column.
docs/User-Data-Store-API.md
Outdated
|
||
| Param | Type | Description | | ||
|--------------|----------------------------------------------------------|---------------------------------------------------------------------| | ||
| `userId` | `String`<span class="required" title="Required">*</span> | User identifier of the owner of deleted documents. | |
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.
As it is in the request, the documents are yet to be deleted. This past tense is used in more places.
| `userId` | `String`<span class="required" title="Required">*</span> | User identifier of the owner of deleted documents. | | |
| `userId` | `String`<span class="required" title="Required">*</span> | User identifier of the owner of documents to be deleted. | |
docs/User-Data-Store-API.md
Outdated
| `documentId`<span class="required" title="Required">*</span> | `String` | Identifier of the related document. | | ||
| `attachmentType`<span class="required" title="Required">*</span> | `String` | One of `text`, `image_base64`, `binary_base64`. | | ||
| `attachmentData`<span class="required" title="Required">*</span> | `String` | Base-64 encoded attachment data. | | ||
| `externalId` | `String` | Optional external identifier of the photo (e.g. identifier used in the bank system). | |
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.
| `externalId` | `String` | Optional external identifier of the photo (e.g. identifier used in the bank system). | | |
| `externalId` | `String` | Optional external identifier of the attachment (e.g. identifier used in the bank system). | |
docs/User-Data-Store-API.md
Outdated
|------------------------------------------------------------------|----------|--------------------------------------------------------------------------------------| | ||
| `attachmentType`<span class="required" title="Required">*</span> | `String` | One of `text`, `image_base64`, `binary_base64`. | | ||
| `attachmentData`<span class="required" title="Required">*</span> | `String` | Base-64 encoded attachment data. | | ||
| `externalId` | `String` | Optional external identifier of the photo (e.g. identifier used in the bank system). | |
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.
| `externalId` | `String` | Optional external identifier of the photo (e.g. identifier used in the bank system). | | |
| `externalId` | `String` | Optional external identifier of the attachment (e.g. identifier used in the bank system). | |
No description provided.