Skip to content

Commit 7bef3b6

Browse files
committed
Added the latest v1.77 release dlls (with fix csv path resolution fix) and modified example projects to include new reference to CSV format
1 parent 34d56b6 commit 7bef3b6

7 files changed

Lines changed: 53 additions & 4 deletions

File tree

Lib

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

libs/ServiceStack.dll

0 Bytes
Binary file not shown.

src/ServiceStack.Hello/default.htm

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@
6565
margin-top: 1.5em !important;
6666
padding-top: 0.5em !important;
6767
}
68+
H2 A
69+
{
70+
color: #039;
71+
}
6872

6973
.endpoints H3
7074
{
@@ -300,7 +304,10 @@ <h4>
300304
</div>
301305

302306

303-
<h2>XML, JSON, JSV Web Services via HTTP GET or POST</h2>
307+
<h2>XML, JSON,
308+
<a href="https://github.com/mythz/ServiceStack.Text/wiki/JSV-Format">JSV</a>,
309+
<a href="https://github.com/mythz/ServiceStack/wiki/ServiceStack-CSV-Format">CSV</a>
310+
Web Services via HTTP GET or POST</h2>
304311
<table>
305312
<thead>
306313
<tr>
@@ -373,6 +380,24 @@ <h2>XML, JSON, JSV Web Services via HTTP GET or POST</h2>
373380
</form>
374381
</td>
375382
</tr>
383+
<tr>
384+
<th>
385+
CSV
386+
</th>
387+
<td>
388+
<a href="servicestack/csv/syncreply/Hello?Name=World">/servicestack/csv/syncreply/Hello?Name=World</a>
389+
</td>
390+
<td>
391+
<a href="servicestack/csv/metadata?op=Hello">/servicestack/csv/syncreply/Hello</a>
392+
</td>
393+
<td>
394+
<form action="servicestack/csv/syncreply/Hello" method="post">
395+
<label>Name:</label>
396+
<input type="text" name="Name" value="World!" />
397+
<input type="submit" />
398+
</form>
399+
</td>
400+
</tr>
376401
</tbody>
377402
</table>
378403

src/ServiceStack.MovieRest/default.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,4 +162,17 @@ SELECT[name=genres]
162162
border-top: solid 4px #E0E0E0;
163163
margin: 20px 0 20px 0px;
164164
padding: 10px 0 0 0;
165+
}
166+
167+
#csvformat
168+
{
169+
background: url(http://www.servicestack.net/excel16x16.gif) no-repeat top left;
170+
padding: 0 0 0 20px;
171+
margin: 15px 0 0 0;
172+
}
173+
#csvformat B
174+
{
175+
color: Blue;
176+
text-decoration: underline;
177+
cursor: pointer;
165178
}

src/ServiceStack.MovieRest/default.htm

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
$(function() {
1212

1313
var restLog = function(method, url) {
14-
if (method == "GET") url = '<a href="' + url + '?format=json" target="_blank">' + url + '</a>';
14+
if (url.indexOf('?format') == -1) url += '?format=json';
15+
if (method == "GET") url = '<a href="' + url + '" target="_blank">' + url + '</a>';
1516
$("#restlog").prepend("<div><b class='ib'>" + method + "</b><i>" + url + "</i></div>");
1617
}
1718

@@ -31,7 +32,7 @@
3132
+ "<label class='ib'>" + movie.Title + "</label>"
3233
+ "<span class='ib lnk-update'>update</span>"
3334
+ "<span class='ib lnk-delete'>delete</span>"
34-
"</dd>";
35+
"</dd>";
3536

3637
$.each(movie.Genres, function(i, genre) {
3738
if ($.inArray(genre, allGenres) == -1) allGenres.push(genre);
@@ -41,7 +42,7 @@
4142
var selected = filterGenre == genre ? ' selected="selected"' : '';
4243
genreHtml += '<option value="' + genre + '"' + selected + '>' + genre + '</option>';
4344
});
44-
jqFilter .html(genreHtml);
45+
jqFilter.html(genreHtml);
4546
}
4647

4748
$("#existing-movies").html(html);
@@ -121,6 +122,11 @@
121122
refreshExistingMovies();
122123
});
123124

125+
$("#csvformat B").click(function() {
126+
restLog("GET", "movies?format=csv");
127+
location.href = "movies?format=csv";
128+
});
129+
124130
refreshExistingMovies();
125131
});
126132
</script>
@@ -188,6 +194,11 @@ <h2></h2>
188194

189195
<input type="submit" />
190196
</form>
197+
198+
<div id="csvformat">
199+
<b>Download all movies</b>
200+
in ServiceStack's new <a href="https://github.com/mythz/ServiceStack/wiki/ServiceStack-CSV-Format">CSV Format</a>
201+
</div>
191202

192203
<a id="btn-download" href="https://github.com/mythz/ServiceStack.Examples/downloads">
193204
<img src="http://www.servicestack.net/btn-download.gif" alt="Download ServiceStack.Examples.zip">

0 commit comments

Comments
 (0)