OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Add link header to APIv3 for the spec file
Oliver Günther1ebbbc24cb60
diff --git a/lib/api/v3/root.rb b/lib/api/v3/root.rbindex e0f9df5f167..883f51c7d68 100644--- a/lib/api/v3/root.rb+++ b/lib/api/v3/root.rb@@ -37,8 +37,11 @@ module APIclass Root < ::API::OpenProjectAPIhelpers ::API::V3::Utilities::EpropsConversion- # All endpoint accept query props as gzipped and base64 encoded json objectsbefore do+ # Add Link header for openapi spec+ header 'Link', '</api/v3/openapi.json>; rel="service-desc"'++ # All endpoint accept query props as gzipped and base64 encoded json objectstransform_epropsend@@ -86,6 +89,10 @@ module APIAPI::OpenAPI.specend+ get '/openapi.json' do+ API::OpenAPI.spec+ end+get '/spec.yml' docontent_type 'text/vnd.yaml'