All Projects → revoltchat → api

revoltchat / api

Licence: MIT license
Typescript typings and OpenAPI v3 generator for the Revolt API.

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to api

openapi
GitHub's official OpenAPI spec with Octokit extensions
Stars: ✭ 24 (+4.35%)
Mutual labels:  openapi
ApiCenter
A repository for all your API specifications
Stars: ✭ 26 (+13.04%)
Mutual labels:  openapi
vim-swagger-preview
A Vim plugin for previewing swagger/openAPI spec in Chrome with swagger-ui.
Stars: ✭ 19 (-17.39%)
Mutual labels:  openapi
Tavis.OpenApi
Parser for OpenAPI Specification
Stars: ✭ 18 (-21.74%)
Mutual labels:  openapi
ApiFramework
Everything is an (Open)API
Stars: ✭ 26 (+13.04%)
Mutual labels:  openapi
fastapi-azure-auth
Easy and secure implementation of Azure AD for your FastAPI APIs 🔒 B2C, single- and multi-tenant support.
Stars: ✭ 174 (+656.52%)
Mutual labels:  openapi
wapiml
An OpenAPI round-trip tool that leverages model-driven techniques to create, visualize, manage, and generate OpenAPI definitions.
Stars: ✭ 61 (+165.22%)
Mutual labels:  openapi
firecracker
Stop half-done API specifications! Cherrybomb is a CLI tool that helps you avoid undefined user behaviour by validating your API specifications.
Stars: ✭ 438 (+1804.35%)
Mutual labels:  openapi
openapi-ui
React based OpenAPI 3.0+ documentation generator
Stars: ✭ 32 (+39.13%)
Mutual labels:  openapi
graphql-to-openapi
Convert a graphql query + graphql schema into an openapi spec.
Stars: ✭ 31 (+34.78%)
Mutual labels:  openapi
revolt.js
Modern Typescript library for interacting with Revolt.
Stars: ✭ 141 (+513.04%)
Mutual labels:  revolt
bow-openapi
🌐 Functional HTTP client generator from an OpenAPI/Swagger specification.
Stars: ✭ 47 (+104.35%)
Mutual labels:  openapi
OpenDocumenter
OpenDocumenter is a automatic documentation generator for OpenAPI v3 schemas. Simply provide your schema file in JSON or YAML, then sit back and enjoy the documentation.
Stars: ✭ 137 (+495.65%)
Mutual labels:  openapi
openapi-petstore
The pet store sample
Stars: ✭ 35 (+52.17%)
Mutual labels:  openapi
autumn
Pluggable file server micro-service.
Stars: ✭ 27 (+17.39%)
Mutual labels:  revolt
douyin-go
抖音SDK
Stars: ✭ 73 (+217.39%)
Mutual labels:  openapi
starling-developer-sdk
The official JavaScript development kit for building on the Starling API
Stars: ✭ 45 (+95.65%)
Mutual labels:  openapi
kommentaar
Generate documentation for Go APIs
Stars: ✭ 33 (+43.48%)
Mutual labels:  openapi
spectree
API spec validator and OpenAPI document generator for Python web frameworks.
Stars: ✭ 190 (+726.09%)
Mutual labels:  openapi
Swiftgger
OpenAPI support for server side Swift projects.
Stars: ✭ 97 (+321.74%)
Mutual labels:  openapi

Revolt API

revolt-api

This package contains typings for objects in the Revolt API and a fully typed API request builder.

Example Usage

If you just need access to types:

import type { User } from 'revolt-api';

If you want to send requests:

import { API } from 'revolt-api';

// Initialise a new API client:
const client = new API();

// or with authentication:
const client = new API({ authentication: { revolt: 'bot-token' } });

// Make requests with ease:
client.get('/users/@me')
    // Fully typed responses!
    .then(user => user.username);

// No need to worry about the details:
let channel_id = "some channel id";
client.post(`/channels/${channel_id}/messages`, {
    // Parameters given are fully typed as well!
    content: "some content"
});

For more details on how this works, see the README of @insertish/oapi.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].