diff --git a/doc/api/api.raml b/doc/api/api.raml index 624e5a46..50c2c992 100644 --- a/doc/api/api.raml +++ b/doc/api/api.raml @@ -31,7 +31,7 @@ schemas: /maps: !include apis/maps.raml /mappings: !include apis/mappings.raml -/metacodes: !include api/metacodes.raml +/metacodes: !include apis/metacodes.raml /synapses: !include apis/synapses.raml /tokens: !include apis/tokens.raml /topics: !include apis/topics.raml diff --git a/doc/api/examples/current_user.json b/doc/api/examples/current_user.json new file mode 100644 index 00000000..83476006 --- /dev/null +++ b/doc/api/examples/current_user.json @@ -0,0 +1,9 @@ +{ + "data": { + "id": 1, + "name": "user", + "avatar": "https://s3.amazonaws.com/metamaps-assets/site/user.png", + "generation": 0, + "is_admin": false + } +} diff --git a/doc/api/examples/user.json b/doc/api/examples/user.json index 83476006..ca54233d 100644 --- a/doc/api/examples/user.json +++ b/doc/api/examples/user.json @@ -3,7 +3,6 @@ "id": 1, "name": "user", "avatar": "https://s3.amazonaws.com/metamaps-assets/site/user.png", - "generation": 0, - "is_admin": false + "generation": 0 } } diff --git a/lib/tasks/extensions.rake b/lib/tasks/extensions.rake index 6efd9026..fc4a4855 100644 --- a/lib/tasks/extensions.rake +++ b/lib/tasks/extensions.rake @@ -3,7 +3,7 @@ namespace :assets do task :js_compile do system 'npm install' system 'npm run build' - system 'bin/build-apidocs.sh' if ENV['MAILER_DEFAULT_URL'] == 'metamaps.herokuapp.com' + system 'bin/build-apidocs.sh' if Rails.env.production? end end