@twin.org/immutable-proof-rest-client 0.0.1-next.16 → 0.0.1-next.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -61,7 +61,7 @@ class ImmutableProofClient extends apiCore.BaseRestClient {
61
61
  */
62
62
  async verify(id) {
63
63
  core.Guards.stringValue(this.CLASS_NAME, "id", id);
64
- const response = await this.fetch("/:id", "POST", {
64
+ const response = await this.fetch("/:id/verify", "GET", {
65
65
  headers: {
66
66
  [web.HeaderTypes.Accept]: web.MimeTypes.JsonLd
67
67
  },
@@ -59,7 +59,7 @@ class ImmutableProofClient extends BaseRestClient {
59
59
  */
60
60
  async verify(id) {
61
61
  Guards.stringValue(this.CLASS_NAME, "id", id);
62
- const response = await this.fetch("/:id", "POST", {
62
+ const response = await this.fetch("/:id/verify", "GET", {
63
63
  headers: {
64
64
  [HeaderTypes.Accept]: MimeTypes.JsonLd
65
65
  },
package/docs/changelog.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # @twin.org/immutable-proof-rest-client - Changelog
2
2
 
3
- ## v0.0.1-next.16
3
+ ## v0.0.1-next.18
4
4
 
5
5
  - Initial Release
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/immutable-proof-rest-client",
3
- "version": "0.0.1-next.16",
3
+ "version": "0.0.1-next.18",
4
4
  "description": "Immutable Proof contract implementation which can connect to REST endpoints",
5
5
  "repository": {
6
6
  "type": "git",
@@ -19,7 +19,7 @@
19
19
  "@twin.org/core": "next",
20
20
  "@twin.org/data-json-ld": "next",
21
21
  "@twin.org/entity": "next",
22
- "@twin.org/immutable-proof-models": "0.0.1-next.16",
22
+ "@twin.org/immutable-proof-models": "0.0.1-next.18",
23
23
  "@twin.org/nameof": "next",
24
24
  "@twin.org/web": "next"
25
25
  },