forked from camelmasa/spree_api_auth
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
SpreeApiAuth | ||
Spree Api Auth | ||
============ | ||
|
||
Introduction goes here. | ||
Spree's Rest API add authentication API. | ||
|
||
$ /api/users/sign_up.json | ||
$ /api/users/sign_in.json | ||
|
||
Example | ||
======= | ||
|
||
Example goes here. | ||
$ curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d ' {"user":{"email":"[email protected]", "password":"camelmasa", "password_confirmation":"camelmasa"}}' http://localhost:3000/api/users/sign_up.json | ||
$ curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d ' {"user":{"email":"[email protected]", "password":"camelmasa"}}' http://localhost:3000/api/users/sign_in.json | ||
|
||
Testing | ||
------- | ||
|
||
Be sure to bundle your dependencies and then create a dummy test app for the specs to run against. | ||
|
||
$ bundle | ||
$ bundle exec rake test_app | ||
$ bundle exec rspec spec | ||
Coding now. | ||
|
||
Copyright (c) 2012 [name of extension creator], released under the New BSD License |