I think I understand your question correctly. You would like to use the REST API to create a baseline where the baseline BES XML only references constituent fixlets. As far as I am aware, there is currently no way to use the REST API to create a baseline without including significant content from constituent fixlets within the baseline BES XML.
I will provide an example of using the REST API to create a baseline. For HTTP requests, the example will use the IEM CLI tool. The IEM CLI tool is installed in the root server directory. For XML manipulation, this example does not use a specific application, but the notation of the XML XPath query language is used to reference nodes in XML. This example was tested against IEM version 9.2 patch 2 (126.96.36.199, Hans Patch 2).
This example will create a baseline in the master action site, which has site type
master, and does not require a site name. The baseline will include two fixlets from the master action site, which has gather URL
http://dw001:52311/cgi-bin/bfgather.exe/actionsite for the IEM environment the example was tested against. The two fixlets are contrived for the purpose of this example. The first fixlet, MasterSite_FixletA, has the ID
39. The second fixlet, MasterSite_FixletB, has the ID
baseline_template.bes (5.1 KB)
This BES XML file is a template baseline. It includes a README comment on how to use it to create a baseline from BES XML fixlets.
MasterSite_FixletA.bes (1.1 KB)
MasterSite_FixletB.bes (1.1 KB)
These files are the BES XML for the example fixlets.
baseline.bes (1.8 KB)
This file is the completed baseline BES XML.
The fixlets MasterSite_FixletA and MasterSite_FixletB are downloaded:
iem GET /api/fixlet/master/39 > MasterSite_FixletA.bes
iem GET /api/fixlet/master/40 > MasterSite_FixletB.bes
baseline.bes is assembled by following the README comment in
baseline_template.bes. The baseline was chosen to have the title
Create_Baseline_Example, and a modification time of
Fri, 13 Feb 2015 17:10:00 -0800. All the other template substitutions were sourced from either the working knowledge of this example, the BES XML file
baseline.bes is uploaded to the master action site of the root server:
iem POST baseline.bes /api/import/master
The baseline creation is complete.