-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new response format xhtml; see #62384 (#78)
* new response format xhtml; see #62384 * xhtml format: - fixed small bug in response format function - new template function file_xhtml2json - added new functionality to README see #62384 --------- Co-authored-by: Philipp Hempel <philipp.hempel@programmfabrik.de>
- Loading branch information
Showing
9 changed files
with
203 additions
and
6 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[ | ||
{ | ||
"name": "Get existing XHTML file", | ||
"request": { | ||
"server_url": "{{ datastore "req_base_url" }}", | ||
"endpoint": "bounce-json", | ||
"method": "POST", | ||
"body": {{ file_xhtml2json "sample.xhtml" }} | ||
}, | ||
"response": { | ||
"statuscode": 200, | ||
"body": { | ||
"header": {}, | ||
"body": {{ file "result_xhtml.json" }} | ||
} | ||
} | ||
} | ||
] |
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,18 @@ | ||
{ | ||
"name": "bounce XHTML file, use response format \"xhtml\"", | ||
"request": { | ||
"server_url": "{{ datastore "req_base_url" }}", | ||
"endpoint": "bounce", | ||
"method": "POST", | ||
"body": { | ||
"file": "@sample.xhtml" | ||
}, | ||
"body_type": "multipart" | ||
}, | ||
"response": { | ||
"format": { | ||
"type": "xhtml" | ||
}, | ||
"body": {{ file "result_xhtml.json" }} | ||
} | ||
} |
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,16 @@ | ||
{{ $local_port:=":9999"}} | ||
{ | ||
"http_server": { | ||
"addr": "{{ $local_port }}", | ||
"dir": "../_res/assets", | ||
"testmode": false | ||
}, | ||
"store": { | ||
"req_base_url": "http://localhost{{ $local_port }}" | ||
}, | ||
"name": "XHTML tests", | ||
"tests": [ | ||
"@check_local_file_against_response.json", | ||
"@check_response_format_xhtml.json" | ||
] | ||
} |
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,27 @@ | ||
{ | ||
"html": { | ||
"-xmlns": "http://www.w3.org/1999/xhtml", | ||
"head": { | ||
"link": { | ||
"-href": "/css/easydb.css", | ||
"-rel": "stylesheet", | ||
"-type": "text/css" | ||
}, | ||
"title": "easydb documentation" | ||
}, | ||
"body": { | ||
"h1": { | ||
"#text": "Welcome to the easydb documentation", | ||
"-id": "welcome-to-the-easydb-documentation" | ||
}, | ||
"h2": { | ||
"#text": "General", | ||
"-id": "general" | ||
}, | ||
"p": [ | ||
"easydb is a flexible web application that allows customers to manage data and information for images and multimedia.", | ||
"easydb has a flexible data model that allows each instance to be tailored to customer needs." | ||
] | ||
} | ||
} | ||
} |
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,21 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
|
||
<head> | ||
<link href="/css/easydb.css" rel="stylesheet" type="text/css" /> | ||
<title> | ||
easydb documentation | ||
</title> | ||
</head> | ||
|
||
<body> | ||
<h1 id="welcome-to-the-easydb-documentation">Welcome to the easydb documentation</h1> | ||
<h2 id="general">General</h2> | ||
<p>easydb is a flexible web application that allows customers to manage data and information for images and multimedia.</p> | ||
<br /> | ||
<hr /> | ||
<p>easydb has a flexible data model that allows each instance to be tailored to customer needs.</p> | ||
<br /> | ||
</body> | ||
|
||
</html> |