Commit 69704ae1568b21d85e4d2ba21de5a25607b3a946

Authored by Evandro Junior
Committed by Leandro Santos
1 parent 176b09f0

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,7 +9,7 @@ module API
9 # password (required) - user password 9 # password (required) - user password
10 # 10 #
11 # Example Request: 11 # Example Request:
12 - # POST /login?login=some&password=pass 12 + # POST http://localhost:3000/api/v1/login?login=adminuser&password=admin
13 post "/login" do 13 post "/login" do
14 user ||= User.authenticate(params[:login], params[:password], environment) 14 user ||= User.authenticate(params[:login], params[:password], environment)
15 15