think/packages/domains/lib/api/comment.d.ts

36 lines
719 B
TypeScript
Raw Normal View History

2022-05-23 05:05:59 +00:00
import { IComment, IDocument } from '../models';
export declare const CommentApiDefinition: {
/**
*
*/
add: {
method: "Post";
server: "add";
client: () => string;
};
/**
*
*/
update: {
method: "Patch";
server: "update";
client: () => string;
};
/**
*
*/
delete: {
method: "Delete";
server: "delete/:id";
client: (id: IComment['id']) => string;
};
/**
*
*/
documents: {
method: "Get";
server: "document/:documentId";
client: (documentId: IDocument['id']) => string;
};
};