Update ReadMe.md

This commit is contained in:
omma 2024-08-21 16:59:50 +03:30
parent 7f8c9c1fd2
commit 7d23c4e3b0

View file

@ -27,6 +27,7 @@ POST
"license_code": "<some_data>",
"representor": "<user_id>",
"subscriptionـcode": "<some_data>",
# or some other well data
}
```
2. Header:
@ -47,7 +48,7 @@ status=status.HTTP_409_CONFLICT)
2 ({"message": serializer.errors},
status=status.HTTP_400_BAD_REQUEST)
3 ({"message": "<_Internal Server Error>",
3 ({"message": "Internal Server Error",
status=status.HTTP_500_INTERNAL_SERVER_ERROR)
```
---------
@ -73,7 +74,7 @@ status=status.HTTP_200_OK)
1 ({"message": "Not Found"},
status=status.HTTP_404_NOT_FOUND)
2 ({"message": "<_Internal Server Error>",
2 ({"message": "Internal Server Error",
status=status.HTTP_500_INTERNAL_SERVER_ERROR)
```
-------------
@ -95,7 +96,7 @@ status=status.HTTP_200_OK)
```
2. Errors:
```python
1 ({"message": "<_Internal Server Error>",
1 ({"message": "Internal Server Error",
status=status.HTTP_500_INTERNAL_SERVER_ERROR)
```
---------------
@ -125,7 +126,7 @@ status=status.HTTP_200_OK)
1.({"message": "Not Found"},
status=status.HTTP_404_NOT_FOUND)
2 ({"message": "<_Internal Server Error>",
2 ({"message": "Internal Server Error",
status=status.HTTP_500_INTERNAL_SERVER_ERROR)
```
---------
@ -149,14 +150,14 @@ PUT
"license_code": "<some_data>",
"representor": "<user_id>",
"subscriptionـcode": "<some_data>",
# or some other well data
}
```
**Output:**
5. OK:
```python
(
{"data": "<serializer.data>",
"message": f"<Successfully updated {instance.license_code}>"},
{"data": "<serializer.data>"},
status=status.HTTP_200_OK)
```
6. Errors:
@ -197,8 +198,7 @@ PUT
**Output:**
1. OK:
```python
({"data": "<serializer.data>",
"message": f"<Successfully edited {instance.license_code}>"},
({"data": "<serializer.data>"},
status=status.HTTP_200_OK)
```
2. Errors: