Giter Club home page Giter Club logo

cord-api-service's Introduction

API service

This is the project which provides options to query chain and anchor extrinsic to chain

APIs

Ideally, client should serialize the request, and api service should deserialize this. (Refer here for how to get this done for Substrate's SubmittableExtrinsic response).

Submit

POST: /api/v1/extrinsics

Notice that client should build extrinsic and submit data in { "extrinsic": await tx.signAsync(authorization) } format to get it anchored on the chain.

query

GET : /api/v1/query/:identifiers?params

params:

  • rating
  • stream
  • schema
  • registry
  • did

TODO:

User :-

  • - Registration based on the email

  • - Upon successful verification (go with magic link for now, can be email OTP in future) user marked as valid user

  • - Registration would give the device a token, can use token in all APIs with cloud wallet

  • - Provide a mechanism to resolve DID (based on did:web:)

Token :-

  • - Build a basic token management
  • - Expect token in all APIs (no session based login) - Rethink later
  • - Token cleanup / Logout feature

cord-api-service's People

Contributors

amarts avatar

Stargazers

Vikas TC avatar

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.