Skip to main content

WellKnown API

All URIs are relative to http://localhost:1000

MethodHTTP requestDescription
getWellKnownHealthGET /.well-known/health/.well-known/health [GET]
getWellKnownVersionGET /.well-known/version/.well-known/version [Get]

getWellKnownHealth

string getWellKnownHealth()

Retrieves the health status of the server.

Example

import * as Pieces from '@pieces.app/pieces-os-client'

const configuration = Pieces.Configuration()
const apiInstance = new Pieces.WellKnownApi(configuration)

apiInstance.getWellKnownHealth().then((data: string) => {
console.log('API called successfully. Returned data: ' + data)
}).catch((error: unknown) => console.error(error))

Parameters

This endpoint does not need any parameters.

Return type

string

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/plain

HTTP response details

Status codeDescriptionResponse headers
200OK-

getWellKnownVersion

string getWellKnownVersion()

Retrieves the version of the server. It returns a string representing the current version.

Example

import * as Pieces from '@pieces.app/pieces-os-client'

const configuration = Pieces.Configuration()
const apiInstance = new Pieces.WellKnownApi(configuration)

apiInstance.getWellKnownVersion().then((data: string) => {
console.log('API called successfully. Returned data: ' + data)
}).catch((error: unknown) => console.error(error))

Parameters

This endpoint does not need any parameters.

Return type

string

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/plain

HTTP response details

Status codeDescriptionResponse headers
200OK-