Skip to content

A todo application API specified in TypeSpec

Notifications You must be signed in to change notification settings

qiaozha/typespec-todo

This branch is 4 commits behind bterlson/typespec-todo:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e962a20 · Mar 13, 2024

History

42 Commits
Mar 13, 2024
Mar 13, 2024
Mar 9, 2024
Mar 12, 2024
Mar 12, 2024
Mar 12, 2024
Mar 12, 2024
Mar 2, 2024
Mar 9, 2024

Repository files navigation

TypeSpec Todo

A todo application written in using TypeSpec.

The server is implemented in as much of an API-first way as possible. To start the server, run:

> npm install
> npm run build
> npm run start

Interesting features:

  • TypeSpec, generating JSON Schema, OpenAPI3, and clients in multiple languages.
  • Docs are exposed under the /docs endpoint.
  • TypeScript types are generated from JSON Schema using json-schema-to-typescript.
  • Routes are attached and requests/responses are validated based on the OpenAPI using fastify-openapi-glue.

Prerequisites

  1. Install node.
  2. Install TypeSpec npm install -g @typespec/compiler
  3. For Python codegen, install Python and pip.
  4. For Java codegen, install the JDK 17 or higher.
  5. For CSharp codegen, install the .NET SDK version 8 or higher.

About

A todo application API specified in TypeSpec

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%