Project

General

Profile

Actions

Bug #11650

closed

Archive REST section outdated for download ZIP archive

Added by Janos Mattyasovszky over 6 years ago. Updated over 6 years ago.

Status:
Released
Priority:
N/A
Category:
Documentation
Target version:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Very Small
Priority:
61
Name check:
Fix check:
Regression:

Description

Archive REST Section says:

https://www.rudder-project.org/rudder-doc-4.1/rudder-doc.html#rest-api

http://localhost/rudder/api/archives/zip/full/[archiveId]
Download groups, directives and rules for the given Commit ID as a ZIP archive.

But this throws a 404 Not Found.

According to the scala code I presume the correct one is "zip/all" in the path:

https://github.com/Normation/rudder/blob/master/rudder-web/src/main/scala/com/normation/rudder/web/rest/RestGetGitCommitAsZip.scala#L84

    case Get("api" :: "archives" :: "zip" :: "all"        :: commitId :: Nil, req) =>
      getZip(commitId, allFiles, "all")
Actions

Also available in: Atom PDF