0.0.0 • Published 2 years ago

estuary_api v0.0.0

Weekly downloads
-
License
Apache 2.0 Apache...
Repository
-
Last release
2 years ago

estuary_api

EstuaryApi - JavaScript client for estuary_api This is the API for the Estuary application. This SDK is automatically generated by the Swagger Codegen project:

  • API version: 0.0.0
  • Package version: 0.0.0
  • Build package: io.swagger.codegen.languages.JavascriptClientCodegen For more information, please visit https://docs.estuary.tech/feedback

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install estuary_api --save
Local development

To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing package.json (and this README). Let's call this JAVASCRIPT_CLIENT_DIR. Then run:

npm install

Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR:

npm link

Finally, switch to the directory you want to use your estuary_api from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

You should now be able to require('estuary_api') in javascript files from the directory you ran the last command above from.

git

If the library is hosted at a git repository, e.g. https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:

    npm install GIT_USER_ID/GIT_REPO_ID --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file, that's to say your javascript file where you actually use this library):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

Please follow the installation instruction and execute the following JS code:

var EstuaryApi = require('estuary_api');

var defaultClient = EstuaryApi.ApiClient.instance;

// Configure API key authorization: bearerAuth
var bearerAuth = defaultClient.authentications['bearerAuth'];
bearerAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.apiKeyPrefix['Authorization'] = "Token"

var api = new EstuaryApi.AdminApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.adminPeeringPeersDelete(callback);

Documentation for API Endpoints

All URIs are relative to https://api.estuary.tech

