1.2.1 • Published 6 years ago

bedrock-credentials-rest v1.2.1

Weekly downloads
63
License
-
Repository
github
Last release
6 years ago

bedrock-credentials-rest

Build Status

A bedrock module that implements a RESTful API for credential storage.

The main endpoint uses query paramters for filtering. The endpoint may access both local and externally created credentials depending on the type of system. While local credentials may use a simple resource path such as /credentials/1234 this can become confusing when accessing a credential with a full URL id. The ID would have to be a URL encoded path parameter. The alternate approach user here is to use the id query parameter when referring to a credential by ID.

Requirements

  • npm v3+

Quick Examples

npm install bedrock-credentials-rest

Configurable credentials endpoint (defaults to /credentials):

var config = require('bedrock').config;
config['credentials-rest'].basePath = '/credentials';

Get one credential:

GET /credentials?id=<ID>

{
  <credential data>
}

Get all credentials with optional filters:

GET /credentials?<params>

[
  {
    <credential data>
  }, ...
]

Available filters:

  • recipient=ID: Filter by credential recipient.
  • issuer=ID: Filter by credential issuer.
  • filter=<claimed|unclaimed>: Filter by state.

General paramters:

  • format=FORMAT: Force particular output format.
1.2.1

6 years ago

1.2.0

7 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.3.4

8 years ago

0.3.3

8 years ago

0.3.2

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.0

9 years ago