문제

I am attempting to use typescript to consume a RESTful webservice, and am having a few issues understanding how to write the call.

I want to consume this call for the Reddit API:

POST /api/register

http://www.reddit.com/dev/api

How can I write that post method using Typescript?

도움이 되었습니까?

해결책

Look at amplify.js (http://amplifyjs.com/). This library provides a convenient wrapper around the invocation of REST services and has TypeScript definition filed to facilitate easy consumption from TypeScript.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top