fix api documentation

This commit is contained in:
Devin Howard 2016-10-04 23:43:42 +08:00
parent 959260f234
commit e2c0ce7c22
4 changed files with 12 additions and 4 deletions

View file

@ -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

View 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
}
}

View file

@ -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
}
}

View file

@ -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