commit
e3db00f229
4 changed files with 12 additions and 4 deletions
|
@ -31,7 +31,7 @@ schemas:
|
||||||
|
|
||||||
/maps: !include apis/maps.raml
|
/maps: !include apis/maps.raml
|
||||||
/mappings: !include apis/mappings.raml
|
/mappings: !include apis/mappings.raml
|
||||||
/metacodes: !include api/metacodes.raml
|
/metacodes: !include apis/metacodes.raml
|
||||||
/synapses: !include apis/synapses.raml
|
/synapses: !include apis/synapses.raml
|
||||||
/tokens: !include apis/tokens.raml
|
/tokens: !include apis/tokens.raml
|
||||||
/topics: !include apis/topics.raml
|
/topics: !include apis/topics.raml
|
||||||
|
|
9
doc/api/examples/current_user.json
Normal file
9
doc/api/examples/current_user.json
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"data": {
|
||||||
|
"id": 1,
|
||||||
|
"name": "user",
|
||||||
|
"avatar": "https://s3.amazonaws.com/metamaps-assets/site/user.png",
|
||||||
|
"generation": 0,
|
||||||
|
"is_admin": false
|
||||||
|
}
|
||||||
|
}
|
|
@ -3,7 +3,6 @@
|
||||||
"id": 1,
|
"id": 1,
|
||||||
"name": "user",
|
"name": "user",
|
||||||
"avatar": "https://s3.amazonaws.com/metamaps-assets/site/user.png",
|
"avatar": "https://s3.amazonaws.com/metamaps-assets/site/user.png",
|
||||||
"generation": 0,
|
"generation": 0
|
||||||
"is_admin": false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@ namespace :assets do
|
||||||
task :js_compile do
|
task :js_compile do
|
||||||
system 'npm install'
|
system 'npm install'
|
||||||
system 'npm run build'
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue