Skip to content

Commit c619928

Browse files
Docs cleanup
1 parent 33d65d8 commit c619928

File tree

4 files changed

+18
-45
lines changed

4 files changed

+18
-45
lines changed

CHANGES.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
# API Response Builder for Laravel 5 #
22

3+
4+
See [compatibility docs](docs/compatibility.md) for details about backward compatibility!
5+
6+
37
## CHANGE LOG ##
48

59
* dev
6-
* **NOT BACKWARD COMPATIBLE!**. See [copatibility docs](docs/compatibility.md) for details!
10+
* **PARTIAL BACKWARD INCOMPATIBILITY**
711
* [RB-17] `success()` now allows to return api code as well
812
* Corrected default config file containing faulty and unneeded `use` entries
913
* [RB-20] Renamed ErrorCode to ApiCodeBase

README.md

+1-13
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ nice, normalized and easy to consume REST API responses.
2222
* [Documentation](docs/docs.md)
2323
* [Bugs reports and pull requests](#contributing)
2424
* [License](#license)
25-
* [Changelog](#changelog)
25+
* [Changelog](CHANGES.md)
2626

2727
----
2828

@@ -73,15 +73,3 @@ Thanks in advance!
7373

7474
* Written and copyrighted &copy;2016-2017 by Marcin Orlowski <mail (#) marcinorlowski (.) com>
7575
* ResponseBuilder is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)
76-
77-
----
78-
79-
## Notes ##
80-
81-
* `ResponseBuilder` is **not** compatible with Lumen framework, mainly due to lack of Lang class. If you would like to help making `ResponseBuilder` usable with Lumen, speak up or (better) send pull request!
82-
83-
----
84-
85-
## Changelog ##
86-
87-
See [CHANGES.md](CHANGES.md) for detailed revision history.

docs/compatibility.md

+11-24
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,21 @@
11
# API Response Builder for Laravel 5 #
22

3-
`ResponseBuilder` is Laravel5's helper designed to simplify building
4-
nice, normalized and easy to consume REST API responses.
3+
`ResponseBuilder` follows [Semantic Versioning](http://semver.org/).
54

6-
## Preface ##
5+
You need to worry about backward compatibility if you are upgrading from previous major version of the package.
76

8-
**NOTE:** You should **ONLY** worry about compatibility if you are upgrading from previous versions as you may
9-
be using APIs that changed. If you are new to the project and you just started using it, simply do not bother
10-
untill **next major update** (see [Semantic Versioning](http://semver.org/)).
7+
### v3 ###
118

12-
## Compatibility ##
9+
* `success()` now accepts (optional) `api_code` too, therefore signature of this method as well as and argument
10+
order changed. This makes it **partially** incompatible with what have been in v2, however in majority of uses
11+
this change should pose no threat at all. If you were just calling `success()` or `success($data)` (which is
12+
99,9% of use cases) then you are all fine and no change is needed. But if you were setting own
13+
`http_code` or `lang_args` when calling `success()` then you need to update your code.
1314

14-
Backward INCOMPATIBLE changes detailed.
15+
### v2 ###
1516

16-
### v3.0 ###
17+
* First public release.
1718

18-
* `success()` changed to allow returning custom `api_code` with response, therefore signature of this method
19-
(and argument order) is different which makes it **partially** incompatible. In majority of uses this is not
20-
a problem but if you were calling `success()` passing `http_code` or `lang_args` to it, then you need to
21-
update your code to work properly with 3.0.0. But if you were just calling `success()` or `success($data)`
22-
(which is 99,9% of use cases) then you are all fine and no change is needed.
23-
24-
### v2.x ###
25-
26-
* No public API changes.
27-
28-
### v1.x ###
19+
### v1 ###
2920

3021
* Initial (internal) release
31-
32-
## Changelog ##
33-
34-
See [CHANGES.md](CHANGES.md) for detailed revision history.

docs/docs.md

+1-7
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ nice, normalized and easy to consume REST API responses.
1818
* [Overriding built-in messages](#overriding-built-in-messages)
1919
* [License](#license)
2020
* [Notes](#notes)
21-
* [Changelog](#changelog)
21+
* [Changelog](CHANGES.md)
2222

2323
----
2424

@@ -562,9 +562,3 @@ You can use `:api_code` placeholder in the message and it will be substituted ac
562562
## Notes ##
563563

564564
* `ResponseBuilder` is **not** compatible with Lumen framework, mainly due to lack of Lang class. If you would like to help making `ResponseBuilder` usable with Lumen, speak up or (better) send pull request!
565-
566-
----
567-
568-
## Changelog ##
569-
570-
See [CHANGES.md](CHANGES.md) for detailed revision history.

0 commit comments

Comments
 (0)