import { OpenApiRequestBuilder } from '@sap-cloud-sdk/openapi' ; import type { TestEntity } from './schema' ; /**
 * Representation of the 'EntityApi'.
 * This API is part of the 'test-service' service.
 */ export const EntityApi = { param queryParameters returns getAllEntities : ( queryParameters ? ) => new OpenApiRequestBuilder < TestEntity [ ] > ( 'get' , '/entities' , { queryParameters } ) , param body returns updateEntityWithPut : ( body ) => new OpenApiRequestBuilder < any > ( 'put' , '/entities' , { body } ) , param body returns createEntity : ( body ) => new OpenApiRequestBuilder < any > ( 'post' , '/entities' , { body } ) , param body returns updateEntity : ( body ) => new OpenApiRequestBuilder < any > ( 'patch' , '/entities' , { body } ) , param body returns deleteEntity : ( body ) => new OpenApiRequestBuilder < any > ( 'delete' , '/entities' , { body } ) , returns headEntities : ( ) => new OpenApiRequestBuilder < any > ( 'head' , '/entities' ) , param entityId returns getEntityByKey : ( entityId ) => new OpenApiRequestBuilder < any > ( 'get' , '/entities/{entityId}' , { pathParameters : { entityId } } ) , returns countEntities : ( ) => new OpenApiRequestBuilder < number > ( 'get' , '/entities/count' ) } ;