-
Notifications
You must be signed in to change notification settings - Fork 16
Retrieve timestamps (ETag) of plural endpoints #425
Conversation
* Add a getETag method for collections and buckets * Update README to document methods and no longer suggest use of last_modified
Tests fail because of #424 |
README.md
Outdated
@@ -1168,10 +1191,31 @@ Sample result: | |||
42 | |||
``` | |||
|
|||
#### Options | |||
#### options |
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 this should remain capitalized?
README.md
Outdated
@@ -1142,7 +1165,7 @@ Sample result: | |||
|
|||
The result object exposes the following properties: | |||
|
|||
- `last_modified`: the [collection's timestamp](http://kinto.readthedocs.io/en/stable/api/1.x/timestamps.html). This value is opaque and should be reused as is, eg. passing it as a `since` option (see [Generic bucket and collection options](#generic-bucket-and-collection-options)) | |||
- `last_modified`: the [collection's timestamp](http://kinto.readthedocs.io/en/stable/api/1.x/timestamps.html). |
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.
Maybe we should note that it is not the same as the timestamps you get from getCollectionsTimestamp()
etc.
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.
Actually, it is the same :) I'll add a note
README.md
Outdated
|
||
- `headers`: Custom headers object to send along the HTTP request | ||
- `retry`: Number of retries when request fails (default: 0) | ||
- `headers`: custom headers object to send along the http request |
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 HTTP could remain capitalized.
README.md
Outdated
@@ -552,6 +555,26 @@ Sample result: | |||
|
|||
This method accepts the [generic parameters for sorting, filtering and paginating results](#generic-options-for-list-operations). | |||
|
|||
### Collections list timestamp | |||
|
|||
The timestmap of the collections list is used for the `since` option in the [generic parameters for sorting, filtering and paginating results](#generic-options-for-list-operations). |
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.
You have timestamp
typoed as timestmap
a few places.
src/bucket.js
Outdated
} | ||
|
||
/** | ||
* Retrieves the ETag of the collection list, for use with the `since` filtering option. |
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.
of the group list
?
Follow-up of #351