mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-02-23 04:52:28 +00:00
add design goals to readme
This commit is contained in:
parent
ea80689db2
commit
4bf0bd7b09
3 changed files with 28 additions and 8 deletions
14
README.md
14
README.md
|
@ -32,8 +32,18 @@ compatible with the new future / async stuff.
|
||||||
|
|
||||||
This crate is an extension to the popular [gotham web framework][gotham] for Rust. It allows you to
|
This crate is an extension to the popular [gotham web framework][gotham] for Rust. It allows you to
|
||||||
create resources with assigned methods that aim to be a more convenient way of creating handlers
|
create resources with assigned methods that aim to be a more convenient way of creating handlers
|
||||||
for requests. Assuming you assign `/foobar` to your resource, you can implement the following
|
for requests.
|
||||||
methods:
|
|
||||||
|
## Design Goals
|
||||||
|
|
||||||
|
This is an opinionated framework on top of [gotham]. Unless your web server handles mostly JSON as
|
||||||
|
request/response bodies and does that in a RESTful way, this framework is probably a bad fit for
|
||||||
|
your application. The ultimate goal of gotham-restful is to provide a way to write a RESTful
|
||||||
|
web server in Rust as convenient as possible with the least amount of boilerplate neccessary.
|
||||||
|
|
||||||
|
## Methods
|
||||||
|
|
||||||
|
Assuming you assign `/foobar` to your resource, you can implement the following methods:
|
||||||
|
|
||||||
| Method Name | Required Arguments | HTTP Verb | HTTP Path |
|
| Method Name | Required Arguments | HTTP Verb | HTTP Path |
|
||||||
| ----------- | ------------------ | --------- | ----------- |
|
| ----------- | ------------------ | --------- | ----------- |
|
||||||
|
|
|
@ -26,4 +26,8 @@
|
||||||
</div>
|
</div>
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
|
**Note:** The `stable` branch contains some bugfixes against the last release. The `master`
|
||||||
|
branch currently tracks gotham's master branch and the next release will use gotham 0.5.0 and be
|
||||||
|
compatible with the new future / async stuff.
|
||||||
|
|
||||||
{{readme}}
|
{{readme}}
|
||||||
|
|
18
src/lib.rs
18
src/lib.rs
|
@ -2,14 +2,20 @@
|
||||||
#![warn(missing_debug_implementations, rust_2018_idioms)]
|
#![warn(missing_debug_implementations, rust_2018_idioms)]
|
||||||
#![deny(intra_doc_link_resolution_failure)]
|
#![deny(intra_doc_link_resolution_failure)]
|
||||||
/*!
|
/*!
|
||||||
**Note:** The `stable` branch contains some bugfixes against the last release. The `master`
|
|
||||||
branch currently tracks gotham's master branch and the next release will use gotham 0.5.0 and be
|
|
||||||
compatible with the new future / async stuff.
|
|
||||||
|
|
||||||
This crate is an extension to the popular [gotham web framework][gotham] for Rust. It allows you to
|
This crate is an extension to the popular [gotham web framework][gotham] for Rust. It allows you to
|
||||||
create resources with assigned methods that aim to be a more convenient way of creating handlers
|
create resources with assigned methods that aim to be a more convenient way of creating handlers
|
||||||
for requests. Assuming you assign `/foobar` to your resource, you can implement the following
|
for requests.
|
||||||
methods:
|
|
||||||
|
# Design Goals
|
||||||
|
|
||||||
|
This is an opinionated framework on top of [gotham]. Unless your web server handles mostly JSON as
|
||||||
|
request/response bodies and does that in a RESTful way, this framework is probably a bad fit for
|
||||||
|
your application. The ultimate goal of gotham-restful is to provide a way to write a RESTful
|
||||||
|
web server in Rust as convenient as possible with the least amount of boilerplate neccessary.
|
||||||
|
|
||||||
|
# Methods
|
||||||
|
|
||||||
|
Assuming you assign `/foobar` to your resource, you can implement the following methods:
|
||||||
|
|
||||||
| Method Name | Required Arguments | HTTP Verb | HTTP Path |
|
| Method Name | Required Arguments | HTTP Verb | HTTP Path |
|
||||||
| ----------- | ------------------ | --------- | ----------- |
|
| ----------- | ------------------ | --------- | ----------- |
|
||||||
|
|
Loading…
Add table
Reference in a new issue