Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
johnpduane committed Mar 25, 2018
1 parent eb9b1f4 commit 2358236
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ Confluence currently exposes the following API...
* [.getContentById(id, callback)](#Confluence+getContentById)
* [.getCustomContentById(options, callback)](#Confluence+getCustomContentById)
* [.getContentByPageTitle(space, title, callback)](#Confluence+getContentByPageTitle)
* [.postContent(space, title, content, parentId, callback)](#Confluence+postContent)
* [.putContent(space, id, version, title, content, callback, minorEdit)](#Confluence+putContent)
* [.postContent(space, title, content, parentId, callback, representation)](#Confluence+postContent)
* [.putContent(space, id, version, title, content, callback, minorEdit, representation)](#Confluence+putContent)
* [.deleteContent(id, callback)](#Confluence+deleteContent)
* [.getAttachments(space, id, callback)](#Confluence+getAttachments)
* [.createAttachment(space, id, filepath, callback)](#Confluence+createAttachment)
Expand Down Expand Up @@ -140,7 +140,7 @@ Post content to a new page.
| content | <code>string</code> | |
| parentId | <code>number</code> | A null value will cause the page to be added under the space's home page |
| callback | <code>function</code> | |
| representation | <code>string</code> | Optional value that will change the type of content (Wiki, Storage, etc.) |
| representation | <code>string</code> | Optional |

<a name="Confluence+putContent"></a>

Expand All @@ -158,7 +158,7 @@ Put/update stored content for a page.
| content | <code>string</code> | |
| callback | <code>function</code> | |
| minorEdit | <code>boolean</code> | Optional |
| representation | <code>string</code> | Optional value that will change the type of content (Wiki, Storage, etc.) |
| representation | <code>string</code> | Optional |

<a name="Confluence+deleteContent"></a>

Expand Down
10 changes: 6 additions & 4 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ Released under the MIT License</p>
* [.getContentById(id, callback)](#Confluence+getContentById)
* [.getCustomContentById(options, callback)](#Confluence+getCustomContentById)
* [.getContentByPageTitle(space, title, callback)](#Confluence+getContentByPageTitle)
* [.postContent(space, title, content, parentId, callback)](#Confluence+postContent)
* [.putContent(space, id, version, title, content, callback, minorEdit)](#Confluence+putContent)
* [.postContent(space, title, content, parentId, callback, representation)](#Confluence+postContent)
* [.putContent(space, id, version, title, content, callback, minorEdit, representation)](#Confluence+putContent)
* [.deleteContent(id, callback)](#Confluence+deleteContent)
* [.getAttachments(space, id, callback)](#Confluence+getAttachments)
* [.createAttachment(space, id, filepath, callback)](#Confluence+createAttachment)
Expand Down Expand Up @@ -117,7 +117,7 @@ Get stored content for a specific space and page title.

<a name="Confluence+postContent"></a>

### confluence.postContent(space, title, content, parentId, callback)
### confluence.postContent(space, title, content, parentId, callback, representation)
Post content to a new page.

**Kind**: instance method of [<code>Confluence</code>](#Confluence)
Expand All @@ -129,10 +129,11 @@ Post content to a new page.
| content | <code>string</code> | |
| parentId | <code>number</code> | A null value will cause the page to be added under the space's home page |
| callback | <code>function</code> | |
| representation | <code>string</code> | Optional |

<a name="Confluence+putContent"></a>

### confluence.putContent(space, id, version, title, content, callback, minorEdit)
### confluence.putContent(space, id, version, title, content, callback, minorEdit, representation)
Put/update stored content for a page.

**Kind**: instance method of [<code>Confluence</code>](#Confluence)
Expand All @@ -146,6 +147,7 @@ Put/update stored content for a page.
| content | <code>string</code> | |
| callback | <code>function</code> | |
| minorEdit | <code>boolean</code> | Optional |
| representation | <code>string</code> | Optional |

<a name="Confluence+deleteContent"></a>

Expand Down
2 changes: 2 additions & 0 deletions lib/confluence.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ Confluence.prototype.getContentByPageTitle = function(space, title, callback){
* @param {string} content
* @param {number} parentId - A null value will cause the page to be added under the space's home page
* @param {Function} callback
* @param {string} representation - Optional
*/
Confluence.prototype.postContent = function(space, title, content, parentId, callback, representation){
var config = this.config;
Expand Down Expand Up @@ -226,6 +227,7 @@ Confluence.prototype.postContent = function(space, title, content, parentId, cal
* @param {string} content
* @param {Function} callback
* @param {boolean} minorEdit - Optional
* @param {string} representation - Optional
*/
Confluence.prototype.putContent = function(space, id, version, title, content, callback, minorEdit, representation){
var page = {
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "confluence-api",
"version": "1.2.1",
"version": "1.3.0",
"description": "Confluence API wrapper for NodeJS",
"main": "./lib/confluence.js",
"scripts": {
Expand Down Expand Up @@ -47,6 +47,10 @@
{
"name": "arthmoeros",
"url": "https://github.com/arthmoeros"
},
{
"name": "Richard Hurt",
"url": "https://github.com/rnhurt"
}
],
"license": "MIT",
Expand Down

0 comments on commit 2358236

Please sign in to comment.