Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pomdtr/valtown-openapi
https://github.com/pomdtr/valtown-openapi
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pomdtr/valtown-openapi
- Owner: pomdtr
- License: mit
- Created: 2023-07-28T14:33:28.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-29T11:37:19.000Z (over 1 year ago)
- Last Synced: 2024-10-14T11:01:26.774Z (3 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/valtown-openapi
- Size: 96.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Val Town OpenApi
This package contains the openapi specs for the Val Town Api.
## Usage
This package is supposed to be used in conjunction with a [feTS client](https://the-guild.dev/openapi/fets/client/quick-start).
```ts
import { createClient, type NormalizeOAS } from "fets";
import type openapi from "valtown-openapi";const client = createClient>({});
const pomdtr = await client["/v1/alias/{username}"].get({
params: {
username: "pomdtr",
},
});const pets = await response.json();
console.log(pomdtr);
```