Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

Commit

Permalink
Merge pull request #329 from sandrask/issue-328
Browse files Browse the repository at this point in the history
chore: Change version in URLs
  • Loading branch information
fqutishat authored Mar 3, 2021
2 parents 9502d4d + 9c48319 commit f76e851
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions cmd/sidetree-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ var config = viper.New()

const defaultDIDDocNamespace = "did:sidetree"

const operationPath = "/sidetree/0.0.1/operations"
const resolutionPath = "/sidetree/0.0.1/identifiers"
const operationPath = "/sidetree/v1/operations"
const resolutionPath = "/sidetree/v1/identifiers"

const arrayDelimiter = ","

Expand Down
8 changes: 4 additions & 4 deletions docs/source/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,26 @@ Sidetree REST API

Request Path ::

Post /sidetree/0.0.1/operations
Post /sidetree/v1/operations


**DID Document resolution**

Request Path ::

GET /sidetree/0.0.1/identifiers/{DidOrDidDocument}
GET /sidetree/v1/identifiers/{DidOrDidDocument}

**Updating a DID Document**

Request Path ::

Post /sidetree/0.0.1/operations
Post /sidetree/v1/operations

**DID Deletion**

Request Path ::

Post /sidetree/0.0.1/operations
Post /sidetree/v1/operations

**DID Resolution**

Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
# The short X.Y version
version = u''
# The full version, including alpha/beta/rc tags
release = u'0.0.1'
release = u'1.0.0'


# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion pkg/httpserver/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const (
clientURL = "http://" + url

didDocNamespace = "did:sidetree"
basePath = "/sidetree/0.0.1"
basePath = "/sidetree/v1"

sha2_256 = 18
sampleNamespace = "sample:sidetree"
Expand Down
4 changes: 2 additions & 2 deletions test/bddtests/did_sidetree_steps.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ const (

initialStateSeparator = ":"

testDocumentResolveURL = "https://localhost:48326/sidetree/0.0.1/identifiers"
testDocumentUpdateURL = "https://localhost:48326/sidetree/0.0.1/operations"
testDocumentResolveURL = "https://localhost:48326/sidetree/v1/identifiers"
testDocumentUpdateURL = "https://localhost:48326/sidetree/v1/operations"

sha2_256 = 18
)
Expand Down

0 comments on commit f76e851

Please sign in to comment.