-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add API documentation following OpenAPI standard #13
Open
kenyiu
wants to merge
7
commits into
drand:master
Choose a base branch
from
kenyiu:feat/add-API-documentation-following-OpenAPI-standard
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
225e592
fix: update drand cli to v2
kenyiu 3ad5242
Merge branch 'drand:master' into master
kenyiu 7d7f88c
chore: upgrade Docusaurus packages to 3.7
kenyiu 5ae89bc
feat: add API documentation following OpenAPI standard
kenyiu cafaad7
docs: update OpenAPI documentation and configuration
kenyiu b1e447b
Merge branch 'master' into feat/add-API-documentation-following-OpenA…
kenyiu b645181
feat: added v2 api based on http-relay repo
kenyiu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
docs/03_dev-guide/3.7 API Documentation v1/chain-hash-info.api.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
--- | ||
id: chain-hash-info | ||
title: "/:chain-hash/info" | ||
description: "Retrieves metadata about a specific randomness chain, identified by its chain hash." | ||
sidebar_label: "/:chain-hash/info" | ||
hide_title: true | ||
hide_table_of_contents: true | ||
api: eJy1WWlz20YS/StT3K2KVcUD96FvLsVJtJXDFcuVD6I3HswMSMQggAwGklkq/fd9PQBIUFQcZ+N8kERijr5ev+6GHmZStUIXjSnqanY5+1kZXag71bKdMlxywxnP6s4wztpGiSIvBNO8kvWuUm3LxJYX1ZwVUlUGa0qybM8KMyywLW+3y9l81nDNcZ/S7ezy9mFW4Qtk2T0L2oMtBUlvuKHPWv3eFVrJ2aXRnZrPWrFVOz67fJiZfUMnWyhZbezFBrfS0f/eOouUL/KXi2/ePUTB479nj/OZ+sh3TUknkjR1VMxTzpX08lzJ2JeZjJ3Ucz1fRrmHDb4TBo6Mo9D1/cjzQinc2FOhm3lCQdapo262im1xv4RTdry0po5+2EM5ZrCh98ILtdws50yqnHel6R/CU5Uy97X+cLGcPb4jm9umrlrVkpme49CfU4lX9rKiymu94/RsXUErUVcGQmk7b5qyEHZp9VtLZx7OXVdnvylhyHW6bpQ2RS+x6TKc/fWD2j/n5nPTZUGLWWdgSH+W4Syrc2u3JIiwja67ZnYShSjJHSdUWaIiFQju8CAWCY9joTgPfSfF9zTGAxG7mQiFUGnkR1EWypiHESIUi9BLlZI8ikTs4XsS8DRwvMRxee67FHMYVdRyYkUBB22UftYMU+wUXMpaBT/KlmWIiVLVFOKZ4lhjsAUbptb4DqRtFDYV7a900f8psy0qoazb3lbFR/aqqcUWX7mxz6wTocSGV4yEacQX6DoqOFXJDdMw8F0nJNVsYn1WMI/JOmf32wLiu6r4vVPl/pjZ7SSwdv+SXRtWtKxrAQHegiB0XRuLAN21hgGm7I6XhbSAHJGRFxpr1pn06GjGcvZF05VCQ5777rOdYBMYKnHoWMInyCtYecjkTmt4AkGzJlY1LmCgNVOIoulDAhfSziGtl+zmED17IbmqgTPgLbgDFKv3DEm/5YNGR+PdOMpTP0gTIC8V3PdjN3SyIJKeK2WYRLGveKD8MHHdJMyTKI3I7jTngcj81OFkvM17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HEJy5dNwLWUGulUqAwGKi7GtPHLmWEXyjro7ghz65aGLogl36SydYW7kws6Nw1v5vnm9UZw69ueGM8u99HIAPZgC007OvmzQGSrmLR1ywQ/XN2dXbMBnXWbbMXvb8BtUnq0onqvvr69e/fjmlX3b0dSt2fFqImB1eayU4zB5MgQ8HCfhf+h/GcNkTMV8ZdOaXGGNfBhm3tvZ5ZN/bUBPjDNbmEOrDw+Eh7e6fHykxyi/eo/n+EjUQc2DHYxl0dJnTNQ5Wgv1CUNf/Dx03hfsS/5b4g9sHR7yit47IRU7+oaP/ZuhieWP7+gttIIu2hrUb3gphGrM5OjZ+woa/Q4vE759dQMs/A8P/BqZ | ||
sidebar_class_name: "get api-method" | ||
info_path: docs/03_dev-guide/3.7 API Documentation v1/drand-http-api | ||
custom_edit_url: null | ||
--- | ||
|
||
import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint"; | ||
import ParamsDetails from "@theme/ParamsDetails"; | ||
import RequestSchema from "@theme/RequestSchema"; | ||
import StatusCodes from "@theme/StatusCodes"; | ||
import OperationTabs from "@theme/OperationTabs"; | ||
import TabItem from "@theme/TabItem"; | ||
import Heading from "@theme/Heading"; | ||
|
||
<Heading | ||
as={"h1"} | ||
className={"openapi__heading"} | ||
children={"/:chain-hash/info"} | ||
> | ||
</Heading> | ||
|
||
<MethodEndpoint | ||
method={"get"} | ||
path={"/{chain-hash}/info"} | ||
context={"endpoint"} | ||
> | ||
|
||
</MethodEndpoint> | ||
|
||
|
||
|
||
Retrieves metadata about a specific randomness chain, identified by its chain hash. | ||
|
||
<Heading | ||
id={"request"} | ||
as={"h2"} | ||
className={"openapi-tabs__heading"} | ||
children={"Request"} | ||
> | ||
</Heading> | ||
|
||
<ParamsDetails | ||
parameters={[{"name":"chain-hash","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"},"example":"8990e7a9aaed2ffed73dbd7092123d6f289930540d7651336225dc172e51b2ce","description":"The hexadecimal hash identifying the chain (e.g., default chained network)."}]} | ||
> | ||
|
||
</ParamsDetails> | ||
|
||
<RequestSchema | ||
title={"Body"} | ||
body={undefined} | ||
> | ||
|
||
</RequestSchema> | ||
|
||
<StatusCodes | ||
id={undefined} | ||
label={undefined} | ||
responses={{"200":{"description":"Chain information\n","content":{"application/json":{"schema":{"type":"object","properties":{"public_key":{"type":"string","description":"The distributed public key of the drand group","example":"868f005eb8e6e4ca0a47c8a77ceaa5309a47978a7c71bc5cce96366b5d7a569937c529eeda66c7293784a9402801af31"},"period":{"type":"integer","description":"The time in seconds between randomness beacon rounds","example":30},"genesis_time":{"type":"integer","description":"The time in seconds since the Unix Epoch that the group began generating randomness","example":1595431050},"hash":{"type":"string","description":"The chain hash, which uniquely identifies the drand chain. It is used as a root of trust for validation of the first round of randomness.","example":"8990e7a9aaed2ffed73dbd7092123d6f289930540d7651336225dc172e51b2ce"},"groupHash":{"type":"string","description":"The hash of a file containing the current set of nodes participating in the network. The group file is updated on every resharing","example":"176f93498eac9ca337150b46d21dd58673ea4e3581185f869672e59fa4cb390a"},"schemeID":{"type":"string","description":"The name of the scheme this network uses. The scheme specifies the type of cryptography being used to generate the randomness beacons","example":"pedersen-bls-chained"},"metadata":{"type":"object","properties":{"beaconID":{"type":"string","description":"The identifier for the beacon.","example":"default"}},"description":"Contains some miscellaneous metadata about the network that is added to most packets during operation"}},"required":["public_key","period","genesis_time","hash","groupHash","schemeID","metadata"],"title":"ChainInfo"},"example":{"public_key":"868f005eb8e6e4ca0a47c8a77ceaa5309a47978a7c71bc5cce96366b5d7a569937c529eeda66c7293784a9402801af31","period":30,"genesis_time":1595431050,"hash":"8990e7a9aaed2ffed73dbd7092123d6f289930540d7651336225dc172e51b2ce","groupHash":"176f93498eac9ca337150b46d21dd58673ea4e3581185f869672e59fa4cb390a","schemeID":"pedersen-bls-chained","metadata":{"beaconID":"default"}}}}},"404":{"description":"Chain not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"chain not found"}}}}}}}} | ||
> | ||
|
||
</StatusCodes> | ||
|
||
|
||
|
71 changes: 71 additions & 0 deletions
71
docs/03_dev-guide/3.7 API Documentation v1/chain-hash-public-latest.api.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
--- | ||
id: chain-hash-public-latest | ||
title: "/:chain-hash/public/latest" | ||
description: "Retrieves the most recent randomness value from the default chain. Note this might not be available on all chained networks; prefer using chain-specific endpoints or relays for consistency." | ||
sidebar_label: "/:chain-hash/public/latest" | ||
hide_title: true | ||
hide_table_of_contents: true | ||
api: eJzVWNty20YS/ZUp7lbFqhJJXAY37ZPjOIm3HMcVKbUPknc9lx4SMQhwAVAyS6V/39MD8CJRcda1edlUElLETF9Od5/uxv3EUmfact2XTT25mPxCfVvSLXWiX5JYNV0vWjJU40PVtlnV1HXiVlUbEq5tVv6UJac2VS/MUpX1TLxresLvZSdW5WLZi7rphSahblVZKV2RaGqhqmo4TlbU1N817afub2LdkqNWbLqyXgyPp92aTOlKI6i266as+040LUyq1LYTDl9NU3dl11NttrPJ+WStWrWintpucnF9P6nxB7waZC1Vt8SRkv1cq56/t/TvTdmSnVz07YbOJ51Z0kpNLu4n/XbNNzvAUS+84B5S+eo/r4Npoabu5fT7D/epfPjr5OF8Qp/Val3xjSSyutAqCygwJnApKZflQWxtkEmZqdAlMsuyOHE2dmkaZkWkVSHTIDC5pCILJw8f2K5uDceoY1OiIOCPJ4E6hMOqXnksOBiV6omD1mxqe1PDcAAEdHqWoNbrqjSKJcx/61jM/anHjf6NTM8et82a2r4cjPACj44hFLSgFuce2/USSYOINzUUVdVWlLVpSfmIjlfE1Bt6lE9eNh5b+jw5gjJOMyB7OPdcWJ4qv/zx5TRKUsGxFo3zmrpyUat+09Kx8Eks48IWkU1ykpmNZRTGoZUyVbHSFKV4mlqLzyzM8iJTLg6SKDFFLo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0yaVsQxBxAmMwaSBkaRhpmKzfIqwTTxj3KqK626Xm7tG5tPvZ67wxyYhcbsNV/OQ0q5skf03k70vKPfdeTY+S7MoKzJwWe5ih900V0ZqF8dJ5ExqUp3KNDeFshILrExSFRdZIhMsoZF1iXYwHvV70LRDD+NiPf3l+1cDn5SqHs2DThfnEdbdLDJhkrgiwYJvVV4EobUWK3MRqiBn4QpKHPZZmRXWatAtETbgyJztxsoDZ+66iNvwdMcph3l5nKIwK4ezYBaMC6UyfqEcX+0Nw+sVKZ7Yn1vOPPfy2wbMYASmPbr7co3JkEQ0CxiCn95cnYhYgM822o9jXtr4f1C5nnM852/fvHr97vK137TXTdevVH2kYH5x6JQnW+WjbeD+sCv/37+DHbd0nh/mnkkYfY/r/bhvX08uHr2SHaDBlxEcLFNLuM0H7+85G39tq4cH/hnNv93id3xl4vK7Pa/ltuz4OxZ7h8GGvoDui1/Guf9M/J6t44+q3nISMtD4C18/0fbxy+SHDzi95BdErbdiOPDSGFr3R1dP3n3wtrh/EfHD6yukz38AAlwKjA== | ||
sidebar_class_name: "get api-method" | ||
info_path: docs/03_dev-guide/3.7 API Documentation v1/drand-http-api | ||
custom_edit_url: null | ||
--- | ||
|
||
import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint"; | ||
import ParamsDetails from "@theme/ParamsDetails"; | ||
import RequestSchema from "@theme/RequestSchema"; | ||
import StatusCodes from "@theme/StatusCodes"; | ||
import OperationTabs from "@theme/OperationTabs"; | ||
import TabItem from "@theme/TabItem"; | ||
import Heading from "@theme/Heading"; | ||
|
||
<Heading | ||
as={"h1"} | ||
className={"openapi__heading"} | ||
children={"/:chain-hash/public/latest"} | ||
> | ||
</Heading> | ||
|
||
<MethodEndpoint | ||
method={"get"} | ||
path={"/{chain-hash}/public/latest"} | ||
context={"endpoint"} | ||
> | ||
|
||
</MethodEndpoint> | ||
|
||
|
||
|
||
Retrieves the most recent randomness value from the default chain. Note this might not be available on all chained networks; prefer using chain-specific endpoints or relays for consistency. | ||
|
||
<Heading | ||
id={"request"} | ||
as={"h2"} | ||
className={"openapi-tabs__heading"} | ||
children={"Request"} | ||
> | ||
</Heading> | ||
|
||
<ParamsDetails | ||
parameters={[{"name":"chain-hash","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"},"example":"52db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e971"}]} | ||
> | ||
|
||
</ParamsDetails> | ||
|
||
<RequestSchema | ||
title={"Body"} | ||
body={undefined} | ||
> | ||
|
||
</RequestSchema> | ||
|
||
<StatusCodes | ||
id={undefined} | ||
label={undefined} | ||
responses={{"200":{"description":"Randomness data for the latest round\n","content":{"application/json":{"schema":{"type":"object","properties":{"round":{"type":"integer","description":"A monotonically increasing integer - the randomness round index","example":367},"randomness":{"type":"string","description":"A SHA-256 hash of the signature","example":"3439d92d58e47d342131d446a3abe264396dd264717897af30525c98408c834f"},"signature":{"type":"string","description":"The Boneh-Lynn-Shacham (BLS) signature for this round of randomness","example":"90957ebc0719f8bfb67640aff8ca219bf9f2c5240e60a8711c968d93370d38f87b38ed234a8c63863eb81f234efce55b047478848c0de025527b3d3476dfe860632c1b799550de50a6b9540463e9fb66c8016b89c04a9f52dabdc988e69463c1"},"previous_signature":{"type":"string","description":"The signature of the previous round of randomness (this will is omitted for unchained networks)","example":"859504eade86790ad09b2b3474d5e09d1718b549ef7107d7bbd18f5e221765ce8252d7db02664c1f6b20f40c6e8e138704d2acfeb6c5abcc14c77e3a842b2f84515e7366248ca37b1460d23b4f98493c246fbb02851f2a43a710c968a349f8d6"}},"required":["round","randomness","signature"],"title":"Randomness"}}}},"503":{"description":"Latest randomness unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"latest randomness not available"}}}}}}}} | ||
> | ||
|
||
</StatusCodes> | ||
|
||
|
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is this large base64 blob?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are metadata for the API generated by the
docusaurus-plugin-openapi-docs
package from the yaml files. (yarn docusaurus clean-api-docs all && yarn docusaurus gen-api-docs all
)The string will be used here afterwards:
https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/blob/e4d3ec4ebfb8415e97951076ce2f0901e8d88168/packages/docusaurus-theme-openapi-docs/src/theme/ApiItem/index.tsx#L78
I have wrote a quick script for you to check what's stored in the blob.
The output would be: