Skip to content

Commit

Permalink
Merge pull request #191 from medispring/feat/MS-549_Add-function-to-d…
Browse files Browse the repository at this point in the history
…elete-magistral

Feat/ms 549 add function to delete magistral
  • Loading branch information
Hamsdam authored Aug 25, 2020
2 parents bdf0b05 + f37c132 commit 70149a2
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions icc-api/api/iccEntitytemplateApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,26 @@ export class iccEntitytemplateApi {
.then(doc => new models.EntityTemplateDto(doc.body as JSON))
.catch(err => this.handleError(err))
}

deleteEntityTemplate(entityTemplateIds: string): Promise<any> {
let _body = null

const _url =
this.host +
"/entitytemplate/{entityTemplateIds}".replace(
"{entityTemplateIds}",
entityTemplateIds + ""
) +
"?ts=" +
new Date().getTime()
let headers = this.headers
headers = headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("DELETE", _url, headers, _body, this.fetchImpl)
.catch(err => this.handleError(err))
}

findAllEntityTemplates(
type: string,
searchString?: string,
Expand Down

0 comments on commit 70149a2

Please sign in to comment.