You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: rest-api/readme.md
+11-3Lines changed: 11 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
## rest-api
2
2
Welcome. `#[api]` allows you to create a rest-api by simply annotating a trait.
3
+
Currently the rest calls are executed using the [request](https://crates.io/crates/reqwest) crate.
3
4
Don't expect much to work yet.
4
5
5
6
## goals
@@ -12,12 +13,19 @@ Support as many flavours and special cases out there in different Rest APIs with
12
13
* Stability: Hand written API bindings are harder to maintain and easier to introduce bugs
13
14
* Testability: It also simplifies writing your application in a test driven approach. Simply use `#[mock]`([see mock crate](https://github.com/carlosdp/mock_derive)) and run against a mocked API
14
15
16
+
## why not just swagger?
17
+
18
+
* good point, also a good choice, but then you have to involve yet another tool in your pipeline
19
+
* rest-api allows you to stay in the rust eco-chamber
20
+
* rest-api is more lightweight and faster to prototype
0 commit comments