• Stars
    star
    124
  • Rank 288,207 (Top 6 %)
  • Language
    Haskell
  • License
    BSD 3-Clause "New...
  • Created about 9 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Swagger for Servant

servant-swagger

⚠️ ⚠️ ⚠️ This repo will be soon migrated into the servant main depo ⚠️ ⚠️ ⚠️

Build Status Hackage Stackage LTS Stackage Nightly

Swagger 2.0 conforming json for servant APIs.

servant-swagger robot

Motivation

Swagger is a project used to describe and document RESTful APIs. Unlike Servant it is language-agnostic and thus is quite popular among developers in different languages. It also exists for a longer time and has more tools to work with.

This package provides means to generate Swagger specification for a Servant API and also to partially test whether API conforms with its specification.

Generated Swagger specification then can be used for many things such as

Usage

Please refer to haddock documentation.

Some examples can be found in example/ directory.

Try it out

All generated swagger specifications can be interactively viewed on Swagger Editor.

Ready-to-use specification can be served as JSON and interactive API documentation can be displayed using Swagger UI.

Many Swagger tools, including server and client code generation for many languages, can be found on Swagger's Tools and Integrations page.

Contributing

We are happy to receive bug reports, fixes, documentation enhancements, and other improvements.

Please report bugs via the github issue tracker.

More Repositories

1

servant

Main repository for the servant libraries — DSL for describing, serving, querying, mocking, documenting web applications and more!
Haskell
1,738
star
2

servant-elm

Automatically derive Elm functions to query servant webservices
Haskell
162
star
3

servant-auth

Haskell
160
star
4

example-servant-elm

Example for a web app with a servant backend and an elm frontend
Haskell
140
star
5

example-servant-persistent

Simple example to illustrate how to use persistent and servant in combination.
Haskell
81
star
6

example-servant-minimal

A minimal example for a REST-API-server written with servant and a test-suite using servant-client
Haskell
58
star
7

servant-swagger-ui

Provide embedded swagger UI for servant and swagger
JavaScript
46
star
8

servant-quickcheck

Haskell
40
star
9

servant-multipart

Support for file uploads in multipart/form-data for servant
Haskell
40
star
10

servant-snap

Snap port of servant-server (WIP)
Haskell
28
star
11

servant-js

Automatically derive javascript functions to query servant webservices.
Haskell
22
star
12

servant-mock

Derive a mock server for free from your servant API types
Haskell
19
star
13

haskell-servant.github.io

servant website
Haskell
18
star
14

servant-dhall

Servant dhall bindings
Haskell
18
star
15

servant-blaze

Haskell
10
star
16

servant-lucid

Haskell
8
star
17

servant-nix

Support for Nix expressions as HTTP request/response bodies in servant, using hnix
Haskell
7
star
18

servant-cassava

Haskell
6
star
19

servant-uverb

deprecated: https://github.com/haskell-servant/servant/pull/1314
Haskell
5
star
20

HaskellSGMeetup2015

Slides for a talk about servant
Haskell
5
star
21

servant-contrib

A collection of user contributions for servant, a Type-Level Web DSL.
Haskell
4
star
22

servant-client-haxl

Haxl-based client functions for servant APIs
Haskell
4
star
23

servant-yaml

Servant support for yaml
Haskell
3
star
24

servant-jsaddle

servant jsaddle client
Haskell
3
star
25

slides-functional-thursday

HTML
2
star
26

servant-bazaar

An example project to illustrate how to package servant combinators
Haskell
2
star
27

cretheus

Haskell
2
star
28

servant-benchmarks

Benchmarks for servant
Haskell
1
star
29

hugsMay2015Berlin

Slides of the talk for the Berlin Haskell User Group
TeX
1
star
30

cufp-2015

Haskell
1
star