MCPcopy
hub / github.com/fastapi/full-stack-fastapi-template / createItem

Method createItem

frontend/src/client/sdk.gen.ts:40–50  ·  view source on GitHub ↗

* Create Item * Create new item. * @param data The data for the request. * @param data.requestBody * @returns ItemPublic Successful Response * @throws ApiError

(data: ItemsCreateItemData)

Source from the content-addressed store, hash-verified

38 * @throws ApiError
39 */
40 public static createItem(data: ItemsCreateItemData): CancelablePromise<ItemsCreateItemResponse> {
41 return __request(OpenAPI, {
42 method: 'POST',
43 url: '/api/v1/items/',
44 body: data.requestBody,
45 mediaType: 'application/json',
46 errors: {
47 422: 'Validation Error'
48 }
49 });
50 }
51
52 /**
53 * Read Item

Callers 1

AddItemFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected