Skip to content

Support catalogs in API#559

Merged
bfabio merged 2 commits into
italia:mainfrom
bfabio:catalog-json
May 7, 2026
Merged

Support catalogs in API#559
bfabio merged 2 commits into
italia:mainfrom
bfabio:catalog-json

Conversation

@bfabio
Copy link
Copy Markdown
Member

@bfabio bfabio commented Apr 14, 2026

No description provided.

@bfabio bfabio force-pushed the catalog-json branch 2 times, most recently from 6e7fc32 to 5e32716 Compare May 7, 2026 15:35
bfabio added 2 commits May 7, 2026 18:03
Replaces the hardcoded 'urn:x-italian-pa:' prefix.

When a catalog has publishersNamespace set, the crawler validates
that organisation.uri in the publiccode.yml equals namespace + publisher ID.

When absent, the same check is made with no namespace.

See italia#298.
@bfabio bfabio merged commit 7c2ec7e into italia:main May 7, 2026
5 checks passed
@bfabio bfabio deleted the catalog-json branch May 7, 2026 17:09
@bfabio
Copy link
Copy Markdown
Member Author

bfabio commented May 9, 2026

@tensor5 this one needs a small config to the Developers Italia's instance, so the Italian namespace is not hardcoded anymore:

 curl -X POST 'https://api.developers.italia.it/v1/catalogs' \
    -H "Authorization: Bearer $TOKEN" \
    -H 'Content-Type: application/json' \
    -d '{
      "name": "Developers Italia",
      "alternativeId": "\u2205",
      "publishersNamespace": "urn:x-italian-pa:"
    }'

Thanks 🙏

@bfabio
Copy link
Copy Markdown
Member Author

bfabio commented May 13, 2026

cc @astagi @Lorezz @dptdgi

@tensor5
Copy link
Copy Markdown
Member

tensor5 commented May 18, 2026

Our deployed version of the API is the 1.1.0, so it doesn't support the /catalogs endpoint. We should review the changes before deploying the latest version. @Lorezz, @dptdgi, @astagi, @valeriocomo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants