-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Functionality to report API endpoints of the application (#178)
- Loading branch information
1 parent
88ba456
commit ef4f414
Showing
4 changed files
with
69 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
/* | ||
* Copyright 2023 New Relic Corporation. All rights reserved. | ||
* SPDX-License-Identifier: New Relic Software License v1.0 | ||
*/ | ||
|
||
const { BasicInfo } = require('./event'); | ||
const applicationInfo = require('./applicationinfo').getInstance(); | ||
/** | ||
* Function Constructor to create object of FuzzFail event | ||
* @param {*} fuzzHeader | ||
*/ | ||
function APIEndPoint (apiEndpoints) { | ||
BasicInfo.call(this); | ||
this.jsonVersion = applicationInfo.jsonVersion; | ||
this.jsonName = 'sec-application-url-mapping'; | ||
this.eventType = "sec-application-url-mapping" | ||
this.applicationUUID = applicationInfo.applicationUUID; | ||
this.groupName = applicationInfo.groupName; | ||
this.mappings = apiEndpoints; | ||
|
||
return this; | ||
} | ||
|
||
APIEndPoint.prototype.constructor = APIEndPoint; | ||
|
||
module.exports = { | ||
APIEndPoint | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters