openmeter / api /spec /packages /aip /src /defaults /operations.tsp
Leon4gr45's picture
Upload folder using huggingface_hub (part 2)
1477a90 verified
Raw
History Blame Contribute Delete
922 Bytes
import "@typespec/http";
import "@typespec/rest";
import "@typespec/openapi";
import "@typespec/openapi3";
import "../common/error.tsp";
import "../shared/index.tsp";
import "./taxcodes.tsp";
using TypeSpec.Http;
using TypeSpec.OpenAPI;
namespace Defaults;
interface OrganizationDefaultTaxCodesOperations {
@get
@operationId("get-organization-default-tax-codes")
@summary("Get organization default tax codes")
@extension(Shared.UnstableExtension, true)
get():
| Shared.GetResponse<OrganizationDefaultTaxCodes>
| Common.NotFound
| Common.ErrorResponses;
@put
@operationId("update-organization-default-tax-codes")
@summary("Update organization default tax codes")
@extension(Shared.UnstableExtension, true)
update(@body body: Shared.UpdateRequest<OrganizationDefaultTaxCodes>):
| Shared.UpsertResponse<OrganizationDefaultTaxCodes>
| Common.NotFound
| Common.ErrorResponses;
}