master
jingquan huang 6 years ago
parent 7b1f61a514
commit 7293589da5

@ -159,6 +159,7 @@ module Mobile
mount Apis::Sources mount Apis::Sources
mount Apis::Careers mount Apis::Careers
mount Apis::Assets mount Apis::Assets
mount Apis::Ecloud

@ -0,0 +1,19 @@
# encoding=utf-8
module Mobile
module Apis
class Ecloud < Grape::API
# before {authenticate!}
content_type :json, 'application/json;charset=UTF-8'
resources :ecloud do
desc "ecloud接口测试"
get 'list' do
EcloudService.new.list
end
end
end
end
end

@ -0,0 +1,6 @@
class EcloudService
def list
return {status: 0, message: "test"}
end
end

@ -1,9 +0,0 @@
Gitlab.configure do |config|
# config.endpoint = 'http://192.168.41.130:3000/trustie/api/v3' # API endpoint URL, default: ENV['GITLAB_API_ENDPOINT']
# config.private_token = 'cK15gUDwvt8EEkzwQ_63' # user's private token, default: ENV['GITLAB_API_PRIVATE_TOKEN']
config.endpoint = 'http://gitfast.trustie.net/api/v3' # API endpoint URL, default: ENV['GITLAB_API_ENDPOINT']
config.private_token = 'fPc_gBmEiSANve8TCfxW' # user's private token, default: ENV['GITLAB_API_PRIVATE_TOKEN']
# Optional
# config.user_agent = 'Custom User Agent' # user agent, default: 'Gitlab Ruby Gem [version]'
# config.sudo = 'user' # username for sudo mode, default: nil
end
Loading…
Cancel
Save