Welcome to EBC API Documentation
This page provides a clean overview of the API routes, authentication model, and user roles.
View Swagger DocumentationAuthentication
Include these headers in every protected request:
Authorization: Bearer <jwt-token>
Routes
Expand below sections to refer route the details.
Authentication
POST /api/Auth/Login
POST /api/Auth/Logout
POST /api/Auth/ResetPassword
POST /api/Auth/ChangePassword/{id}
POST /api/Auth/Refresh
Asset Type
GET /api/AssetType
POST /api/AssetType
GET /api/AssetType/{id}
PUT /api/AssetType/{id}
DELETE /api/AssetType/{id}
Below are some of the Asset Types for your reference.
| Code | Name | Description | Segment |
|---|---|---|---|
| EXP | Exploration | Seismic surveys, exploration wells | Upstream |
| PROD | Production | Oil/gas wells, platforms, FPSOs | Upstream |
| PROC | Processing | Separators, compressors, dehydrators | Upstream |
| TRANS | Transportation | Pipelines, tankers, rail | Midstream |
| STOR | Storage | Tanks, terminals | Midstream |
| REF | Refining | Refineries, distillation units | Downstream |
| PETRO | Petrochemical | Chemical and polymer plants | Downstream |
| SUPP | Support | Vehicles, IT systems, offices | Support |
| INTG | Intangible | Licenses, mineral rights, contracts | Across all |
User Details
GET /api/User
POST /api/User
GET /api/User/{id}
PUT /api/User/{id}
DELETE /api/User/{id}
User Groups
GET /api/UserGroup
POST /api/UserGroup
GET /api/UserGroup/{id}
PUT /api/UserGroup/{id}
DELETE /api/UserGroup/{id}
User Roles
GET /api/UserRole
POST /api/UserRole
GET /api/UserRole/{id}
PUT /api/UserRole/{id}
DELETE /api/UserRole/{id}
Below are some of the User Roles for your reference.
| Role Code | Role Name | Description |
|---|---|---|
| ADM | Administrator | Full system access; manage users, roles, configuration. |
| MGR | Manager | Approve actions, view reports, manage teams. |
| SUPV | Supervisor | Monitor operations, review entries. |
| TECH | Technician | Perform operational tasks; read/write. |
Work Shift
GET /api/Shift
POST /api/Shift
GET /api/Shift/{id}
PUT /api/Shift/{id}
DELETE /api/Shift/{id}
Schedule Type
GET /api/ScheduleType
POST /api/ScheduleType
GET /api/ScheduleType/{id}
PUT /api/ScheduleType/{id}
DELETE /api/ScheduleType/{id}