Skip to content
/ praxis Public
forked from praxis/praxis

Praxis is a framework that focuses on both the design and implementation aspects of creating APIs.

License

Notifications You must be signed in to change notification settings

wsny/praxis

 
 

Repository files navigation

Praxis TravisCI

Praxis is a framework that takes a different approach to creating APIs, an approach that treats both designers and implementors as first class citizens and hold both their hands throughout the API building process. With Praxis you create an API by iterating through the design, review and implementation phases.

Building APIs with Praxis will result in faster developer times, and result in very precise documentation that is apt for both human (web browsable) or machine consumption (JSON spec files). A very important feature of Praxis is that while the design and implementation phases are done independently, the resulting system will still ensure that they are always consistent and enforced at all times. This enforcement will automatically hold true throughout any number of iterations of the design-review-implementation phases. You can, once and for all, stop worrying about re-generating server code and keeping it in sync with any change to your code and or docs that you make.

Quickstart

# Install the praxis gem
gem install praxis

# Generate a praxis application named my-app in ./my-app
praxis generate my-app

# Run it!
cd my-app
bundle
rackup

Philosophy

Praxis is a practical implementation of a few guiding principles. In part:

REST APIs should be consistent

REST APIs should follow consistent design in patterns and action semantics. This includes software patterns for creating applications like code organization; application patterns like logging, middleware, query filtering, and application bootstrapping; and API routing structures and REST verb semantics for exposed resources.

Apps should focus on real business logic

Applications should be able to focus on application logic, avoiding most of the boilerplate code required to build API services.

API design should be separate from implementation

Applications should maintain separation of concerns between API design and implementation. An API designer should be able to fully construct an API skeleton without writing a single line of application code.

APIs must have great documentation

It should be possible to generate consistent and detailed documentation. This should be done by inspecting real code, to avoid relying on humans to do a good job keeping the docs and the code in sync everytime they make code changes.

Mailing List

Join our Google Groups for discussion, support and announcements.

And follow us on twitter: @praxisapi

Contributions

Contributions to make Praxis better are welcome. Please refer to CONTRIBUTING for further details on what contributions are accepted and how to go about contributing.

Requirements

Praxis requires Ruby 2.1.0 or greater.

License

This software is released under the MIT License. Please see LICENSE for further details.

Copyright (c) 2014 RightScale

About

Praxis is a framework that focuses on both the design and implementation aspects of creating APIs.

Resources

License

Stars

Watchers

Forks

Packages

No packages published