All Projects → lukeautry → Tsoa

lukeautry / Tsoa

Licence: mit
Build OpenAPI-compliant REST APIs using TypeScript and Node

Programming Languages

typescript
32286 projects
Handlebars
879 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Tsoa

Ruby Jwt
A ruby implementation of the RFC 7519 OAuth JSON Web Token (JWT) standard.
Stars: ✭ 3,224 (+69.15%)
Mutual labels:  hacktoberfest2021
Ferret
Declarative web scraping
Stars: ✭ 4,837 (+153.78%)
Mutual labels:  hacktoberfest2021
Detox
High velocity native mobile development requires us to adopt continuous integration workflows, which means our reliance on manual QA has to drop significantly. Detox tests your mobile app while it’s running in a real device/simulator, interacting with it just like a real user.
Stars: ✭ 8,988 (+371.56%)
Mutual labels:  hacktoberfest2021
Super Productivity
To-do list & time tracker for programmers and other digital workers with Jira, Github, and Gitlab integration
Stars: ✭ 4,505 (+136.36%)
Mutual labels:  hacktoberfest2021
Resty
Simple HTTP and REST client library for Go
Stars: ✭ 5,368 (+181.64%)
Mutual labels:  hacktoberfest2021
Amass
In-depth Attack Surface Mapping and Asset Discovery
Stars: ✭ 6,284 (+229.7%)
Mutual labels:  hacktoberfest2021
Openlibrary
One webpage for every book ever published!
Stars: ✭ 3,311 (+73.71%)
Mutual labels:  hacktoberfest2021
Nodejs.dev
A new Node.js resource built using Gatsby.js with React.js, TypeScript, and Remark.
Stars: ✭ 1,794 (-5.88%)
Mutual labels:  hacktoberfest2021
Howtheysre
A curated collection of publicly available resources on how technology and tech-savvy organizations around the world practice Site Reliability Engineering (SRE)
Stars: ✭ 6,962 (+265.27%)
Mutual labels:  hacktoberfest2021
Fastlane
🚀 The easiest way to automate building and releasing your iOS and Android apps
Stars: ✭ 33,382 (+1651.42%)
Mutual labels:  hacktoberfest2021
Infosec reference
An Information Security Reference That Doesn't Suck; https://rmusser.net/git/admin-2/Infosec_Reference for non-MS Git hosted version.
Stars: ✭ 4,162 (+118.36%)
Mutual labels:  hacktoberfest2021
Json Java
A reference implementation of a JSON package in Java.
Stars: ✭ 3,972 (+108.39%)
Mutual labels:  hacktoberfest2021
Bit
Bit is a modern Git CLI
Stars: ✭ 5,723 (+200.26%)
Mutual labels:  hacktoberfest2021
Volta
Volta: JS Toolchains as Code. ⚡
Stars: ✭ 4,810 (+152.36%)
Mutual labels:  hacktoberfest2021
Vue Material
Material design for Vue.js
Stars: ✭ 9,528 (+399.9%)
Mutual labels:  hacktoberfest2021
Flux.jl
Relax! Flux is the ML library that doesn't make you tensor
Stars: ✭ 3,358 (+76.18%)
Mutual labels:  hacktoberfest2021
Whereami
Uses WiFi signals 📶 and machine learning to predict where you are
Stars: ✭ 4,878 (+155.93%)
Mutual labels:  hacktoberfest2021
Protoc Gen Doc
Documentation generator plugin for Google Protocol Buffers
Stars: ✭ 1,792 (-5.98%)
Mutual labels:  hacktoberfest2021
Github Pages Deploy Action
Automatically deploy your project to GitHub Pages using GitHub Actions. This action can be configured to push your production-ready code into any branch you'd like.
Stars: ✭ 2,507 (+31.53%)
Mutual labels:  hacktoberfest2021
Cheat.sh
the only cheat sheet you need
Stars: ✭ 27,798 (+1358.45%)
Mutual labels:  hacktoberfest2021

tsoa

Pronounced so·uh

OpenAPI-compliant REST APIs using TypeScript and Node

build status npm version

Goal

  • TypeScript controllers and models as the single source of truth for your API
  • A valid OpenAPI (formerly Swagger) spec (2.0 or 3.0 if you choose 😍) is generated from your controllers and models, including:
    • Paths (e.g. GET /users)
    • Definitions based on TypeScript interfaces (models)
    • Parameters/model properties marked as required or optional based on TypeScript (e.g. myProperty?: string is optional in the OpenAPI spec)
    • jsDoc supported for object descriptions (most other metadata can be inferred from TypeScript types)
  • Routes are generated for middleware of choice
    • Express, Hapi, and Koa currently supported, other middleware can be supported using a simple handlebars template
    • Validate request payloads

Philosophy

  • Rely on TypeScript type annotations to generate API metadata if possible
  • If regular type annotations aren't an appropriate way to express metadata, use decorators
  • Use jsdoc for pure text metadata (e.g. endpoint descriptions)
  • Minimize boilerplate
  • Models are best represented by interfaces (pure data structures), but can also be represented by classes
  • Runtime validation of tsoa should behave as closely as possible to the specifications that the generated OpenAPI 2/3 schema describes. Any differences in validation logic are clarified by logging warnings during the generation of the OpenAPI Specification (OAS) and/or the routes.
    • Please note that by enabling OpenAPI 3 you minimize the chances of divergent validation logic since OpenAPI 3 has a more expressive schema syntax.

Getting Started

Examples

Check out the guides

See example controllers in the tests

See example models in the tests

Help wanted

Contributing code

To contribute (via a PR), please first see the Contributing Guide

Becoming a maintainer

tsoa wants additional maintainers! The library has increased in popularity and has quite a lot of pull requests and issues. Please post in this issue if you're willing to take on the role of a maintainer.

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].