Added api/classifications endpoint, requiring a new query

This commit is contained in:
bwilliams committed 2026-10-16 14:44:12 +01:00
1 parent 378ac59f41
commit 0e27d2b2f3
9 files changed
+186 -6

No files matched your search

+9
View File
@@ -42,6 +42,15 @@ func opportunitiesServer(t *testing.T, count int, opts ...Option) string {
UUIDType: "ocid",
Title: fmt.Sprintf("Opportunity %d", i),
Source: "FindATender",
// Two codes, shared: ocds-1, ocds-3... have 72000000, the
// others 03000000.
Classifications: []types.ClassificationCode{
{
IsCPV: true,
Code: []string{"03000000", "72000000"}[i%2],
Classification: []string{"Agriculture", "IT services"}[i%2],
},
},
Releases: []types.OpportunityRelease{
{
ReleaseID: "r1",