public Routes( ICredentialsService credentialsService, IWellService wellService, IWellboreService wellboreService, ILogObjectService logObjectService, IMessageObjectService messageObjectService, IRigService rigService, ITrajectoryService trajectoryService, IJobService jobService, IRiskService riskService, IMudLogService mudLogService, IDocumentRepository <Server, Guid> witsmlServerRepository) { this.credentialsService = credentialsService; this.wellService = wellService; this.wellboreService = wellboreService; this.logObjectService = logObjectService; this.messageObjectService = messageObjectService; this.rigService = rigService; this.trajectoryService = trajectoryService; this.jobService = jobService; this.riskService = riskService; this.mudLogService = mudLogService; this.witsmlServerRepository = witsmlServerRepository; Get("/api/witsml-servers", GetWitsmlServers); Post("/api/witsml-servers", CreateWitsmlServer); Patch("/api/witsml-servers/{witsmlServerId}", UpdateWitsmlServer); Delete("/api/witsml-servers/{witsmlServerId}", DeleteWitsmlServer); Get("/api/wells", GetAllWells); Get("/api/wells/{wellUid}", GetWell); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}", GetWellbore); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}/messages", GetMessagesForWellbore); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}/messages/{messageUid}", GetMessage); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}/logs/{logUid}", GetLog); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}/logs", GetLogsForWellbore); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}/logs/{logUid}/logcurveinfo", GetLogCurveInfo); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}/logs/{logUid}/logdata", GetLogData); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}/rigs", GetRigsForWellbore); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}/rigs/{rigUid}", GetRig); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}/trajectories", GetTrajectories); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}/trajectories/{trajectoryUid}/trajectorystations", GetTrajectoryStations); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}/risks", GetRisksForWellbore); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}/mudlogs", GetMudLogsForWellbore); Get("/api/wells/{wellUid}/wellbores/{wellboreUid}/mudlogs/{mudlogUid}", GetMudLog); //Get Requests exceeding the URL limit Post("/api/wells/{wellUid}/wellbores/{wellboreUid}/logs/{logUid}/logdata", GetLargeLogData); Post("/api/jobs/{jobType}", CreateJob); Post("/api/credentials/authorize", Authorize); }
public WellController(IWellService wellService) { this.wellService = wellService; }
public WellsController(IWellService wellService) { _wellService = wellService; }