Update ReadMe.md
This commit is contained in:
parent
7f8c9c1fd2
commit
7d23c4e3b0
1 changed files with 8 additions and 8 deletions
16
ReadMe.md
16
ReadMe.md
|
@ -27,6 +27,7 @@ POST
|
||||||
"license_code": "<some_data>",
|
"license_code": "<some_data>",
|
||||||
"representor": "<user_id>",
|
"representor": "<user_id>",
|
||||||
"subscriptionـcode": "<some_data>",
|
"subscriptionـcode": "<some_data>",
|
||||||
|
# or some other well data
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
2. Header:
|
2. Header:
|
||||||
|
@ -47,7 +48,7 @@ status=status.HTTP_409_CONFLICT)
|
||||||
2 ({"message": serializer.errors},
|
2 ({"message": serializer.errors},
|
||||||
status=status.HTTP_400_BAD_REQUEST)
|
status=status.HTTP_400_BAD_REQUEST)
|
||||||
|
|
||||||
3 ({"message": "<_Internal Server Error>",
|
3 ({"message": "Internal Server Error",
|
||||||
status=status.HTTP_500_INTERNAL_SERVER_ERROR)
|
status=status.HTTP_500_INTERNAL_SERVER_ERROR)
|
||||||
```
|
```
|
||||||
---------
|
---------
|
||||||
|
@ -73,7 +74,7 @@ status=status.HTTP_200_OK)
|
||||||
1 ({"message": "Not Found"},
|
1 ({"message": "Not Found"},
|
||||||
status=status.HTTP_404_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)
|
status=status.HTTP_500_INTERNAL_SERVER_ERROR)
|
||||||
```
|
```
|
||||||
-------------
|
-------------
|
||||||
|
@ -95,7 +96,7 @@ status=status.HTTP_200_OK)
|
||||||
```
|
```
|
||||||
2. Errors:
|
2. Errors:
|
||||||
```python
|
```python
|
||||||
1 ({"message": "<_Internal Server Error>",
|
1 ({"message": "Internal Server Error",
|
||||||
status=status.HTTP_500_INTERNAL_SERVER_ERROR)
|
status=status.HTTP_500_INTERNAL_SERVER_ERROR)
|
||||||
```
|
```
|
||||||
---------------
|
---------------
|
||||||
|
@ -125,7 +126,7 @@ status=status.HTTP_200_OK)
|
||||||
1.({"message": "Not Found"},
|
1.({"message": "Not Found"},
|
||||||
status=status.HTTP_404_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)
|
status=status.HTTP_500_INTERNAL_SERVER_ERROR)
|
||||||
```
|
```
|
||||||
---------
|
---------
|
||||||
|
@ -149,14 +150,14 @@ PUT
|
||||||
"license_code": "<some_data>",
|
"license_code": "<some_data>",
|
||||||
"representor": "<user_id>",
|
"representor": "<user_id>",
|
||||||
"subscriptionـcode": "<some_data>",
|
"subscriptionـcode": "<some_data>",
|
||||||
|
# or some other well data
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
**Output:**
|
**Output:**
|
||||||
5. OK:
|
5. OK:
|
||||||
```python
|
```python
|
||||||
(
|
(
|
||||||
{"data": "<serializer.data>",
|
{"data": "<serializer.data>"},
|
||||||
"message": f"<Successfully updated {instance.license_code}>"},
|
|
||||||
status=status.HTTP_200_OK)
|
status=status.HTTP_200_OK)
|
||||||
```
|
```
|
||||||
6. Errors:
|
6. Errors:
|
||||||
|
@ -197,8 +198,7 @@ PUT
|
||||||
**Output:**
|
**Output:**
|
||||||
1. OK:
|
1. OK:
|
||||||
```python
|
```python
|
||||||
({"data": "<serializer.data>",
|
({"data": "<serializer.data>"},
|
||||||
"message": f"<Successfully edited {instance.license_code}>"},
|
|
||||||
status=status.HTTP_200_OK)
|
status=status.HTTP_200_OK)
|
||||||
```
|
```
|
||||||
2. Errors:
|
2. Errors:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue