@twin.org/immutable-proof-service 0.0.1-next.16 → 0.0.1-next.17

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.
@@ -233,8 +233,8 @@ function generateRestRoutesImmutableProof(baseRouteName, componentName) {
233
233
  operationId: "immutableProofVerify",
234
234
  summary: "Verify a proof",
235
235
  tag: tagsImmutableProof[0].name,
236
- method: "POST",
237
- path: `${baseRouteName}/:id`,
236
+ method: "GET",
237
+ path: `${baseRouteName}/:id/verify`,
238
238
  handler: async (httpRequestContext, request) => immutableProofVerify(httpRequestContext, componentName, request),
239
239
  requestType: {
240
240
  type: "IImmutableProofVerifyRequest",
@@ -1,7 +1,7 @@
1
1
  import { property, SortDirection, entity, EntitySchemaFactory, EntitySchemaHelper } from '@twin.org/entity';
2
2
  import { Guards, ComponentFactory, StringHelper, Is, Validation, Converter, RandomHelper, ObjectHelper, Urn, GeneralError, NotFoundError, JsonHelper } from '@twin.org/core';
3
3
  import { ImmutableProofTypes, ImmutableProofFailure, ImmutableProofTopics } from '@twin.org/immutable-proof-models';
4
- import { DidContexts, DidTypes, DidCryptoSuites } from '@twin.org/standards-w3c-did';
4
+ import { DidCryptoSuites, DidTypes, DidContexts } from '@twin.org/standards-w3c-did';
5
5
  import { HttpStatusCode, HeaderTypes, MimeTypes } from '@twin.org/web';
6
6
  import { BackgroundTaskConnectorFactory, TaskStatus } from '@twin.org/background-task-models';
7
7
  import { Blake2b, Sha256 } from '@twin.org/crypto';
@@ -231,8 +231,8 @@ function generateRestRoutesImmutableProof(baseRouteName, componentName) {
231
231
  operationId: "immutableProofVerify",
232
232
  summary: "Verify a proof",
233
233
  tag: tagsImmutableProof[0].name,
234
- method: "POST",
235
- path: `${baseRouteName}/:id`,
234
+ method: "GET",
235
+ path: `${baseRouteName}/:id/verify`,
236
236
  handler: async (httpRequestContext, request) => immutableProofVerify(httpRequestContext, componentName, request),
237
237
  requestType: {
238
238
  type: "IImmutableProofVerifyRequest",
package/docs/changelog.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # @twin.org/immutable-proof-service - Changelog
2
2
 
3
- ## v0.0.1-next.16
3
+ ## v0.0.1-next.17
4
4
 
5
5
  - Initial Release