@api-emulator/servicenow
v0.2.2
Published
ServiceNow provides customer-support and ITSM APIs for Table API incidents, users, groups, and workflow records.
Readme
@api-emulator/servicenow
ServiceNow provides customer-support and ITSM APIs for Table API incidents, users, groups, and workflow records.
Use this emulator for local tests, CI, and offline agent runs. It keeps your tests separate from the production API.
Start the emulator
- Install the package.
npm install @api-emulator/servicenow- From this registry, start the emulator.
npx -p api-emulator api --plugin ./providers/@servicenow/api-emulator.mjs --service servicenowThe emulator uses the local URL that api-emulator prints. Set your client base URL to this local URL.
Supported API
GET /api/now/table/:tablePOST /api/now/table/:tableGET /api/now/table/:table/:sysIdPATCH /api/now/table/:table/:sysIdPUT /api/now/table/:table/:sysIdGET /inspect/contractGET /inspect/state
Coverage
- Level:
smoke-only - Meaning: A smoke test starts the emulator and checks its main behavior.
- Evidence: a direct smoke test exists, but a conformance manifest does not exist.
Credentials
You do not need production credentials. Use fixed local credentials if your client requires them.
Test data
Add repeatable test data to the provider configuration.
servicenow:
# Add provider-specific seed state here.