Giter Site home page Giter Site logo

cheqd / did-resolver Goto Github PK

View Code? Open in Web Editor NEW
10.0 5.0 5.0 15.99 MB

DID Resolver for the did:cheqd method

Home Page: https://docs.cheqd.io/identity/advanced/did-resolver

License: Apache License 2.0

Dockerfile 0.27% Go 98.83% Makefile 0.90%
cheqd decentralized-identifiers hacktoberfest

did-resolver's People

Contributors

abdulla-ashurov avatar ankurdotb avatar askolesov avatar daevmithran avatar dependabot[bot] avatar eengineer1 avatar filipdjokic avatar lampkin-diet avatar p- avatar snyk-bot avatar toktar avatar tweeddalex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

did-resolver's Issues

[feature]: Resource resolution

What is the feature you'd like to see?

New API:

  1. /1.0/identifiers/did:cheqd:testnet:DAzMQo4MDMxCjgwM/resources/all
    Return collection resources metadata (without data)
    Example:
curl /1.0/identifiers/did:cheqd:testnet:DAzMQo4MDMxCjgwM/resources/all

{
    "contentStream": {
    resources: [
       {
        "collectionId": "DAzMQo4MDMxCjgwM",
        "id": "44547089-170b-4f5a-bcbc-06e46e0089e4",
        "name": "Resource1",
        "resourceType": "CL-Schema",
        "mediaType": "application/json",
        "created": "2022-07-19T08:40:00Z",
        "checksum": "eyAiY29udGVudCI6ICJ0ZXN0IGRhdGEiIH0K47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=",
      },
     {
        "collectionId": "DAzMQo4MDMxCjgwM",
        "id": "47547089-170b-4f5a-bcbc-06e46e00895f",
        "name": "Resource2",
        "resourceType": "CL-Schema",
        "mediaType": "application/json",
        "created": "2022-06-19T08:40:00Z",
        "checksum": "thAiY29udGVudCI6ICJ0ZXN0IGRhdGEiIH0K47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hHtlf=",
      }
    ]},
    "contentMetadata": {},
    "dereferencingMetadata": {
        "contentType": "text/html",
        "retrieved": "2022-07-29T14:43:30Z",
        "did": {
            "didString": "did:cheqd:testnet:DAzMQo4MDMxCjgwM",
            "methodSpecificId": "DAzMQo4MDMxCjgwM",
            "method": "cheqd"
        }
    }
}
  1. /1.0/identifiers/did:cheqd:testnet:DAzMQo4MDMxCjgwM/resources/
     HTTP 301 redirect /resources/ to /resources/all
  2. /1.0/identifiers/did:cheqd:testnet:DAzMQo4MDMxCjgwM/resources
    Return invalidDidUrl
  3. /1.0/identifiers/did:cheqd:testnet:DAzMQo4MDMxCjgwM/resources/44547089-170b-4f5a-bcbc-06e46e0089e4
    Return resources data
    ContentType = MediaType
  4. /1.0/identifiers/did:cheqd:testnet:DAzMQo4MDMxCjgwM/resources/44547089-170b-4f5a-bcbc-06e46e0089e4/matadata
curl /1.0/identifiers/did:cheqd:testnet:DAzMQo4MDMxCjgwM/resources/44547089-170b-4f5a-bcbc-06e46e0089e4/matadata

{
    "contentStream": {
    {
        "collectionId": "DAzMQo4MDMxCjgwM",
        "id": "44547089-170b-4f5a-bcbc-06e46e0089e4",
        "name": "Resource1",
        "resourceType": "CL-Schema",
        "mediaType": "application/json",
        "created": "2022-07-19T08:40:00Z",
        "checksum": "eyAiY29udGVudCI6ICJ0ZXN0IGRhdGEiIH0K47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=",
     },
    "contentMetadata": {},
    "dereferencingMetadata": {
        "contentType": "text/html",
        "retrieved": "2022-07-29T14:43:30Z",
        "did": {
            "didString": "did:cheqd:testnet:DAzMQo4MDMxCjgwM",
            "methodSpecificId": "DAzMQo4MDMxCjgwM",
            "method": "cheqd"
        }
    }
}

Links:

Are there any examples of where similar features are available?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.