UNPKG

@broadcom/endevor-bridge-for-git-rest-api

Version:

Endevor Bridge for Git Rest client

18 lines (17 loc) 661 B
import { MappingAction } from "../action/MappingAction"; import { RequestMethod } from "../../AbstractRequest"; export class GetWebhooks extends MappingAction { constructor(id, context, repository) { super(context, repository); this.customPath = "/webhook"; this.method = RequestMethod.GET; this.id = id; this.params = (id !== undefined) ? ((context !== undefined && repository !== undefined) ? { id, context, repository } : { id }) : ((context !== undefined && repository !== undefined) ? { context, repository } : {}); } }