-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add typescript client library (#58)
* chore: gen commands * fix: schema namings * chore: initial client build * fix: take only relevant types * fix: manual tests * fix: response blob for inscription content * docs: README
- Loading branch information
Showing
20 changed files
with
8,055 additions
and
100 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
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,6 @@ | ||
{ | ||
"supportsES6": false, | ||
"npmName": "@hirosystems/ordinals-api-client", | ||
"npmVersion": "1.0.0", | ||
"modelPropertyNaming": "original" | ||
} |
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,4 @@ | ||
wwwroot/*.js | ||
node_modules | ||
typings | ||
dist |
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,4 @@ | ||
.gitignore | ||
package.json | ||
package-lock.json | ||
README.md |
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 @@ | ||
3.0.42 |
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,19 @@ | ||
## @hirosystems/ordinals-api-client | ||
|
||
This is a client library for the [Ordinals API](https://github.com/hirosystems/ordinals-api). | ||
|
||
### Installation | ||
|
||
``` | ||
npm install @hirosystems/ordinals-api-client | ||
``` | ||
|
||
### Example | ||
|
||
```typescript | ||
import { Configuration, InscriptionsApi } from "@hirosystems/ordinals-api-client"; | ||
|
||
const config = new Configuration(); | ||
const api = new InscriptionsApi(config); | ||
const result = await api.getInscription("200000") | ||
``` |
Oops, something went wrong.