ClassMethodHTTP requestDescription
EstuaryApi.AdminApiadminPeeringPeersDeleteDELETE /admin/peering/peersRemove peers on Peering Service
EstuaryApi.AdminApiadminPeeringPeersGetGET /admin/peering/peersList all Peering peers
EstuaryApi.AdminApiadminPeeringPeersPostPOST /admin/peering/peersAdd peers on Peering Service
EstuaryApi.AdminApiadminPeeringStartPostPOST /admin/peering/startStart Peering
EstuaryApi.AdminApiadminPeeringStatusGetGET /admin/peering/statusCheck Peering Status
EstuaryApi.AdminApiadminPeeringStopPostPOST /admin/peering/stopStop Peering
EstuaryApi.AdminApiadminSystemConfigGetGET /admin/system/configGet systems(estuary/shuttle) config
EstuaryApi.AdminApiadminUsersGetGET /admin/usersGet all users
EstuaryApi.AutoretrieveApiadminAutoretrieveInitPostPOST /admin/autoretrieve/initRegister autoretrieve server
EstuaryApi.AutoretrieveApiadminAutoretrieveListGetGET /admin/autoretrieve/listList autoretrieve servers
EstuaryApi.AutoretrieveApiautoretrieveHeartbeatPostPOST /autoretrieve/heartbeatMarks autoretrieve server as up
EstuaryApi.CollectionsApicollectionsColuuidCommitPostPOST /collections/{coluuid}/commitProduce a CID of the collection contents
EstuaryApi.CollectionsApicollectionsColuuidDeleteDELETE /collections/{coluuid}Deletes a collection
EstuaryApi.CollectionsApicollectionsColuuidGetGET /collections/{coluuid}Get contents in a collection
EstuaryApi.CollectionsApicollectionsColuuidPostPOST /collections/{coluuid}Add contents to a collection
EstuaryApi.CollectionsApicollectionsFsAddPostPOST /collections/fs/addAdd a file to a collection
EstuaryApi.CollectionsApicollectionsGetGET /collections/List all collections
EstuaryApi.CollectionsApicollectionsPostPOST /collections/Create a new collection
EstuaryApi.ContentApicontentAddCarPostPOST /content/add-carAdd Car object
EstuaryApi.ContentApicontentAddIpfsPostPOST /content/add-ipfsAdd IPFS object
EstuaryApi.ContentApicontentAddPostPOST /content/addAdd new content
EstuaryApi.ContentApicontentAggregatedContentGetGET /content/aggregated/{content}Get aggregated content stats
EstuaryApi.ContentApicontentAllDealsGetGET /content/all-dealsGet all deals for a user
EstuaryApi.ContentApicontentBwUsageContentGetGET /content/bw-usage/{content}Get content bandwidth
EstuaryApi.ContentApicontentCreatePostPOST /content/createAdd a new content
EstuaryApi.ContentApicontentDealsGetGET /content/dealsContent with deals
EstuaryApi.ContentApicontentEnsureReplicationDatacidGetGET /content/ensure-replication/{datacid}Ensure Replication
EstuaryApi.ContentApicontentFailuresContentGetGET /content/failures/{content}List all failures for a content
EstuaryApi.ContentApicontentImportdealPostPOST /content/importdealImport a deal
EstuaryApi.ContentApicontentListGetGET /content/listList all pinned content
EstuaryApi.ContentApicontentReadContGetGET /content/read/{cont}Read content
EstuaryApi.ContentApicontentStagingZonesGetGET /content/staging-zonesGet staging zone for user
EstuaryApi.ContentApicontentStatsGetGET /content/statsGet content statistics
EstuaryApi.ContentApicontentStatusIdGetGET /content/status/{id}Content Status
EstuaryApi.DealsApidealEstimatePostPOST /deal/estimateEstimate the cost of a deal
EstuaryApi.DealsApidealInfoDealidGetGET /deal/info/{dealid}Get Deal Info
EstuaryApi.DealsApidealProposalPropcidGetGET /deal/proposal/{propcid}Get Proposal
EstuaryApi.DealsApidealQueryMinerGetGET /deal/query/{miner}Query Ask
EstuaryApi.DealsApidealStatusByProposalPropcidGetGET /deal/status-by-proposal/{propcid}Get Deal Status by PropCid
EstuaryApi.DealsApidealStatusMinerPropcidGetGET /deal/status/{miner}/{propcid}Deal Status
EstuaryApi.DealsApidealTransferInProgressGetGET /deal/transfer/in-progressTransfer In Progress
EstuaryApi.DealsApidealTransferStatusPostPOST /deal/transfer/statusTransfer Status
EstuaryApi.DealsApidealsFailuresGetGET /deals/failuresGet storage failures for user
EstuaryApi.DealsApidealsMakeMinerPostPOST /deals/make/{miner}Make Deal
EstuaryApi.DealsApidealsStatusDealGetGET /deals/status/{deal}Get Deal Status
EstuaryApi.DealsApipublicDealsFailuresGetGET /public/deals/failuresGet storage failures
EstuaryApi.DealsApipublicMinersStorageQueryMinerGetGET /public/miners/storage/query/{miner}Query Ask
EstuaryApi.MetricsApipublicMetricsDealsOnChainGetGET /public/metrics/deals-on-chainGet deal metrics
EstuaryApi.MinerApipublicMinersDealsMinerGetGET /public/miners/deals/{miner}Get all miners deals
EstuaryApi.MinerApipublicMinersStatsMinerGetGET /public/miners/stats/{miner}Get miner stats
EstuaryApi.NetApinetAddrsGetGET /net/addrsNet Addrs
EstuaryApi.NetApipublicMinersFailuresMinerGetGET /public/miners/failures/{miner}Get all miners
EstuaryApi.NetApipublicMinersGetGET /public/minersGet all miners
EstuaryApi.NetApipublicNetAddrsGetGET /public/net/addrsNet Addrs
EstuaryApi.NetApipublicNetPeersGetGET /public/net/peersNet Peers
EstuaryApi.PeeringApiadminPeeringPeersDeleteDELETE /admin/peering/peersRemove peers on Peering Service
EstuaryApi.PeeringApiadminPeeringPeersGetGET /admin/peering/peersList all Peering peers
EstuaryApi.PeeringApiadminPeeringPeersPostPOST /admin/peering/peersAdd peers on Peering Service
EstuaryApi.PeeringApiadminPeeringStartPostPOST /admin/peering/startStart Peering
EstuaryApi.PeeringApiadminPeeringStatusGetGET /admin/peering/statusCheck Peering Status
EstuaryApi.PeeringApiadminPeeringStopPostPOST /admin/peering/stopStop Peering
EstuaryApi.PeersApiadminPeeringPeersDeleteDELETE /admin/peering/peersRemove peers on Peering Service
EstuaryApi.PeersApiadminPeeringPeersGetGET /admin/peering/peersList all Peering peers
EstuaryApi.PeersApiadminPeeringPeersPostPOST /admin/peering/peersAdd peers on Peering Service
EstuaryApi.PeersApiadminPeeringStartPostPOST /admin/peering/startStart Peering
EstuaryApi.PeersApiadminPeeringStatusGetGET /admin/peering/statusCheck Peering Status
EstuaryApi.PeersApiadminPeeringStopPostPOST /admin/peering/stopStop Peering
EstuaryApi.PinningApipinningPinsGetGET /pinning/pinsList all pin status objects
EstuaryApi.PinningApipinningPinsPinidDeleteDELETE /pinning/pins/{pinid}Delete a pinned object
EstuaryApi.PinningApipinningPinsPinidGetGET /pinning/pins/{pinid}Get a pin status object
EstuaryApi.PinningApipinningPinsPinidPostPOST /pinning/pins/{pinid}Replace a pinned object
EstuaryApi.PinningApipinningPinsPostPOST /pinning/pinsAdd and pin object
EstuaryApi.PublicApipublicByCidCidGetGET /public/by-cid/{cid}Get Content by Cid
EstuaryApi.PublicApipublicInfoGetGET /public/infoGet public node info
EstuaryApi.PublicApipublicMetricsDealsOnChainGetGET /public/metrics/deals-on-chainGet deal metrics
EstuaryApi.PublicApipublicMinersDealsMinerGetGET /public/miners/deals/{miner}Get all miners deals
EstuaryApi.PublicApipublicMinersFailuresMinerGetGET /public/miners/failures/{miner}Get all miners
EstuaryApi.PublicApipublicMinersGetGET /public/minersGet all miners
EstuaryApi.PublicApipublicMinersStatsMinerGetGET /public/miners/stats/{miner}Get miner stats
EstuaryApi.PublicApipublicNetAddrsGetGET /public/net/addrsNet Addrs
EstuaryApi.PublicApipublicNetPeersGetGET /public/net/peersNet Peers
EstuaryApi.PublicApipublicStatsGetGET /public/statsPublic stats
EstuaryApi.UserApiuserApiKeysGetGET /user/api-keysGet API keys for a user
EstuaryApi.UserApiuserApiKeysKeyDeleteDELETE /user/api-keys/{key}Revoke a User API Key.
EstuaryApi.UserApiuserApiKeysPostPOST /user/api-keysCreate API keys for a user
EstuaryApi.UserApiuserExportGetGET /user/exportExport user data
EstuaryApi.UserApiuserStatsGetGET /user/statsCreate API keys for a user

Documentation for Models

Documentation for Authorization

bearerAuth

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header