asp.net mvc - RESTful Application Structure -
I'm new to the Restructured Architecture or at least it's new to use properly, I only have SOAP With real experience I have a problem in wrapping my head about some things. I know that there are other questions which are similar, but none, which I have found, satisfy my question satisfactorily.
I am just starting this app, so I want to start it correctly and what I see is now a user registration screen. I have two verification calls which even before the registration form Collected. First of all, I have a verification call that checks to ensure that the email entered by the user is unique and second, I have a verification call that checks to ensure that the access code providing the customer is in the database is present.
I have currently structured it as POST (which I believe should be GET ) and mine has an argument that defines What I want to do is therefore I have an argument string for the email like
action = validateemail and value = email @ email.com
< P> And it is calling the user's action. My membership controller is fully convinced that this is wrong because only me Verbs must use GET , POST , PUT , and DELETE I am defining using. Honestly, I do not know how to do this. I believe the user should be my resource, but email should probably be my resource for email verification. I think what I am asking, what will you do, what am I trying to do? I know that some of you can say all the assumptions on submitting, but I like to do it in both ways. I will complete the verification of asynchronous verification as well as user verification.
We do something like our resource is called "account" Will have to do a GET and validate the HTTP return code. I hope 404 - I do not know if the proposed account does not exist. If they will tell you a 400-bad request in scam data, something was wrong. Will there be a post for the same resource to create an account? To do something like changing a password, a PUT may be appropriate I think if you are already traveling on the server, you can return to the account (200 - OK on GET) if it is the second Travel is present to save.
Comments
Post a Comment