Giter Site home page Giter Site logo

landscapist's Introduction

LandscAPIst

Landscapist is an API definition tool.

Why?

Because I hate writing Swagger, but it's a 'widely supported standard', and none of the other options are any better. So I decided to write my own ruby DSL for defining my APIs, with tools to generate Swagger.

Usage

Generate a swagger document

bundle exec ./exe/landscapist swagger ~/workspace/myapp/doc/apis/apis.rb

Generate typescript interfaces

bundle exec ./exe/landscapist typescript ~/workspace/myapp/doc/apis/apis.rb

Run a webserver with Swagger-UI

bundle exec ./exe/landscapist server ~/workspace/myapp/doc/apis/apis.rb

landscapist's People

Contributors

tithonium avatar

Watchers

 avatar James Cloos avatar Emily Aviva Kapor-Mater avatar

landscapist's Issues

Connect documentation to unit tests

It would be really neat if there were some functionality to point from the documentation to the unit test(s) for that specific part of whatever API is being described. That way, when you are reading through the documentation, you can at a glance see where to look for unit tests, and potentially even vice versa; the unit tests could point back to some token in the documentation. It would also help tremendously in development, so that you don't have to keep separate lists of what pieces of an API you've already covered with unit tests and what work still needs to be done, since most code coverage tools can only tell if the API is being hit at all, not necessarily which parameters thereof have been tested, and so forth.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.