2 stable releases
1.1.0 | Dec 25, 2023 |
---|---|
1.0.0 | Nov 3, 2023 |
#43 in #storage-api
32 downloads per month
Used in 2 crates
68KB
1.5K
SLoC
Rust API client for openapi
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Overview
This API client was generated by the OpenAPI Generator project. By using the openapi-spec from a remote server, you can easily generate an API client.
- API version: 1.0.0
- Package version: 1.0.0
- Build package:
org.openapitools.codegen.languages.RustClientCodegen
Installation
Put the package under your project folder in a directory named openapi
and add the following to Cargo.toml
under [dependencies]
:
openapi = { path = "./openapi" }
Documentation for API Endpoints
All URIs are relative to https://api.nft.storage
Class | Method | HTTP request | Description |
---|---|---|---|
NftStorageApi | check | GET /check/{cid} | Check if a CID of an NFT is being stored by nft.storage. |
NftStorageApi | delete | DELETE /{cid} | Stop storing the content with the passed CID |
NftStorageApi | did_get | GET /did | Get nft.storage DID |
NftStorageApi | list | GET / | List all stored files |
NftStorageApi | status | GET /{cid} | Get information for the stored file CID |
NftStorageApi | store | POST /store | Store an ERC-1155 compatible NFT |
NftStorageApi | ucan_token_post | POST /ucan/token | Get a root UCAN. |
NftStorageApi | upload | POST /upload | Store a file |
NftStorageApi | user_did_post | POST /user/did | Register a DID for a user. |
Documentation For Models
- CheckResponse
- CheckResponseValue
- Deal
- DeleteResponse
- DidGet200Response
- DidNotFoundErrorResponse
- DidNotFoundErrorResponseError
- ErrorResponse
- ErrorResponseError
- FilesInner
- ForbiddenErrorResponse
- ForbiddenErrorResponseError
- GetResponse
- Links
- LinksFileInner
- ListResponse
- Nft
- Pin
- PinStatus
- UcanTokenPost200Response
- UnauthorizedErrorResponse
- UnauthorizedErrorResponseError
- UploadResponse
- UserDidPostRequest
To get access to the crate's generated documentation, use:
cargo doc --open
Author
Dependencies
~7–19MB
~260K SLoC