Commit 6d9bad7f3a20ee9519b0a1565c35efc1d2c53732

Authored by Evandro Junior
Committed by Rodrigo Souto
1 parent d3f88dcb

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  
... ...