diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-02-04 16:03:29 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-02-04 16:03:29 -0500 |
commit | d5c4c18ea0bd6c0d1a9d0104c1c17748a35f85a7 (patch) | |
tree | 313e42064e41c0b4da565d98992f5aa2933dd8ed /doc | |
parent | 8eac12188865f380439a40549e6e6ed58c3f405c (diff) |
Add email address field for projects
Diffstat (limited to 'doc')
-rw-r--r-- | doc/en_US/api-project-procedures.markdown | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/doc/en_US/api-project-procedures.markdown b/doc/en_US/api-project-procedures.markdown index 09000e68..831c4b60 100644 --- a/doc/en_US/api-project-procedures.markdown +++ b/doc/en_US/api-project-procedures.markdown @@ -182,6 +182,56 @@ Response example: } ``` +## getProjectByEmail + +- Purpose: **Get project information** +- Parameters: + - **email** (string, required) +- Result on success: **project properties** +- Result on failure: **null** + +Request example: + +```json +{ + "jsonrpc": "2.0", + "method": "getProjectByEmail", + "id": 1620253806, + "params": { + "email": "my_project@my_domain.tld" + } +} +``` + +Response example: + +```json +{ + "jsonrpc": "2.0", + "id": 1620253806, + "result": { + "id": "1", + "name": "Test", + "is_active": "1", + "token": "", + "last_modified": "1436119135", + "is_public": "0", + "is_private": "0", + "is_everybody_allowed": "0", + "default_swimlane": "Default swimlane", + "show_default_swimlane": "1", + "description": "test", + "identifier": "", + "email": "my_project@my_domain.tld", + "url": { + "board": "http:\/\/127.0.0.1:8000\/?controller=board&action=show&project_id=1", + "calendar": "http:\/\/127.0.0.1:8000\/?controller=calendar&action=show&project_id=1", + "list": "http:\/\/127.0.0.1:8000\/?controller=listing&action=show&project_id=1" + } + } +} +``` + ## getAllProjects - Purpose: **Get all available projects** |