import type { RouteLocationInterface } from "@devowl-wp/utils";
import { RouteHttpVerb } from "@devowl-wp/utils";

import type { ParamsRestAttachmentGet, RequestRestAttachmentGet, ResponseRestAttachmentGet } from "./attachment.get.js";

const locationRestAttachmentPost: RouteLocationInterface = {
    path: "/attachments/:id",
    method: RouteHttpVerb.POST,
};

interface RequestRestAttachmentPost extends RequestRestAttachmentGet {
    forceNewSchema?: boolean;
}

interface ParamsRestAttachmentPost extends ParamsRestAttachmentGet {}

interface ResponseRestAttachmentPost extends ResponseRestAttachmentGet {}

export {
    locationRestAttachmentPost,
    type RequestRestAttachmentPost,
    type ParamsRestAttachmentPost,
    type ResponseRestAttachmentPost,
};
