Skip to main content

ImageAnalyses API

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

MethodHTTP requestDescription
imageAnalysesSnapshotGET /image_analysesYour GET endpoint

imageAnalysesSnapshot​

ImageAnalyses imageAnalysesSnapshot()

This will get a snapshot of all of your code analyses, a code analysis is attached to an image analysis.

Example​

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

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

const body: Pieces.ImageAnalysesSnapshotRequest = {
// boolean | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement) (optional)
transferables: true,
};

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

Parameters​

NameTypeDescriptionNotes
transferables[boolean]This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement)(optional) defaults to undefined

Return type​

ImageAnalyses

HTTP request headers​

  • Content-Type: Not defined
  • Accept: application/json, text/plain

HTTP response details​

Status codeDescriptionResponse headers
200OK-
500Internal Server Error-