Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Latest commit

 

History

History
86 lines (68 loc) · 1.87 KB

README.md

File metadata and controls

86 lines (68 loc) · 1.87 KB

FDC3 Application Directory Web Service

A very basic example of a FDC3 application directory web service. It is implemented as a tiny express web server that listens on defined port and exposes three different restful end points. There is currently no database but a single json file (data.json) to retrieve applications data from.

Finsemble Component Manifest

The format of the 'manifest' field is one that Finsemble should be able to parse. It should feature the same format of a UI component from Finsemble-seed's UIComponents.json

Locally it runs on port 3030

Install and run the server

git clone git@github.com:ChartIQ/fdc-appd.git
cd fdc-appd
npm install
npm start

API Resources

Get all apps

GET http:/localhost/v1/apps/search

Status code: 200

{
  "applications": [{...}],
  "message": "successful"
}

Get all tags

GET http:/localhost/v1/tags

Status code: 200

{
  "tags": ['newrelease', 'pizza'],
  "message": "successful"
}

Get a single app

Example: GET http:/localhost/v1/apps/xapp

Status code: 200

{
  "applications": [
    {
      "appId": "xapp",
      ...
    }
  ],
  "message": "successful"
}

Search apps

POST http:/localhost/v1/apps/search

Content-Type: application/json

Body: { "text": "", "tags": ["death", "Success"] }

Status code: 200

{
  "applications": [
    {
      "appId": "xapp",
      ...
    }
  ],
  "message": "successful"
}