Skip to content
Snippets Groups Projects
Unverified Commit e4a1e418 authored by Eric Parsons's avatar Eric Parsons Committed by GitHub
Browse files

Formatting issues

parent 849887a3
No related branches found
No related tags found
No related merge requests found
...@@ -44,7 +44,7 @@ Example client: ...@@ -44,7 +44,7 @@ Example client:
* Command will look something like "php composer.phar install" and needs to be run from the directory with the composer.json file. * Command will look something like "php composer.phar install" and needs to be run from the directory with the composer.json file.
### Using the API ### Using the API
The root path of the API will be: https://\<hostname\>\<forum path\>/app.php/restApiV1/ If you have url rewriting enabled (in General->Server Settings of the control panel) and working for your forum, the path can be shortened to https://<hostname><forum path>/restApiV1/ The root path of the API will be: https://\<hostname\>\<forum path\>/app.php/restApiV1/ If you have url rewriting enabled (in General->Server Settings of the control panel) and working for your forum, the path can be shortened to https://\<hostname\>\<forum path\>/restApiV1/
NOTE: Due to PhpBB's cookie based auth, you will need to handle cookies passed to and returned by the api. You shouldn't directly store these. Your client should act as a proxy for these cookies. I recommend looking at the example client and reusing the code if you are working with PHP on the client side. NOTE: Due to PhpBB's cookie based auth, you will need to handle cookies passed to and returned by the api. You shouldn't directly store these. Your client should act as a proxy for these cookies. I recommend looking at the example client and reusing the code if you are working with PHP on the client side.
...@@ -52,20 +52,11 @@ NOTE: Due to PhpBB's cookie based auth, you will need to handle cookies passed t ...@@ -52,20 +52,11 @@ NOTE: Due to PhpBB's cookie based auth, you will need to handle cookies passed t
**Request** **Request**
method: POST Request Property | Value
--- | ---
url: \<apiRoot\>/login method | POST
url | \<apiRoot\>/login
Parameters: Parameters | Current cookies and the following form parameters in the POST body:<ul><li>**'username'** : (string) The user's name</li><li>**'password'** : (string) The user's password</li><li>**'persistLogin'** : (boolean) Flag indicating if inactivity should cause the user to be logged out.</li></ul>
Current cookies and the following form parameters in the POST body:
'username' : (string) The user's name
'password' : (string) The user's password
'persistLogin' : (boolean) Flag indicating if inactivity should cause the user to be logged out.
**Response** **Response**
...@@ -75,12 +66,11 @@ Current cookies and the following form parameters in the POST body: ...@@ -75,12 +66,11 @@ Current cookies and the following form parameters in the POST body:
**Request** **Request**
method: POST Request Property | Value
--- | ---
url: \<apiRoot\>/logout method | POST
url | \<apiRoot\>/logout
parameters: Current cookies parameters | Current cookies
**Response** **Response**
...@@ -90,12 +80,11 @@ User data json for anonymous user. (See current user API) ...@@ -90,12 +80,11 @@ User data json for anonymous user. (See current user API)
**Request** **Request**
method: GET Request Property | Value
--- | ---
url: \<apiRoot\>/users/me method | GET
url | \<apiRoot\>/users/me
parameters: Current cookies parameters | Current cookies
**Resonse** **Resonse**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment