Documentation ¶
Index ¶
- Constants
- func DeleteImportedAPI(client *client.Client, instance *wso2v1alpha2.API) error
- func GetAPIDefinition(filePath string) (*v2.APIDefinitionFile, error)
- func GetAdditionalProperties(swaggerData string) (string, string, string, error)
- func GetTempPathOfExtractedArchive(data []byte) (string, error)
- func ImportAPI(client *client.Client, api *wso2v1alpha2.API) error
- func YamlToJson(yamlData []byte) ([]byte, error)
- type API
- type APIListResponse
- type ClientRegistrationResponse
- type RESTConfig
- type TokenResponse
Constants ¶
View Source
const ( HeaderAuthorization = "Authorization" HeaderAccept = "Accept" HeaderContentType = "Content-Type" HeaderConnection = "Connection" HeaderValueApplicationJSON = "application/json" HeaderValueAuthBasicPrefix = "Basic" HeaderValueAuthBearerPrefix = "Bearer" HeaderValueKeepAlive = "keep-alive" HeaderValueXWWWFormUrlEncoded = "application/x-www-form-urlencoded" DefaultHttpRequestTimeout = 10000 Deployment = "Deployment" Certificates = "certificates" )
Variables ¶
This section is empty.
Functions ¶
func DeleteImportedAPI ¶
func DeleteImportedAPI(client *client.Client, instance *wso2v1alpha2.API) error
func GetAPIDefinition ¶
func GetAPIDefinition(filePath string) (*v2.APIDefinitionFile, error)
GetAPIDefinition scans filePath and returns v2.APIDefinitionFile or an error
func GetAdditionalProperties ¶
getAdditionalProperties returns additional data required by REST API when adding an API using swagger definition
func ImportAPI ¶
func ImportAPI(client *client.Client, api *wso2v1alpha2.API) error
ImportAPI imports an API to APIM using either project zip or swagger
func YamlToJson ¶
YamlToJson converts a yaml string to json
Types ¶
type APIListResponse ¶
type RESTConfig ¶
Click to show internal directories.
Click to hide internal directories.