-
Notifications
You must be signed in to change notification settings - Fork 438
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[api] provide product listing in own xml structure, sort by cpe and e…
…xport it as well
- Loading branch information
1 parent
9cc0f22
commit c469b8b
Showing
6 changed files
with
60 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<productlist count="1"> | ||
<product name="simple" cpe="cpe:/a:OBS_Fuzzies:simple:11.2" originproject="home:tom:temporary" mtime="1392135042"/> | ||
</productlist> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
elementFormDefault="qualified"> | ||
|
||
<xs:annotation> | ||
<xs:documentation> | ||
This schema specifies the format of product listing. | ||
</xs:documentation> | ||
</xs:annotation> | ||
|
||
<xs:element name="productlist"> | ||
<xs:annotation> | ||
<xs:documentation> | ||
Product listing. | ||
</xs:documentation> | ||
</xs:annotation> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element ref="product" minOccurs="0" maxOccurs="unbounded"/> | ||
</xs:sequence> | ||
<xs:attribute name="count" type="xs:int"/> | ||
</xs:complexType> | ||
</xs:element> | ||
|
||
<xs:element name="product"> | ||
<xs:annotation> | ||
<xs:documentation> | ||
One entry in the listing. | ||
</xs:documentation> | ||
</xs:annotation> | ||
<xs:complexType> | ||
<xs:attribute name="name" type="xs:string"/> | ||
<xs:attribute name="cpe" type="xs:string"/> | ||
<xs:attribute name="originproject" type="xs:string"/> | ||
<xs:attribute name="mtime" type="xs:string"/> | ||
</xs:complexType> | ||
</xs:element> | ||
|
||
</xs:schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters