Progressively decommission unused /json/* APIs
We're working on decommission the /json/* endpoints and some of them are not currently used.
The plan is to turn them off on the D7 site and make sure it doesn't break anything. We can always reactivate them until we fix the code that was using them.
Decommission:
-
json/repos/git
(currently unused https://gitlab.eclipse.org/eclipsefdn/it/websites/projects.eclipse.org/-/issues/228#note_1799735) -
json/projectrole/%
(used for something we don't generate anymore: https://gitlab.eclipse.org/eclipsefdn/it/websites/projects.eclipse.org/-/issues/228#note_1799636) -
json/release/%
(no longer needed https://gitlab.eclipse.org/eclipsefdn/it/websites/projects.eclipse.org/-/issues/228#note_1799750) -
json/member/%
(used for the membership page that will be migrated to hugo soon https://gitlab.eclipse.org/eclipsefdn/it/websites/projects.eclipse.org/-/issues/228#note_1800173, shouldn't be needed per #233 (comment 1983103))
When D10 goes live we can remove:
-
/json/reviews/*
https://gitlab.eclipse.org/eclipsefdn/it/websites/projects.eclipse.org/-/issues/228#note_1799624 -
/json/proposals
corresponding/api
endpoint available in D10 -
/json/technology/%
and/json/working-group/%/projects
corresponding/api
endpoint available in D10 -
/json/reviews/*
corresponding/api
endpoint available in D10
To disable an endpoint in D7 update the variable pmi_api_decommission
with the array of menu items you want to disable, for the first batch this would be:
variable_set('pmi_api_decommission', array(
'json/repos/git',
'json/member/%',
'json/projectrole/%',
'json/release/%'
));