diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-06-26 12:37:51 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-06-26 12:37:51 -0400 |
commit | b82589e75f58cb36280c3e872ed23d4cfc64128b (patch) | |
tree | b61d5de8e689235be05358aef66fe18a289806bd /doc | |
parent | c110dffefe259c13e60193fb81ebb9d4b79504de (diff) |
Update API documentation
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api-project-procedures.markdown | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/doc/api-project-procedures.markdown b/doc/api-project-procedures.markdown index d375852c..09000e68 100644 --- a/doc/api-project-procedures.markdown +++ b/doc/api-project-procedures.markdown @@ -133,6 +133,55 @@ Response example: } ``` +## getProjectByIdentifier + +- Purpose: **Get project information** +- Parameters: + - **identifier** (string, required) +- Result on success: **project properties** +- Result on failure: **null** + +Request example: + +```json +{ + "jsonrpc": "2.0", + "method": "getProjectByIdentifier", + "id": 1620253806, + "params": { + "identifier": "TEST" + } +} +``` + +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": "TEST", + "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** |