Skip to content

Commit

Permalink
adds jsdoc for Core#newRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-scherzinger committed Jan 23, 2017
1 parent db5d93b commit e570a3d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Core.js
Expand Up @@ -71,6 +71,16 @@ export default class Core {
.addRequestOptions({ headers: { Accept: 'application/hal+json' } });
}

/**
* Creates a new {@link
* https://github.com/basti1302/traverson/blob/master/api.markdown#request-builder
* traverson request builder}
* which can be used for a new request to the API.
*
* @access private
*
* @returns {Object} traverson request builder instance.
*/
newRequest() {
if (!this.traversal) {
throw new Error('Critical: Traversal invalid!');
Expand Down

0 comments on commit e570a3d

Please sign in to comment.