API Documentation
As described in the Architecture/System design section, pharmacy service is built using Domain Driven Design so it’s API endpoints, Management service is built using the common rest API method, here are examples of the two ways:
info
This demo doesn’t call a deployed version of Pharmacy System but it mocks it’s behavior for demonstration purposes.
Management Service
Posthttps://management.company/Medicines
Puthttps://management.company/Employees
Puthttps://management.company/Companies
And more unlisted endpoints …
Pharmacy Service
Gethttps://pharmacy.company/MedicinesSearch?isAllBranches=1&name=adol
Gethttps://pharmacy.company/Branches
Gethttps://pharmacy.company/Receipts/Return
And more unlisted endpoints …