Skip to content

Commit

Permalink
for #19, fix doc syntax accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
nanchenchen committed Feb 18, 2015
1 parent 933b348 commit c082eff
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
32 changes: 17 additions & 15 deletions msgvis/apps/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,15 @@ class ExampleMessageSerializer(serializers.Serializer):
Example message requests.
::
{
"filters": [
{
"dimension": "time",
"min": "2010-02-25T00:23:53Z",
"max": "2010-02-30T00:23:53Z"
"dimension": "time",
"min": "2010-02-25T00:23:53Z",
"max": "2010-02-30T00:23:53Z"
}
],
],
"focus": [
{
"dimension": "time",
Expand All @@ -78,17 +79,17 @@ class ExampleMessageSerializer(serializers.Serializer):
],
"messages": [
{
"id": 52,
"dataset": 2,
"text": "Some sort of thing or other",
"sender": {
"id": 2,
"dataset": 1
"original_id": 2568434,
"username": "my_name",
"full_name": "My Name"
},
"time": "2010-02-25T00:23:53Z"
"id": 52,
"dataset": 2,
"text": "Some sort of thing or other",
"sender": {
"id": 2,
"dataset": 1
"original_id": 2568434,
"username": "my_name",
"full_name": "My Name"
},
"time": "2010-02-25T00:23:53Z"
}
]
}
Expand Down Expand Up @@ -150,6 +151,7 @@ class SampleQuestionSerializer(serializers.Serializer):
Sample Research Question requests.
::
{
"dimensions": ["time", "hashtags"]
"questions": [
Expand Down
2 changes: 0 additions & 2 deletions msgvis/apps/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
+-----------------------------------------------------------------+-----------------+-------------------------------------------------+
| :class:`Get Dimension Distribution <DimensionDistributionView>` | /api/dimension | Get distribution of a dimension |
+-----------------------------------------------------------------+-----------------+-------------------------------------------------+
| :class:`Get Filter Summary <FilterSummaryView>` | /api/filter | Get info about behavior of filter |
+-----------------------------------------------------------------+-----------------+-------------------------------------------------+
| Message Context | /api/context | Get context for a message |
+-----------------------------------------------------------------+-----------------+-------------------------------------------------+
| Snapshots | /api/snapshots | Save a visualization snapshot |
Expand Down

0 comments on commit c082eff

Please sign in to comment.