ts-node-api | Yeoman Generator to build your own Node Express Web API | Generator Utils library
kandi X-RAY | ts-node-api Summary
kandi X-RAY | ts-node-api Summary
This generator will help you to build your own Node Express Web API using TypeScript. You'll be able to connect to your MongoDB database. Feel free to leave your suggestions and help us to improve this generator.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ts-node-api
ts-node-api Key Features
ts-node-api Examples and Code Snippets
Community Discussions
Trending Discussions on ts-node-api
QUESTION
I'm trying to get a list of documents from my on premises TFS 2017 (U3) web extension using Microsoft/vsts-node-api. I can get the extension itself with something like the following
...ANSWER
Answered 2018-Mar-19 at 19:28This apparently cannot be done - you need to know the Collection Names (as well as the extension ID and publisher ID).
Then, the documents in the collection can be retrieved like this:
QUESTION
I've been using the vsts-node-api with some degree of success.
However what I want to do it to query for all the commits in a particular branch. This is described on the REST api documentation found here.
However the node api only allows you to query for commits in a repository using this method of the GitApi
...ANSWER
Answered 2018-Feb-26 at 09:08For now, get commits of a branch is not available for vsts-node-api. And you can also follow up the issue Enable to get commits of a branch.
And there are two workarounds for now:
- Workaround 1: use REST call to get the commits of a branch.
- Workaround 2: clone/get the git repo locally, and then execute
git log branchname --oneline
to get the commits of the specified branch.
QUESTION
We are working on a VSTS Extension and want to only allow select users/groups to access and utilize the features of the extension. This extension essentially adds a dashboard that's linked from the gear menu.
If a user doesn't have access to the various data that the extension pulls from VSTS, they will have parts of this extension not work - but we do want to hide the extension and its link entirely if we don't explicitly authorize a group to view it.
I've checked various pages within the Develop Extensions documentation as well as the Security documentation but haven't found anything relevant to a topic like this.
I'm wondering if perhaps I could check for the user's identity details and deny access based on that, but the Identities API isn't yet functional, so I think that option isn't available to me at the moment.
...ANSWER
Answered 2018-Jan-12 at 02:39For now, there is no way to specify the users or groups to access the installed extension.
I posted an user voice VSTS extension restrict for specified users or groups to suggest this feature. You can vote and follow up.
QUESTION
I'm trying to consume the vso-node-api, and I want to automatically set the backlog iteration for a team that I've created fresh using the API previously.
I'm having some trouble using the updateTeamSettings
in the WorkApi
:
updateTeamSettings(teamSettingsPatch: WorkInterfaces.TeamSettingsPatch, teamContext: TfsCoreInterfaces.TeamContext): Promise;
As you see here, I need to provide a teamSettingsPatch
object and a teamContext
object. I've already figured out teamContext
and have used it successfully in other calls, but I can't seem to provide a teamSettingsPatch
object that causes the API to return a successful response. So far I get 400 Bad Request
and an empty object in return ({ }
) for everything I've tried. (Edit: This empty object and bad request was due to a bug in my own wrapper code, what you'll really get with a TeamSettingsUpdate that isn't successful is a settings object returned with values that weren't changed as you'd expect).
WorkInterfaces.ts indicates that I need to provide an object like this:
...ANSWER
Answered 2018-Jan-01 at 04:29First, it doesn’t work with name of backlogIteration, required the ID.
Secondly, the value of backlogIteration is incorrect , I can get the correct value by calling getTeamSettings function (but you can’t), you can update the vso-node-api to latest version (e.g. 6.2.8-preview) and check the result, you also can call Get a team’s settings REST api manually to get the value.
The teamSettingPatch of mine:
QUESTION
I'm having some trouble with the VSTS Node Api - specifically, the Identities API.
I've already successfully used the Git API to perform actions like retrieving a list of repositories:
...ANSWER
Answered 2017-Dec-08 at 06:01I submit a feedback here: Identities API in VSTS-Node-API preview version, you can vote and follow it.
QUESTION
I am attempting to use the vsts-node-api package in a custom Build task that I am writing and trying to use on on-prem tfs2017. I have leveraged some of the Sample code found on the github repo, and I've found that it returns an error of Invalid Resource. Doing some debugging in VSCode and then adding some debug logging to the rest code, I find that the rest call returns a 401. The error occurs after I get the WebApi and then try to connect.
I've attempted to use the PAT Handler, and the NtlmHandler, but no luck. If I hit the URI through my browser, I successfully get the JSON returned.. any help would be super appreciated.
...ANSWER
Answered 2017-Aug-28 at 21:41It looks like this response from the VSTFS team is the way to go.
TLDR; Generate a bearer OAuth token per build to talk back to VSTS.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ts-node-api
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page