Skip to content

Commit eeed9e0

Browse files
committed
lib/resources: implement get project API
1 parent 83213f9 commit eeed9e0

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/lib/resources/projects.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,20 @@ class Projects {
2626
return Http.authorizedRequest(options)
2727
}
2828

29+
/**
30+
* @param {Object} payload
31+
* @returns {Promise.<Object>}
32+
* @description Get a Specific Project.
33+
*/
34+
static getProject (payload) {
35+
const projectId = Params.destructURLParam(payload, 'projectId')
36+
37+
const options = {
38+
endpoint: `${Projects.API_PREFIX}/projects/${projectId}`
39+
}
40+
return Http.authorizedRequest(options)
41+
}
42+
2943
/**
3044
* @param {Object} payload
3145
* @returns {Promise.<Object>}

0 commit comments

Comments
 (0)