[RESOLVED]create users using web API

<div class="post-text" itemprop="text">

I have built a web application using MVC5 now I’m building the web api’s for that project. I want to build an api that allows the creation of users and save them in the membership database. how could that happen?what should I do?

</div>

lolo512

I want to build an api that allows the creation of users and save them in the membership database. how could that happen?

How users are created in your application until now? Do the same…

shouldn’t there be a javascript code that gets the data and send them by ajax to the server side?

Hi lolo512,

You could use JavaScript to post the data to server (e.g. get username and password, then post to the server through AJAX)

# jQuery.ajax()

http://api.jquery.com/jquery.ajax/

About Web API authentication, please refer to:

# Security, Authentication and Authorization

http://www.asp.net/web-api/overview/security

Best Regards

Starain

Leave a Reply