Skip to content

Commit

Permalink
update README.
Browse files Browse the repository at this point in the history
  • Loading branch information
camelmasa committed Aug 19, 2012
1 parent 98d9fec commit fe47286
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions README.md
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

0 comments on commit fe47286

Please sign in to comment.