Skip to content

Commit

Permalink
Add documentation for create messages swagger
Browse files Browse the repository at this point in the history
- Closes #1555
  • Loading branch information
Uxio0 committed Jul 18, 2023
1 parent 9a2034c commit ca34b0e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions safe_transaction_service/safe_messages/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,14 @@ def get(self, request, address, *args, **kwargs):
responses={201: "Created"},
)
def post(self, request, address, *args, **kwargs):
"""
Create a new signed message for a Safe. Message can be:
- A ``string``, so ``EIP191`` will be used to get the hash.
- An ``EIP712`` ``object``.
Hash will be calculated from the provided ``message``. Sending a raw ``hash`` will not be accepted,
service needs to derive it itself.
"""
if not fast_is_checksum_address(address):
return Response(
status=status.HTTP_422_UNPROCESSABLE_ENTITY,
Expand Down

0 comments on commit ca34b0e

Please sign in to comment.