Skip to content

Commit

Permalink
Merge pull request #52 from ekonstantinidis/live-api-changes
Browse files Browse the repository at this point in the history
Release 0.0.6
  • Loading branch information
ekonstantinidis committed Jan 23, 2016
2 parents 60ef1d0 + 29fc5a8 commit 9a85323
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# [Django Rest Framework Docs](http://www.drfdocs.com/) [![travis][travis-image]][travis-url] [![codecov][codecov-image]][codecov-url] [![pypi][pypi-image]][pypi-url]
# [DRF Docs](http://www.drfdocs.com/) [![travis][travis-image]][travis-url] [![codecov][codecov-image]][codecov-url] [![pypi][pypi-image]][pypi-url]

Document Web APIs made with Django Rest Framework. [View Demo](http://demo.drfdocs.com/)

![DRFdocs](http://drfdocs.com/static/images/mockup.png)
![DRFdocs](https://cloud.githubusercontent.com/assets/6333409/12533070/99e4818a-c21c-11e5-80a3-07ff4f0c7841.png)

### Supports

Expand All @@ -16,6 +16,7 @@ Document Web APIs made with Django Rest Framework. [View Demo](http://demo.drfdo
- [Installation](http://drfdocs.com/docs/installation/)
- [Settings](http://drfdocs.com/docs/settings/)
- [Extending the template](http://drfdocs.com/docs/templates/)
- [Live API Endpoints](http://drfdocs.com/docs/live-api/)
- [Contributing & Development](http://drfdocs.com/docs/contributing/)
- [Changelog](http://drfdocs.com/docs/changelog/)

Expand Down
2 changes: 1 addition & 1 deletion rest_framework_docs/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.0.5'
__version__ = '0.0.6'
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ var Response = React.createClass({
}

var responseJSON = JSONpp.prettyPrint(this.state.payload.body);
var hasToken = this.state.payload.body.hasOwnProperty('token');
var hasToken = this.state.payload.body ? this.state.payload.body.hasOwnProperty('token') : false;
var statusText = this.state.payload.statusText.toLowerCase();
var statusCodeFirstChar = String(this.state.payload.status).charAt(0);
var statusCodeClass = 'label status-code pull-right status-code-' + statusCodeFirstChar;
Expand Down

Large diffs are not rendered by default.

0 comments on commit 9a85323

Please sign in to comment.