Skip to main content

CodeAnalyses API

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

MethodHTTP requestDescription
codeAnalysesSnapshotGET /code_analysesYour GET endpoint

codeAnalysesSnapshot

CodeAnalyses codeAnalysesSnapshot()

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

Example

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

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

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

Parameters

This endpoint does not need any parameters.

Return type

CodeAnalyses

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200OK-
500Internal Server Error-