-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement views for serialization to JSON and XML
Signed-off-by: Paul Horton <paul.horton@owasp.org>
- Loading branch information
Showing
7 changed files
with
330 additions
and
91 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
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,33 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<book isbnNumber="978-1942788294"> | ||
<id>f3758bf0-0ff7-4366-a5e5-c209d4352b2d</id> | ||
<title>The Phoenix Project</title> | ||
<edition number="5">5th Anniversary Limited Edition</edition> | ||
<publishDate>2018-04-16</publishDate> | ||
<author>Kevin Behr</author> | ||
<author>Gene Kim</author> | ||
<author>George Spafford</author> | ||
<type>fiction</type> | ||
<publisher> | ||
<name>IT Revolution Press LLC</name> | ||
<address>10 Downing Street</address> | ||
</publisher> | ||
<chapters> | ||
<chapter> | ||
<number>1</number> | ||
<title>Tuesday, September 2</title> | ||
</chapter> | ||
<chapter> | ||
<number>2</number> | ||
<title>Tuesday, September 2</title> | ||
</chapter> | ||
<chapter> | ||
<number>3</number> | ||
<title>Tuesday, September 2</title> | ||
</chapter> | ||
<chapter> | ||
<number>4</number> | ||
<title>Wednesday, September 3</title> | ||
</chapter> | ||
</chapters> | ||
</book> |
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,38 @@ | ||
{ | ||
"id": "f3758bf0-0ff7-4366-a5e5-c209d4352b2d", | ||
"title": "The Phoenix Project", | ||
"isbnNumber": "978-1942788294", | ||
"edition": { | ||
"number": 5, | ||
"name": "5th Anniversary Limited Edition" | ||
}, | ||
"publishDate": "2018-04-16", | ||
"type": "fiction", | ||
"authors": [ | ||
"Kevin Behr", | ||
"Gene Kim", | ||
"George Spafford" | ||
], | ||
"publisher": { | ||
"name": "IT Revolution Press LLC", | ||
"address": "10 Downing Street" | ||
}, | ||
"chapters": [ | ||
{ | ||
"number": 1, | ||
"title": "Tuesday, September 2" | ||
}, | ||
{ | ||
"number": 2, | ||
"title": "Tuesday, September 2" | ||
}, | ||
{ | ||
"number": 3, | ||
"title": "Tuesday, September 2" | ||
}, | ||
{ | ||
"number": 4, | ||
"title": "Wednesday, September 3" | ||
} | ||
] | ||
} |
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,33 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<book isbn-number="978-1942788294"> | ||
<id>f3758bf0-0ff7-4366-a5e5-c209d4352b2d</id> | ||
<title>The Phoenix Project</title> | ||
<edition number="5">5th Anniversary Limited Edition</edition> | ||
<publish-date>2018-04-16</publish-date> | ||
<author>Kevin Behr</author> | ||
<author>Gene Kim</author> | ||
<author>George Spafford</author> | ||
<type>fiction</type> | ||
<publisher> | ||
<name>IT Revolution Press LLC</name> | ||
<address>10 Downing Street</address> | ||
</publisher> | ||
<chapters> | ||
<chapter> | ||
<number>1</number> | ||
<title>Tuesday, September 2</title> | ||
</chapter> | ||
<chapter> | ||
<number>2</number> | ||
<title>Tuesday, September 2</title> | ||
</chapter> | ||
<chapter> | ||
<number>3</number> | ||
<title>Tuesday, September 2</title> | ||
</chapter> | ||
<chapter> | ||
<number>4</number> | ||
<title>Wednesday, September 3</title> | ||
</chapter> | ||
</chapters> | ||
</book> |
Oops, something went wrong.