pinecone-1.0.0: Servant bindings to Pinecone
Safe HaskellSafe-Inferred
LanguageHaskell2010

Pinecone

Description

Main entrypoint to the API

Synopsis

Methods

getClientEnv Source #

Arguments

:: Host

Base URL for API

CAREFULLY NOTE: This should be "app.pinecone.io" for makeControlMethods and should be the index host for makeDataMethods (i.e. the host field of a returned IndexModel).

-> IO ClientEnv 

Convenient utility to get a ClientEnv for the most common use case

makeControlMethods Source #

Arguments

:: ClientEnv 
-> Text

API token

-> ControlMethods 

Get a record of control API methods after providing an API token

makeDataMethods Source #

Arguments

:: ClientEnv 
-> Text

API token

-> DataMethods 

Get a record of control API methods after providing an API token

Servant

type ControlAPI = Header' [Required, Strict] "Api-Key" Text :> (Header' [Required, Strict] "X-Pinecone-API-Version" Text :> (ControlAPI :<|> (API :<|> (API :<|> API)))) Source #

Index management

type DataAPI = Header' [Required, Strict] "Api-Key" Text :> (Header' [Required, Strict] "X-Pinecone-API-Version" Text :> (DataAPI :<|> (API :<|> (API :<|> API)))) Source #

Index operations