Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Mock npm adduser server response, fixing #5 #9

Merged
merged 1 commit into from
Dec 4, 2013
Merged

Conversation

dead-horse
Copy link
Member

put /-/user/:name first
if return 201 adduser ok,
else if return 409, means user exist

then get /-/user/:name with header authorization: 'Basic adasdadasdad=='
if check ok, return 200 and account info. then put/-/user/:name/-rev/:rev
if check not ok, return 401, adduser error.

adduser the same account:
It will post /_session to get authSession.

put /-/user/:name first
if return 201 adduser ok,
else if return 409, means user exist

then get /-/user/:name with header authorization: 'Basic ZXhpc3EWdf=='
if check ok, return 200 and account info. then put/-/user/:name/-rev/:rev
if check not ok, return 401, adduser error.

adduser the same account:
It will post /_session to get authSession.
@ghost ghost assigned fengmk2 Dec 4, 2013
@fengmk2
Copy link
Member

fengmk2 commented Dec 4, 2013

+1

fengmk2 added a commit that referenced this pull request Dec 4, 2013
Mock npm adduser server response, fixing #5
@fengmk2 fengmk2 merged commit 1b73600 into master Dec 4, 2013
@fengmk2 fengmk2 deleted the adduser-mock branch December 4, 2013 10:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants