fix api documentation
This commit is contained in:
parent
959260f234
commit
e2c0ce7c22
4 changed files with 12 additions and 4 deletions
|
@ -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
|
||||
|
|
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,
|
||||
"name": "user",
|
||||
"avatar": "https://s3.amazonaws.com/metamaps-assets/site/user.png",
|
||||
"generation": 0,
|
||||
"is_admin": false
|
||||
"generation": 0
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue