diff --git a/src/frontend/src/controllers/API/index.ts b/src/frontend/src/controllers/API/index.ts index 169f63d31..b2d21bffd 100644 --- a/src/frontend/src/controllers/API/index.ts +++ b/src/frontend/src/controllers/API/index.ts @@ -277,12 +277,27 @@ export async function getVersion() { */ export async function getHealth() { return await axios.get("/health"); // Health is the only endpoint that doesn't require /api/v1 +} + +/** + * Fetches the build status of a flow. + * @param {string} flowId - The ID of the flow to fetch the build status for. + * @returns {Promise} A promise that resolves to an AxiosResponse containing the build status. + * + */ export async function getBuildStatus( flowId: string ): Promise { return await axios.get(`/api/v1/build/${flowId}/status`); } +//docs for postbuildinit +/** + * Posts the build init of a flow. + * @param {string} flowId - The ID of the flow to fetch the build status for. + * @returns {Promise} A promise that resolves to an AxiosResponse containing the build status. + * + */ export async function postBuildInit( flow: FlowType ): Promise> {