-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: generate client with openapi-typescript (#274)
* build: generate client with openapi-typescript * fix: bump breaking version
- Loading branch information
Showing
23 changed files
with
7,953 additions
and
12,864 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ wwwroot/*.js | |
node_modules | ||
typings | ||
dist | ||
lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
## @hirosystems/token-metadata-api-client | ||
|
||
This is a client library for the [Token Metadata API](https://github.com/hirosystems/token-metadata-api). | ||
|
||
### Installation | ||
|
||
``` | ||
npm install @hirosystems/token-metadata-api-client | ||
``` | ||
|
||
### Example | ||
|
||
```typescript | ||
import { createClient } from '@hirosystems/token-metadata-api-client'; | ||
|
||
const client = createClient({ baseUrl: 'https://api.mainnet.hiro.so' }); | ||
const metadata = await client.GET('/metadata/v1/ft/{principal}', { | ||
params: { | ||
path: { | ||
principal: 'SM26AQGZBMDPN2NTH0DJWFESFV0NJC744F1GQVZ6Y.token-btc', | ||
}, | ||
}, | ||
}); | ||
``` |
Oops, something went wrong.