Files
tilbudgivern/apitest/BATCH_10_PLAN.md
T

3.4 KiB

Batch 10 Plan - Configuration & System Deep Dive

Target: 30 endpoints
Focus: Business config, User features, System settings, Optional-arg queries

Note: Many originally planned endpoints already exist from previous batches!


Selected Endpoints (30 total - mix of no-args and optional-args)

No Arguments - Highly Testable (11 endpoints)

  1. businessHours - Business hours configuration
  2. defaultEmailTexts - Default email texts/templates
  3. gdprAgreement - GDPR agreement text/status
  4. userCanAccess - Current user access rights
  5. userFeatures - Current user features/flags
  6. userPreferences - Current user preferences
  7. appPermissions - App permissions list
  8. deletedRows - Deleted rows tracking
  9. mostUsedMaterials - Most used materials statistics
  10. profitTable - Profit table (id optional?)
  11. profitTables - Profit tables list

Optional Arguments - Testable Without Params (11 endpoints)

  1. caseStatuses - Case statuses list (filter optional)
  2. caseTypes - Case types list (filter optional)
  3. customerCategories - Customer categories list (filter optional)
  4. invoiceStatuses - Invoice statuses list
  5. offerStatuses - Offer statuses list
  6. offerTypes - Offer types list
  7. reminderSettings - Reminder settings configuration
  8. serviceTypes - Service types list
  9. vatTypes - VAT types list
  10. warehouseLocations - Warehouse locations list (filter optional)
  11. installationCategories - Installation categories list

Optional Pagination - Can Test With Defaults (6 endpoints)

  1. salesInvoiceDraft - Sales invoice draft (filter optional)
  2. salesInvoiceDraftLines - Sales invoice draft lines (filter optional)
  3. salesInvoiceReceiverInfo - Sales invoice receiver info (filter optional)
  4. paymentDataList - Payment data list
  5. gpsEntriesPaginated - GPS entries with pagination
  6. hourAggregate - Hour aggregates (filter optional)

Utility Functions (2 endpoints)

  1. postalcodeToCity - Postal code lookup (postalCode optional for testing?)
  2. productEanNumberExists - Check if EAN exists (ean optional for testing?)

Endpoints Removed (Already Tested)

The following were in initial plan but already exist:

  • ❌ businessReportUrl (Batch 7)
  • ❌ All case* endpoints with required IDs (Batch 2-4)
  • ❌ All customer* endpoints (Batch 2-3)
  • ❌ All creditor* endpoints (Batch 2-3)
  • ❌ All contact* endpoints (Batch 2)

Expected Results

Highly Likely to Return Data (15+ endpoints)

  • businessHours, defaultEmailTexts, gdprAgreement, userCanAccess, userFeatures, userPreferences
  • caseStatuses, caseTypes, customerCategories, invoiceStatuses, offerStatuses, offerTypes
  • serviceTypes, vatTypes, warehouseLocations

May Be Empty/Unauthorized (10+ endpoints)

  • appPermissions, deletedRows, mostUsedMaterials, profitTables
  • salesInvoiceDraft*, gpsEntriesPaginated, hourAggregate
  • reminderSettings, installationCategories

Utility/Test Functions (2)

  • postalcodeToCity, productEanNumberExists

Testing Strategy

  1. ✅ Planning complete - 30 endpoints selected
  2. Introspect types - Get field names for all 30 endpoints
  3. Create scripts - All 30 scripts (all testable!)
  4. Test all - Run all 30 (no required params!)
  5. Fix errors - Type mismatches
  6. Save outputs - Document results
  7. Update docs - Progress to ~263/507 (52%)

Status: Planning complete
Next: Introspect all 30 types