Skip to content
项目

关于

Build composable, type-safe HTTP API servers.

网站与应用开发

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
0

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

WebGear - Build HTTP APIs


  • webgear-core - Hackage
  • webgear-server - Hackage
  • webgear-swagger - Hackage
  • webgear-swagger-ui - Hackage
  • webgear-openapi - Hackage

Build Status


WebGear is a Haskell library for building composable, type-safe HTTP APIs.

This is the main repository of WebGear project. It contains multiple packages:

  • webgear-core: The core library.
  • webgear-server: Serve WebGear applications using wai and warp.
  • webgear-swagger: Generate Swagger 2.0 specifications from WebGear specifications.
  • webgear-swagger-ui: Server to host swagger UI based on WebGear APIs.
  • webgear-openapi: Generate OpenAPI specifications from WebGear specifications.

Examples of WebGear applications can be found at:

Documentation is available at https://haskell-webgear.github.io

Development

Use Nix to start a reproducible development environment:

nix develop

This starts a shell with the default GHC. You can also use a specific GHC version with:

nix develop .#webgear-dev-ghc<GHC-VERSION>

You can use the standard cabal commands in the development shell.

You can build packages using Nix:

nix build \
  .#webgear-core-ghc<GHC-VERSION> \
  .#webgear-server-ghc<GHC-VERSION> \
  .#webgear-swagger-ghc<GHC-VERSION> \
  .#webgear-swagger-ui-ghc<GHC-VERSION> \
  .#webgear-openapi-ghc<GHC-VERSION>

探索相关项目

加载中…