[vibe.d] How to create authentication system via REST interface?

aberba via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Mar 15 08:03:15 PDT 2017


On Wednesday, 15 March 2017 at 13:24:07 UTC, NX wrote:
> I'm trying to understand how to create some json-rest api that 
> would return data (in json format) related to that specific 
> logged in user. I see the documentation covers these but I'm 
> totally new to vibe.d so can't quite figure out putting these 
> two things together and make them work. Some easy to follow 
> sample would be incredibly helpful, though any help is 
> appreciated.

The "examples" folder in the github repo has demo on rest api. 
Along with the vibe.d api reference, you should get a badic 
service working. Authentication can be tricky but you can append 
a query with some api key for each request to authenticate.


More information about the Digitalmars-d-learn mailing list