Skip to content

Commit

Permalink
Merge pull request #72 from docknetwork/feature/status-list-2021-revo…
Browse files Browse the repository at this point in the history
…cation

Update registries to include new StatusList2021 revocation registries.
  • Loading branch information
cykoder authored Oct 13, 2023
2 parents 86b1c30 + 9bbfd03 commit 127167f
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions source/index.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -2451,7 +2451,8 @@ curl --location --request POST https://api.dock.io/registries/ \
"addOnly": true,
"policy": [
"did:dock:xyz"
]
],
"type": "CredentialStatusList2017"
}'


Expand All @@ -2463,7 +2464,8 @@ curl --location --request POST https://api.dock.io/registries/ \
"addOnly": true,
"policy": [
"did:dock:xyz"
]
],
"type": "CredentialStatusList2017"
}
```

Expand All @@ -2475,6 +2477,13 @@ To create a registry, you have to create a `policy` object for which a DID is ne
|---|---|---|---|---|
|addOnly|body|boolean|false|True/false options. The default value is "false".|
|policy|body|[[DIDDock](#schemadiddock)]|true|The DIDs which control this registry. You must own a DID listed here to use the registry. Only one policy supported as of now: `OneOf` DID in list.|
|type|body|string|false|Specifies which type of registry to create. Defaults to `StatusList2021Entry`.|

### Enumerated Values

|Parameter|Value|Description|
|---|---|---|
|type|StatusList2021Entry **or** CredentialStatusList2017|The type used in registry creation.|

> 200 Response
Expand All @@ -2489,7 +2498,8 @@ To create a registry, you have to create a `policy` object for which a DID is ne
"did:dock:5GKeTJ7iMU4hEUwhK9a6ogh1bsWAv8Z1TMKnUf1vCNgdoiEM"
],
"addOnly": false
}
},
"type": "CredentialStatusList2017",
}
}
```
Expand Down Expand Up @@ -2536,7 +2546,8 @@ For now, only one policy is supported, and each registry is owned by a single DI
"did:dock:5GKeTJ7iMU4hEUwhK9a6ogh1bsWAv8Z1TMKnUf1vCNgdoiEM"
],
"addOnly": false
},
},
"registry_type": "CredentialStatusList2017",
"created_at": "2021-11-25T12:20:51.773Z"
}
]
Expand Down Expand Up @@ -2589,6 +2600,7 @@ curl --location --request GET https://api.dock.io/registries/{id} \
],
"addOnly": false
},
"registry_type": "CredentialStatusList2017",
"created_at": "2021-11-25T12:20:51.773Z",
"job_id": "930"
}
Expand Down

0 comments on commit 127167f

Please sign in to comment.