Skip to content

Commit 6ba4abe

Browse files
authored
Merge pull request #3 from aybruhm/feat/0.1.1-release
Feat/0.1.1 release
2 parents d9827dc + eae2420 commit 6ba4abe

File tree

4 files changed

+50
-43
lines changed

4 files changed

+50
-43
lines changed

CHANGELOG.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,10 @@ Change Log
4848
- Modified test cases
4949
- Renamed package name, changed description and url
5050
- Modified README documentation
51-
- Bump version to 0.1
51+
- Bump version to 0.1
52+
53+
0.1.1 (28/06/2023)
54+
--------------------
55+
- Modified README documentation
56+
- Bump version to 0.1.1
57+
- Changed home page url

README.md

Lines changed: 38 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pip install rest-api-response
1515
2). In the file (.py) that you wish to use it, import it:
1616

1717
```python
18-
from rest_api_response import success_response, error_response
18+
from rest_api_response import success_response, error_response
1919
```
2020

2121
That's pretty much it - you can now call the function and pass the required arguments!
@@ -41,23 +41,23 @@ class PostListAPIView(views.APIView):
4141
The API response would be:
4242

4343
```json
44-
[
45-
{
46-
"title": "First blog post",
47-
"content": "Lorem ipsume content",
48-
"author": 1
49-
},
50-
{
51-
"title": "Second blog post",
52-
"content": "Lorem ipsume content",
53-
"author": 2
54-
},
55-
{
56-
"title": "Third blog post",
57-
"content": "Lorem ipsume content",
58-
"author": 3
59-
}
60-
]
44+
[
45+
{
46+
"title": "First blog post",
47+
"content": "Lorem ipsume content",
48+
"author": 1
49+
},
50+
{
51+
"title": "Second blog post",
52+
"content": "Lorem ipsume content",
53+
"author": 2
54+
},
55+
{
56+
"title": "Third blog post",
57+
"content": "Lorem ipsume content",
58+
"author": 3
59+
}
60+
]
6161
```
6262

6363
This works too, but let's take the response to the next level by doing this:
@@ -86,26 +86,27 @@ class PostListAPIView(views.APIView):
8686
The API response would be:
8787

8888
```json
89-
[ "status": true,
90-
"message": "Posts retrieved!",
91-
"data": [
92-
{
93-
"title": "First blog post",
94-
"content": "Lorem ipsume content",
95-
"author": 1
96-
},
97-
{
98-
"title": "Second blog post",
99-
"content": "Lorem ipsume content",
100-
"author": 2
101-
},
102-
{
103-
"title": "Third blog post",
104-
"content": "Lorem ipsume content",
105-
"author": 3
106-
}
107-
]
89+
[
90+
"status": true,
91+
"message": "Posts retrieved!",
92+
"data": [
93+
{
94+
"title": "First blog post",
95+
"content": "Lorem ipsume content",
96+
"author": 1
97+
},
98+
{
99+
"title": "Second blog post",
100+
"content": "Lorem ipsume content",
101+
"author": 2
102+
},
103+
{
104+
"title": "Third blog post",
105+
"content": "Lorem ipsume content",
106+
"author": 3
107+
}
108108
]
109+
]
109110
```
110111

111112
And that's it. You have a nicely catchy response. :-)

setup.cfg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[metadata]
22
name = rest-api-response
3-
version = 0.1
3+
version = 0.1.1
44
author = Abram
55
author_email = [email protected]
66
description = A go-to production API response with an easy format for building APIs with Python.
77
long_description = file: README.md
88
long_description_content_type = text/markdown
9-
url = https://github.com/israelabraham/api-response
9+
url = https://github.com/aybruhm/api-response
1010
project_urls =
11-
Bug Tracker = https://github.com/israelabraham/api-response/issues
11+
Bug Tracker = https://github.com/aybruhm/api-response/issues
1212
classifiers =
1313
Development Status :: 5 - Production/Stable
1414
Intended Audience :: Education

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010

1111
setup(
1212
name="rest_api_response",
13-
version="0.1",
13+
version="0.1.1",
1414
description="A go-to production API response with an easy format for building APIs with Python.", # noqa: E501
1515
long_description_content_type="text/markdown",
1616
long_description=open("README.md").read(),
17-
url="https://github.com/israelabraham/api-response",
17+
url="https://github.com/aybruhm/api-response",
1818
author="Abram",
1919
author_email="[email protected]",
2020
license="MIT",

0 commit comments

Comments
 (0)