Skip to content

Commit 6fc295e

Browse files
committed
chore: improve on help texts in swagger and .env
1 parent ef7ead9 commit 6fc295e

2 files changed

Lines changed: 17 additions & 5 deletions

File tree

.env.example.prod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ ALLOWED_ORIGINS=csv,includehttp
4040
# History older than this many rounds will get dropped. There are 960 round
4141
# each day so 30 * 960 = 28800 means there will be 30 days of history kept.
4242
# You can comment this out to never delete history. In this case it is suggested
43-
# to also comment out the delte_history service from docker compose.
43+
# to also comment out the delete_history service from docker compose.
4444
HISTORY_KEEP_ROUNDS = 28800
4545

4646
# project related

fdc/views/v1.py

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ def _list(self, request, *args, **kwargs):
3434
return response.Response(serializer.data)
3535

3636
@extend_schema(
37-
description="Retrieves the attestation minimal proofs based on voting round id",
37+
description=(
38+
"Returns full merkle tree with proof for each leaf for given round. "
39+
"Leafs are abi decoded."
40+
),
3841
parameters=[ListAttestationResultV1QuerySerializer],
3942
responses=AttestationResultV1Serializer(many=True),
4043
)
@@ -43,7 +46,10 @@ def list(self, request, *args, **kwargs):
4346
return self._list(request, *args, **kwargs)
4447

4548
@extend_schema(
46-
description="Retrieves the attestation minimal proofs based on voting round id",
49+
description=(
50+
"Returns full merkle tree with proof for each leaf for given round. "
51+
"Leafs are abi encoded."
52+
),
4753
parameters=[ListAttestationResultV1QuerySerializer],
4854
responses=AttestationResultRawV1Serializer(many=True),
4955
)
@@ -80,7 +86,10 @@ def _proof_by_request_round(self, request, *args, **kwargs):
8086
return response.Response(serializer.data)
8187

8288
@extend_schema(
83-
description="Retrieves the attestation request proof based on request bytes and voting round id",
89+
description=(
90+
"Retrieves the attestation request proof for given request bytes and "
91+
"voting round. Leafs are abi decoded."
92+
),
8493
request=AttestationResponseProofByRequestRoundV1RequestSerializer,
8594
responses={
8695
200: AttestationResultV1Serializer,
@@ -100,7 +109,10 @@ def proof_by_request_round(self, request, *args, **kwargs):
100109
return self._proof_by_request_round(request, *args, **kwargs)
101110

102111
@extend_schema(
103-
description="Retrieves the attestation request proof based on request bytes and voting round id",
112+
description=(
113+
"Retrieves the attestation request proof for given request bytes and "
114+
"voting round. Leafs are abi encoded."
115+
),
104116
request=AttestationResponseProofByRequestRoundV1RequestSerializer,
105117
responses={
106118
200: AttestationResultRawV1Serializer,

0 commit comments

Comments
 (0)