forked from ServiceNowDevProgram/code-snippets
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Retrieve ci relationship types (ServiceNowDevProgram#856)
* Create RetriveCiRelationshipTypes.jss.js This is the Rest Resources for Retrive CI Relationship Types * Update CmdbApi.js Add the function getCilatRelationshipTypes for retrieving the CI relationships from the instance * Update readme.md Contains scripted REST API to retrieve a list of Configuration Item (CI) Relationship Types from the ServiceNow instance. * Remove additional extension from file name .jss was present in the filename, this seems to be in error and is not aligned with the other file names so removing --------- Co-authored-by: Astrid Sapphire <[email protected]>
- Loading branch information
1 parent
15c5034
commit e2884dc
Showing
3 changed files
with
36 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
(function process(/*RESTAPIRequest*/ request, /*RESTAPIResponse*/ response) { | ||
|
||
// implement resource here | ||
return new CmdbApi(request, response).getCiRelationshipTypes(); | ||
|
||
})(request, response); |
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