71 lines
1.8 KiB
TypeScript
71 lines
1.8 KiB
TypeScript
/**
|
|
* My App Service
|
|
*
|
|
*
|
|
*
|
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
* https://openapi-generator.tech
|
|
* Do not edit the class manually.
|
|
*/
|
|
import { HttpHeaders } from '@angular/common/http';
|
|
|
|
import { Observable } from 'rxjs';
|
|
|
|
import { HTTPValidationError } from '../model/models';
|
|
import { Item } from '../model/models';
|
|
import { ItemCreate } from '../model/models';
|
|
import { ItemPage } from '../model/models';
|
|
|
|
|
|
import { Configuration } from '../configuration';
|
|
|
|
|
|
|
|
export interface ItemsOpenApiServiceInterface {
|
|
defaultHeaders: HttpHeaders;
|
|
configuration: Configuration;
|
|
|
|
/**
|
|
* Adds a new item.
|
|
*
|
|
* @endpoint post /items
|
|
* @param itemCreate
|
|
*/
|
|
addItem(itemCreate: ItemCreate, extraHttpRequestParams?: any): Observable<Item>;
|
|
|
|
/**
|
|
* Deletes the item with the id.
|
|
*
|
|
* @endpoint delete /items/{id}
|
|
* @param id The item id.
|
|
*/
|
|
deleteItem(id: number, extraHttpRequestParams?: any): Observable<any>;
|
|
|
|
/**
|
|
* Returns the item with the id.
|
|
*
|
|
* @endpoint get /items/{id}
|
|
* @param id The item id.
|
|
*/
|
|
getItem(id: number, extraHttpRequestParams?: any): Observable<Item>;
|
|
|
|
/**
|
|
* Returns a page of items.
|
|
*
|
|
* @endpoint get /items
|
|
* @param pageOffset The page offset.
|
|
* @param pageSize The page size.
|
|
*/
|
|
getItems(pageOffset?: number, pageSize?: number, extraHttpRequestParams?: any): Observable<ItemPage>;
|
|
|
|
/**
|
|
* Updates the item with the id.
|
|
*
|
|
* @endpoint put /items/{id}
|
|
* @param id The item id.
|
|
* @param itemCreate
|
|
*/
|
|
updateItem(id: number, itemCreate: ItemCreate, extraHttpRequestParams?: any): Observable<Item>;
|
|
|
|
}
|