|
9 | 9 | **Go-Json-Rest** is a thin layer on top of `net/http` that helps building RESTful JSON APIs easily. It provides fast URL routing using a Trie based implementation, helpers to deal with JSON requests and responses, and middlewares for additional functionalities like CORS, Auth, Gzip ...
|
10 | 10 |
|
11 | 11 |
|
12 |
| -## What's new in version 2 |
13 |
| - |
14 |
| -* Middlewares, the notion of middleware is now formally defined. They can be setup as global pre-routing Middlewares wrapping all the endpoints, or on a per endpoint basis. |
15 |
| -In fact the internal code of **go-json-rest** is itself implemented with Middlewares, they are just hidden behind configuration boolean flags to make these very common options even easier to use. |
16 |
| - |
17 |
| -* A new ResponseWriter. This is now an interface, and allows Middlewares to wrap the writer. The provided writer implements, in addition of *rest.ResponseWriter*, *http.Flusher*, *http.CloseNotifier*, *http.Hijacker*, and *http.ResponseWriter*. A lot more Go-ish, and very similar to `net/http`. |
18 |
| - |
19 |
| -* The AuthBasic and CORS Middlewares have been added. More to come in the future. |
20 |
| - |
21 |
| -* Faster, more tasks are performed at init time, and less for each request. |
22 |
| - |
23 |
| -* New documentation, with more examples. |
24 |
| - |
25 |
| -* A lot of other small improvements, See the [Migration guide to v2](#migration-guide-from-v1-to-v2) |
26 |
| - |
27 |
| - |
28 | 12 | ## Table of content
|
29 | 13 |
|
30 | 14 | - [Features](#features)
|
@@ -54,6 +38,7 @@ In fact the internal code of **go-json-rest** is itself implemented with Middlew
|
54 | 38 | - [CORS Custom](#cors-custom)
|
55 | 39 | - [External Documentation](#external-documentation)
|
56 | 40 | - [Options](#options)
|
| 41 | +- [Version 2 release notes](#version-2-release-notes) |
57 | 42 | - [Migration guide from v1 to v2](#migration-guide-from-v1-to-v2)
|
58 | 43 | - [Thanks](#thanks)
|
59 | 44 |
|
@@ -1595,6 +1580,22 @@ Things to enable in development:
|
1595 | 1580 | - Error stack trace in the response body (default: disabled)
|
1596 | 1581 |
|
1597 | 1582 |
|
| 1583 | +## Version 2 release notes |
| 1584 | + |
| 1585 | +* Middlewares, the notion of middleware is now formally defined. They can be setup as global pre-routing Middlewares wrapping all the endpoints, or on a per endpoint basis. |
| 1586 | +In fact the internal code of **go-json-rest** is itself implemented with Middlewares, they are just hidden behind configuration boolean flags to make these very common options even easier to use. |
| 1587 | + |
| 1588 | +* A new ResponseWriter. This is now an interface, and allows Middlewares to wrap the writer. The provided writer implements, in addition of *rest.ResponseWriter*, *http.Flusher*, *http.CloseNotifier*, *http.Hijacker*, and *http.ResponseWriter*. A lot more Go-ish, and very similar to `net/http`. |
| 1589 | + |
| 1590 | +* The AuthBasic and CORS Middlewares have been added. More to come in the future. |
| 1591 | + |
| 1592 | +* Faster, more tasks are performed at init time, and less for each request. |
| 1593 | + |
| 1594 | +* New documentation, with more examples. |
| 1595 | + |
| 1596 | +* A lot of other small improvements, See the [Migration guide to v2](#migration-guide-from-v1-to-v2) |
| 1597 | + |
| 1598 | + |
1598 | 1599 | ## Migration guide from v1 to v2
|
1599 | 1600 |
|
1600 | 1601 | **Go-Json-Rest** follows [Semver](http://semver.org/) and a few breaking changes have been introduced with the v2.
|
|
0 commit comments