API Design - RodrigoMattosoSilveira/EnterpriseRemoteSystems GitHub Wiki
All APIs should be versioned under /api/v1.
8.1 Auth
POST /auth/loginPOST /auth/logoutGET /auth/me
8.2 People
GET /peoplePOST /peopleGET /people/:idPUT /people/:idGET /people/:id/journeys
8.3 Collaborator Journeys
GET /collaboratorsPOST /collaboratorsGET /collaborators/:idPUT /collaborators/:idPOST /collaborators/:id/extendPOST /collaborators/:id/finishGET /collaborators/:id/projection
8.4 Reference Data
GET /reference-data/:typePOST /reference-data/:typePUT /reference-data/:type/:id
8.5 Work Periods and Planning
GET /work-periodsPOST /work-periodsGET /work-periods/:idPOST /work-periods/:id/seed-from-previousGET /work-periods/:id/planPUT /work-periods/:id/plan-items/:planItemIdPOST /work-periods/:id/informPOST /work-periods/:id/accrue
8.6 Mine Production
GET /mine-productionsPOST /mine-productionsPUT /mine-productions/:id
8.7 Gold Prices
GET /gold-pricesPOST /gold-pricesPUT /gold-prices/:idGET /gold-prices/latest
8.8 Price List
GET /price-listPOST /price-listPUT /price-list/:idGET /price-list/:id/price-preview?currency=BRL|GOLD_GRAMS
8.9 Expenses
GET /expensesPOST /expensesGET /expenses/:idPOST /expenses/:id/revert
8.10 Ledger / Current Account
GET /current-accounts/:collaboratorId/summaryGET /current-accounts/:collaboratorId/entriesGET /current-accounts/:collaboratorId/entries?currency=BRLGET /current-accounts/:collaboratorId/entries?currency=GOLD_GRAMSPOST /current-accounts/entries/:id/revertPOST /current-accounts/:collaboratorId/zero-goldPOST /current-accounts/:collaboratorId/close
8.11 Reports
GET /reports/dashboardGET /reports/collaborator-balancesGET /reports/journeys-ending-soonGET /reports/pending-production-accrualsGET /reports/mercantile-sales