From 062d55a695304c1c7950283e200b044cc962ae19 Mon Sep 17 00:00:00 2001 From: Bradley Herman Date: Fri, 14 Sep 2012 13:32:11 -0700 Subject: [PATCH] Update README.md Added documentation for /api/authenticate/forgot_password --- README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/README.md b/README.md index 00e8518..39fd65b 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ Table of Contents * [POST /api/authenticate/login.json](#authenticate_login_post) * [GET /api/authenticate/logout.json](#authenticate_logout) * [GET /api/authenticate/signup](#authenticate_signup) +* [POST /api/authenticate/forgot_password](#authenticate_forgot_password) * [GET /api/front/lead_articles.json](#front_lead_articles) * [GET /api/front/v2/lead_articles.json](#front_lead_articles_v2) * [GET /api/geolocation/teams.json](#geolocation_teams) @@ -163,6 +164,34 @@ http://bleacherreport.com/api/authenticate/signup?redirect_url=http://bleacherre A `redirect_url` parameter is mandatory. B/R will redirect the request back to that URL, passing basic information from the User API as GET parameters. + + +POST /api/authenticate/forgot_password +---------------------------- + +### Parameters + +* email +* redirect_url (optional) +* format (optional) - json or not + +### Returns + +Either json of success/error, html status of 200 or 404 (for ajax), or redirect. + +### HTTP Example + +
+http://bleacherreport.com/api/authenticate/forgot_password.json?email=bherman@bleacherreport.com
+
+ +### Paramter Info + +Email parameter is mandatory. + +If requesting json, redirect_url will be ignored. If non-json and redirect_url, the request will be treated as html and redirect to the specified url. +If no params, it will be treated as an html request, but only return a status code of 200 for success or 404 for error (which could be an inability to find the email or any other error). + GET /api/front/lead_articles.json