@tbd54566975/tbdex-rest-api
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

tbDEX RESTful API

[!WARNING]

This repo is currently under construction 🚧

Installation

npm install @tbd54566975/tbdex-rest-api

Usage

import { RestApi } from '@tbd54566975/tbdex-rest-api'

const api = new RestApi()

api.get('offerings', async (ctx, filter) => { /* write biz logic here */ })
api.get('exchanges', async (ctx, filter) => { /* write biz logic here */ })

api.submit('rfq', async (ctx, message) => { /* write biz logic here */ })
api.submit('order', async (ctx, message) => { /* write biz logic here */ })
api.submit('close', async (ctx, message) => { /* write biz logic here */ })


await api.listen()

/@tbd54566975/tbdex-rest-api/

    Package Sidebar

    Install

    npm i @tbd54566975/tbdex-rest-api

    Weekly Downloads

    0

    Version

    0.0.5

    License

    Apache-2.0

    Unpacked Size

    59.5 kB

    Total Files

    52

    Last publish

    Collaborators

    • tbd-releases
    • kendallweihe
    • shamilovtim
    • frankhinek
    • michaelneale
    • csuwildcat
    • mistermoe
    • alrubinger
    • nitroneal
    • mktbd
    • henrytsai