Commit ba88794a51b56e3f3b12be974b0966bcc09e89fb
Committed by
Rodrigo Souto
1 parent
0401d2da
Exists in
master
and in
29 other branches
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 | ... | ... |