require 'sinatra/base' require 'projects/project_service' module Projects class App < Sinatra::Base # Query parameters: # # - `details` [Boolean] # - `extension` [String] get '/projects/v1' do require_p4 options = {} options[:details] = params['details'] if params.key?('details') options[:extension] = params['extension'] if params.key?('extension') service = ProjectService.new(env: env) projects = service.list(options) projects.to_json if projects end get '/projects/v1/:project_id' do |project_id| require_p4 service = ProjectService.new(env: env) project = service.fetch(project_id) halt 404 unless project project.to_json end end end
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#5 | 17271 | tjuricek | Remove deprecated Ruby implementation. | ||
#4 | 16094 | tjuricek |
Move /auth/v1/login -> /projects/v1/login The more generic login method is now /helix_versioning_engine/vAPI/login |
||
#3 | 16072 | tjuricek |
Helix Cloud integration for Helix Sync services. This includes a "mock_raymond" rails application for keeping tabs on basic integration with Helix Cloud. We do not test against a live server. See integration history for more details. |
||
#2 | 15837 | tjuricek | Removed HVEProjectsService, moved methods to module of projects app | ||
#1 | 15622 | tjuricek |
Move source code to 'source/' subdirectory of branch. build/ will remain where it is. |
||
//guest/perforce_software/helix-web-services/main/helix_web_services/lib/projects/app.rb | |||||
#1 | 15099 | tjuricek | Revise project services to be our simple 'container' for other systems. |