Commit c135cffece1c9971e1e3c5c83cf966b44f2bc01c

Authored by Evandro Junior
Committed by Leandro Santos
1 parent 82dbd309

autentication example

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/api/session.rb
... ... @@ -9,7 +9,7 @@ module API
9 9 # password (required) - user password
10 10 #
11 11 # Example Request:
12   - # POST /login?login=some&password=pass
  12 + # POST http://localhost:3000/api/v1/login?login=adminuser&password=admin
13 13 post "/login" do
14 14 user ||= User.authenticate(params[:login], params[:password], environment)
15 15  
... ...