From 7b8e8d95257c01845d850c6b199dd31dad96a5a4 Mon Sep 17 00:00:00 2001 From: Dan Moore Date: Tue, 2 Oct 2012 22:12:03 -0600 Subject: [PATCH] updated documentation for typed json output --- WebContent/doc/Concepts.html | 20 +++--- WebContent/doc/ref/ResDeletePath.html | 8 +-- .../doc/ref/ResDeletePathXmlOrJson.html | 18 +++--- WebContent/doc/ref/ResDeleteQuery.html | 8 +-- WebContent/doc/ref/ResDeleteXmlOrJson.html | 34 +++++----- WebContent/doc/ref/ResGetPath.html | 16 ++--- WebContent/doc/ref/ResGetQuery.html | 64 +++++++++---------- WebContent/doc/ref/ResMediaTypes.html | 25 ++++---- WebContent/doc/ref/ResPostPathXmlOrJson.html | 18 +++--- WebContent/doc/ref/ResPostUrlEnc.html | 4 +- WebContent/doc/ref/ResPostXmlOrJson.html | 32 +++++----- WebContent/doc/ref/ResPutPathUrlEnc.html | 4 +- WebContent/doc/ref/ResPutPathXmlOrJson.html | 4 +- WebContent/doc/ref/ResPutQueryUrlEnc.html | 4 +- WebContent/doc/ref/ResPutXmlOrJson.html | 6 +- 15 files changed, 133 insertions(+), 132 deletions(-) diff --git a/WebContent/doc/Concepts.html b/WebContent/doc/Concepts.html index 38fdf95..df2ecf1 100644 --- a/WebContent/doc/Concepts.html +++ b/WebContent/doc/Concepts.html @@ -313,19 +313,19 @@

HTTP Response

Content-Type: application/json { "actors": [ - { "last_name": "SMITH", "first_name": "JULIANNE", "actor_id": "201", + { "last_name": "SMITH", "first_name": "JULIANNE", "actor_id": 201, "films": [ - { "year": "2006", "title": "ACADEMY DINOSAUR", "film_id": "1" }, - { "year": "2006", "title": "ADAPTATION HOLES", "film_id": "3" }, - { "year": "2006", "title": "ANACONDA CONFESSIONS", "film_id": "23" } + { "year": 2006, "title": "ACADEMY DINOSAUR", "film_id": 1 }, + { "year": 2006, "title": "ADAPTATION HOLES", "film_id": 3 }, + { "year": 2006, "title": "ANACONDA CONFESSIONS", "film_id": 23 } ] }, - { "last_name": "SMITH", "first_name": "PATRICK", "actor_id": "205", + { "last_name": "SMITH", "first_name": "PATRICK", "actor_id": 205, "films": [ - { "year": "2006", "title": "APACHE DIVINE", "film_id": "31" }, - { "year": "2006", "title": "BABY HALL", "film_id": "47" }, - { "year": "2006", "title": "BULL SHAWSHANK", "film_id": "105" }, - { "year": "2006", "title": "CHAINSAW UPTOWN", "film_id": "132" } + { "year": 2006, "title": "APACHE DIVINE", "film_id": 31 }, + { "year": 2006, "title": "BABY HALL", "film_id": 47 }, + { "year": 2006, "title": "BULL SHAWSHANK", "film_id": 105 }, + { "year": 2006, "title": "CHAINSAW UPTOWN", "film_id": 132 } ] } } @@ -384,4 +384,4 @@

Attribute Validator (Planned Feature)

Custom Java-based attribute validators may be deployed to enforce more complex domain logic. The design of this feature is pending.

- \ No newline at end of file + diff --git a/WebContent/doc/ref/ResDeletePath.html b/WebContent/doc/ref/ResDeletePath.html index 44095e9..f57efdc 100644 --- a/WebContent/doc/ref/ResDeletePath.html +++ b/WebContent/doc/ref/ResDeletePath.html @@ -116,7 +116,7 @@

JSON Examples

HTTP/1.1 200 OK
 Content-Type: application/json
 
-{ "rowsAffected": "1" }
+{ "rowsAffected": 1 }
A delete to parents and children of a one-to-many hierarchical SQL Resource:
DELETE /restsql/res/LanguageFilm/3 HTTP/1.1
@@ -126,7 +126,7 @@ 

JSON Examples

HTTP/1.1 200 OK
 Content-Type: application/json
 
-{ "rowsAffected": "13" }
+{ "rowsAffected": 13 }
A delete to parents of a many-to-many hierarchical SQL Resource (parent rows are deleted, and child rows are disassociated):
DELETE /restsql/res/ActorFilm/123 HTTP/1.1
@@ -136,7 +136,7 @@ 

JSON Examples

HTTP/1.1 200 OK
 Content-Type: application/json
 
-{ "rowsAffected": "9" }
+{ "rowsAffected": 9 }
- \ No newline at end of file + diff --git a/WebContent/doc/ref/ResDeletePathXmlOrJson.html b/WebContent/doc/ref/ResDeletePathXmlOrJson.html index dda9efe..2a51dd8 100644 --- a/WebContent/doc/ref/ResDeletePathXmlOrJson.html +++ b/WebContent/doc/ref/ResDeletePathXmlOrJson.html @@ -117,9 +117,9 @@

JSON Examples

Accept: application/json { "films": [ - { "film_id": "3" }, - { "film_id": "43" }, - { "film_id": "67" }, + { "film_id": 3 }, + { "film_id": 43 }, + { "film_id": 67 }, ] } @@ -127,7 +127,7 @@

JSON Examples

HTTP/1.1 200 OK
 Content-Type: application/json
 
-{ "rowsAffected": "3" }
+{ "rowsAffected": 3 }
A many-to-many hierarchical SQL Resource (child rows are disassociated):
DELETE /restsql/res/ActorFilm/123 HTTP/1.1
@@ -135,9 +135,9 @@ 

JSON Examples

Accept: application/json { "films": [ - { "film_id": "3" }, - { "film_id": "43" }, - { "film_id": "233" }, + { "film_id": 3 }, + { "film_id": 43 }, + { "film_id": 233 }, ] }
@@ -145,7 +145,7 @@

JSON Examples

HTTP/1.1 200 OK
 Content-Type: application/json
 
-{ "rowsAffected": "3" }
+{ "rowsAffected": 3 } - \ No newline at end of file + diff --git a/WebContent/doc/ref/ResDeleteQuery.html b/WebContent/doc/ref/ResDeleteQuery.html index 3a52d0d..1fa7691 100644 --- a/WebContent/doc/ref/ResDeleteQuery.html +++ b/WebContent/doc/ref/ResDeleteQuery.html @@ -117,7 +117,7 @@

JSON Examples

HTTP/1.1 200 OK
 Content-Type: application/json
 
-{ "rowsAffected": "3" }
+{ "rowsAffected": 3 }
A delete to parents of a one-to-many hierarchical SQL Resource (child rows are also deleted):
DELETE /restsql/res/LanguageFilm/3 HTTP/1.1
@@ -127,7 +127,7 @@ 

JSON Examples

HTTP/1.1 200 OK
 Content-Type: application/json
 
-{ "rowsAffected": "18" }
+{ "rowsAffected": 18 }
A delete to parents of a many-to-many hierarchical SQL Resource (parent rows are deleted, and child rows are disassociated):
DELETE /restsql/res/ActorFilm?last_name=DENCH HTTP/1.1
@@ -137,7 +137,7 @@ 

JSON Examples

HTTP/1.1 200 OK
 Content-Type: application/json
 
-{ "rowsAffected": "9" }
+{ "rowsAffected": 9 }
- \ No newline at end of file + diff --git a/WebContent/doc/ref/ResDeleteXmlOrJson.html b/WebContent/doc/ref/ResDeleteXmlOrJson.html index 809f2c1..ad8d394 100644 --- a/WebContent/doc/ref/ResDeleteXmlOrJson.html +++ b/WebContent/doc/ref/ResDeleteXmlOrJson.html @@ -160,16 +160,16 @@

JSON Examples

Accept: application/json { "actors": [ - { "actor_id": "123", "first_name": "JULIANNE", "surname": "DENCH" }, - { "actor_id": "124", "first_name": "SCARLETT", "surname": "BENING" }, - { "actor_id": "125", "first_name": "ALBERT", "surname": "NOLTE" } + { "actor_id": 123, "first_name": "JULIANNE", "surname": "DENCH" }, + { "actor_id": 124, "first_name": "SCARLETT", "surname": "BENING" }, + { "actor_id": 125, "first_name": "ALBERT", "surname": "NOLTE" } [ }
HTTP/1.1 200 OK
 Content-Type: application/json
 
-{ "rowsAffected": "3" }
+{ "rowsAffected": 3 }
A delete to parents and children of a one-to-many hierarchical SQL Resource:
DELETE /restsql/res/LanguageFilm HTTP/1.1
@@ -177,8 +177,8 @@ 

JSON Examples

Accept: application/json { "languages": [ - { "language_id": "2" }, - { "language_id": "3" } + { "language_id": 2 }, + { "language_id": 3 } [ }
@@ -194,17 +194,17 @@

JSON Examples

Accept: application/json { "languages": [ - { "language_id": "1", + { "language_id": 1, "films": [ - { "film_id": "3" }, - { "film_id": "43" }, - { "film_id": "67" } + { "film_id": 3 }, + { "film_id": 43 }, + { "film_id": 67 } ] }, - { "language_id": "2" + { "language_id": 2 "films": [ - { "film_id": "3" }, - { "film_id": "43" } + { "film_id": 3 }, + { "film_id": 43 } ] } [ @@ -222,8 +222,8 @@

JSON Examples

Accept: application/json { "actors": [ - { "actor_id": "123" }, - { "actor_id": "124" } + { "actor_id": 123 }, + { "actor_id": 124 } [ } @@ -231,7 +231,7 @@

JSON Examples

HTTP/1.1 200 OK
 Content-Type: application/json
 
-{ "rowsAffected": "18" }
+{ "rowsAffected": 18 } - \ No newline at end of file + diff --git a/WebContent/doc/ref/ResGetPath.html b/WebContent/doc/ref/ResGetPath.html index a824abf..5012260 100644 --- a/WebContent/doc/ref/ResGetPath.html +++ b/WebContent/doc/ref/ResGetPath.html @@ -113,7 +113,7 @@

JSON Examples

Content-Type: application/json { "actors": [ - { "id": "123", "first_name": "JULIANNE", "surname": "DENCH" } + { "id": 123, "first_name": "JULIANNE", "surname": "DENCH" } ] } @@ -125,13 +125,13 @@

JSON Examples

Content-Type: application/json { "actors": [ - { "id": "123", "first_name": "JULIANNE", "surname": "DENCH" }, + { "id": 123, "first_name": "JULIANNE", "surname": "DENCH" }, "films": [ - { "year": "2006", "title": "ADAPTATION HOLES", "film_id": "3" }, - { "year": "2006", "title": "ATLANTIS CAUSE", "film_id": "43" }, - { "year": "2006", "title": "BERETS AGENT", "film_id": "67" }, - { "year": "2006", "title": "BULL SHAWSHANK", "film_id": "105" }, - { "year": "2006", "title": "CHOCOLATE DUCK", "film_id": "138" }, + { "year": 2006, "title": "ADAPTATION HOLES", "film_id": 3 }, + { "year": 2006, "title": "ATLANTIS CAUSE", "film_id": 43 }, + { "year": 2006, "title": "BERETS AGENT", "film_id": 67 }, + { "year": 2006, "title": "BULL SHAWSHANK", "film_id": 105 }, + { "year": 2006, "title": "CHOCOLATE DUCK", "film_id": 138 }, ] } ] @@ -145,4 +145,4 @@

JSON Examples

- \ No newline at end of file + diff --git a/WebContent/doc/ref/ResGetQuery.html b/WebContent/doc/ref/ResGetQuery.html index 7130b14..e47b375 100644 --- a/WebContent/doc/ref/ResGetQuery.html +++ b/WebContent/doc/ref/ResGetQuery.html @@ -173,7 +173,7 @@

JSON Examples

Content-Type: application/json { "actors": [ - { "actor_id": "123", "first_name": "JULIANNE", "surname": "DENCH" } + { "actor_id": 123, "first_name": "JULIANNE", "surname": "DENCH" } ] } @@ -185,15 +185,15 @@

JSON Examples

Content-Type: application/json { "actors": [ - { "actor_id": "180", "first_name": "JEFF", "surname": "SILVERSTONE" }, - { "actor_id": "195", "first_name": "JAYNE", "surname": "SILVERSTONE" } - { "actor_id": "78", "first_name": "GROUCHO", "surname": "SINATRA" }, - { "actor_id": "31", "first_name": "SISSY", "surname": "SOBIESKI" }, - { "actor_id": "44", "first_name": "NICK", "surname": "STALLONE" }, - { "actor_id": "24", "first_name": "CAMERON", "surname": "STREEP" }, - { "actor_id": "116", "first_name": "DAN", "surname": "STREEP" }, - { "actor_id": "192", "first_name": "JOHN", "surname": "SUVARI" }, - { "actor_id": "9", "first_name": "JOE", "surname": "SWANK" }, + { "actor_id": 180, "first_name": "JEFF", "surname": "SILVERSTONE" }, + { "actor_id": 195, "first_name": "JAYNE", "surname": "SILVERSTONE" } + { "actor_id": 78, "first_name": "GROUCHO", "surname": "SINATRA" }, + { "actor_id": 31, "first_name": "SISSY", "surname": "SOBIESKI" }, + { "actor_id": 44, "first_name": "NICK", "surname": "STALLONE" }, + { "actor_id": 24, "first_name": "CAMERON", "surname": "STREEP" }, + { "actor_id": 116, "first_name": "DAN", "surname": "STREEP" }, + { "actor_id": 192, "first_name": "JOHN", "surname": "SUVARI" }, + { "actor_id": 9, "first_name": "JOE", "surname": "SWANK" }, ] } @@ -205,16 +205,16 @@

JSON Examples

Content-Type: application/json { "actors": [ - { "actor_id": "1", "first_name": "PENELOPE", "surname": "GUINESS" }, - { "actor_id": "2", "first_name": "NICK", "surname": "WAHLBERG" }, - { "actor_id": "3", "first_name": "ED", "surname": "CHASE" }, - { "actor_id": "4", "first_name": "JENNIFER", "surname": "DAVIS" }, - { "actor_id": "5", "first_name": "JOHNNY", "surname": "LOLLOBRIGIDA" }, - { "actor_id": "6", "first_name": "BETTE", "surname": "NICHOLSON" }, - { "actor_id": "7", "first_name": "GRACE", "surname": "MOSTEL" }, - { "actor_id": "8", "first_name": "MATTHEW", "surname": "JOHANSSON" }, - { "actor_id": "9", "first_name": "JOE", "surname": "SWANK" }, - { "actor_id": "10", "first_name": "CHRISTIAN", "surname": "GABLE" } + { "actor_id": 1, "first_name": "PENELOPE", "surname": "GUINESS" }, + { "actor_id": 2, "first_name": "NICK", "surname": "WAHLBERG" }, + { "actor_id": 3, "first_name": "ED", "surname": "CHASE" }, + { "actor_id": 4, "first_name": "JENNIFER", "surname": "DAVIS" }, + { "actor_id": 5, "first_name": "JOHNNY", "surname": "LOLLOBRIGIDA" }, + { "actor_id": 6, "first_name": "BETTE", "surname": "NICHOLSON" }, + { "actor_id": 7, "first_name": "GRACE", "surname": "MOSTEL" }, + { "actor_id": 8, "first_name": "MATTHEW", "surname": "JOHANSSON" }, + { "actor_id": 9, "first_name": "JOE", "surname": "SWANK" }, + { "actor_id": 10, "first_name": "CHRISTIAN", "surname": "GABLE" } ] } @@ -226,13 +226,13 @@

JSON Examples

Content-Type: application/json { "actors": [ - { "actor_id": "123", "first_name": "JULIANNE", "surname": "DENCH" }, + { "actor_id": 123, "first_name": "JULIANNE", "surname": "DENCH" }, "films": [ - { "year": "2006", "title": "ADAPTATION HOLES", "film_id": "3" }, - { "year": "2006", "title": "ATLANTIS CAUSE", "film_id": "43" }, - { "year": "2006", "title": "BERETS AGENT", "film_id": "67" }, - { "year": "2006", "title": "BULL SHAWSHANK", "film_id": "105" }, - { "year": "2006", "title": "CHOCOLATE DUCK", "film_id": "138" }, + { "year": 2006, "title": "ADAPTATION HOLES", "film_id": 3 }, + { "year": 2006, "title": "ATLANTIS CAUSE", "film_id": 43 }, + { "year": 2006, "title": "BERETS AGENT", "film_id": 67 }, + { "year": 2006, "title": "BULL SHAWSHANK", "film_id": 105 }, + { "year": 2006, "title": "CHOCOLATE DUCK", "film_id": 138 }, ] } ] @@ -246,11 +246,11 @@

JSON Examples

Content-Type: application/json { "actors": [ - { "actor_id": "147", "first_name": "FAY", "surname": "WINSLET" }, - { "actor_id": "156", "first_name": "FAY", "surname": "WOOD" }, - { "actor_id": "164", "first_name": "HUMPHREY", "surname": "WILLIS" }, - { "actor_id": "168", "first_name": "WILL", "surname": "WILSON" }, - { "actor_id": "186", "first_name": "JULIA", "surname": "ZELLWEGER" } + { "actor_id": 147, "first_name": "FAY", "surname": "WINSLET" }, + { "actor_id": 156, "first_name": "FAY", "surname": "WOOD" }, + { "actor_id": 164, "first_name": "HUMPHREY", "surname": "WILLIS" }, + { "actor_id": 168, "first_name": "WILL", "surname": "WILSON" }, + { "actor_id": 186, "first_name": "JULIA", "surname": "ZELLWEGER" } ] } @@ -263,4 +263,4 @@

JSON Examples

- \ No newline at end of file + diff --git a/WebContent/doc/ref/ResMediaTypes.html b/WebContent/doc/ref/ResMediaTypes.html index fe98cb2..5e047fe 100644 --- a/WebContent/doc/ref/ResMediaTypes.html +++ b/WebContent/doc/ref/ResMediaTypes.html @@ -132,9 +132,9 @@

JSON

 { "actors": [
-      { "id": "123", "first_name": "JULIANNE", "surname": "DENCH" },
-      { "id": "124", "first_name": "SCARLETT", "surname": "BENING" },
-      { "id": "125, "first_name": "ALBERT", "surname": "NOLTE" }
+      { "id": 123, "first_name": "JULIANNE", "surname": "DENCH" },
+      { "id": 124, "first_name": "SCARLETT", "surname": "BENING" },
+      { "id": 125, "first_name": "ALBERT", "surname": "NOLTE" }
    ]
 }
 
@@ -143,17 +143,17 @@

JSON

 { "actors": [
-      { "actor_id": "123", "first_name": "JULIANNE", "surname": "DENCH" },
+      { "actor_id": 123, "first_name": "JULIANNE", "surname": "DENCH" },
          "films": [
-            { "year": "2006", "title": "ADAPTATION HOLES", "film_id": "3" },
-            { "year": "2006", "title": "ATLANTIS CAUSE", "film_id": "43" }
+            { "year": 2006, "title": "ADAPTATION HOLES", "film_id": 3 },
+            { "year": 2006, "title": "ATLANTIS CAUSE", "film_id": 43 }
          ]
       },
-      { "actor_id": "123", "first_name": "SCARLETT", "surname": "BENING" },
+      { "actor_id": 124, "first_name": "SCARLETT", "surname": "BENING" },
          "films": [
-            { "year": "2006", "title": "BERETS AGENT", "film_id": "67" },
-            { "year": "2006", "title": "BULL SHAWSHANK", "film_id": "105" },
-            { "year": "2006", "title": "CHOCOLATE DUCK", "film_id": "138" },
+            { "year": 2006, "title": "BERETS AGENT", "film_id": 67 },
+            { "year": 2006, "title": "BULL SHAWSHANK", "film_id": 105 },
+            { "year": 2006, "title": "CHOCOLATE DUCK", "film_id": 138 },
          ]
       }      
    ]
@@ -168,10 +168,11 @@ 

JSON

Unlike XML, the JSON write request object is encoded the same as a read response object.

A write response cotains an object with a single attribute with the rows affected, as in:

-{ "rowsAffected": "4" }
+{ "rowsAffected": 4 }
+

Also unlike XML, the JSON responses support numeric types as well as string types. Write requests will accept strings or numbers for numeric columns.

More References

See the IETF RFC HTTP Standard Headers.
- \ No newline at end of file + diff --git a/WebContent/doc/ref/ResPostPathXmlOrJson.html b/WebContent/doc/ref/ResPostPathXmlOrJson.html index 78a9024..1346874 100644 --- a/WebContent/doc/ref/ResPostPathXmlOrJson.html +++ b/WebContent/doc/ref/ResPostPathXmlOrJson.html @@ -113,16 +113,16 @@

JSON Examples

Accept: application/json { "films": [ - { "year": "2006", "title": "ADAPTATION HOLES", "film_id": "3" }, - { "year": "2006", "title": "ATLANTIS CAUSE", "film_id": "43" }, - { "year": "2006", "title": "BERETS AGENT", "film_id": "67" } + { "year": 2006, "title": "ADAPTATION HOLES", "film_id": 3 }, + { "year": 2006, "title": "ATLANTIS CAUSE", "film_id": 43 }, + { "year": 2006, "title": "BERETS AGENT", "film_id": 67 } ] }
HTTP/1.1 200 OK
 Content-Type: application/json
 
-{ "rowsAffected": "3" }
+{ "rowsAffected": 3 }
A many-to-many hierarchical SQL resource (child rows are only associated to parent):
POST /restsql/res/ActorFilm/123 HTTP/1.1
@@ -130,16 +130,16 @@ 

JSON Examples

Accept: application/json { "films": [ - { "film_id": "3" }, - { "film_id": "43" }, - { "film_id": "67" }, + { "film_id": 3 }, + { "film_id": 43 }, + { "film_id": 67 }, ] }
HTTP/1.1 200 OK
 Content-Type: application/xml
 
-{ "rowsAffected": "3" }
+{ "rowsAffected": 3 } - \ No newline at end of file + diff --git a/WebContent/doc/ref/ResPostUrlEnc.html b/WebContent/doc/ref/ResPostUrlEnc.html index c31bbe3..59b886e 100644 --- a/WebContent/doc/ref/ResPostUrlEnc.html +++ b/WebContent/doc/ref/ResPostUrlEnc.html @@ -96,7 +96,7 @@

JSON Example

HTTP/1.1 200 OK
 Content-Type: application/json
 
-{ "rowsAffected": "4" }
+{ "rowsAffected": 4 } - \ No newline at end of file + diff --git a/WebContent/doc/ref/ResPostXmlOrJson.html b/WebContent/doc/ref/ResPostXmlOrJson.html index 771fa38..1d1a82d 100644 --- a/WebContent/doc/ref/ResPostXmlOrJson.html +++ b/WebContent/doc/ref/ResPostXmlOrJson.html @@ -141,16 +141,16 @@

JSON Examples

Accept: application/json { "actors": [ - { "id": "123", "first_name": "JULIANNE", "surname": "DENCH" }, - { "id": "124", "first_name": "SCARLETT", "surname": "BENING" }, - { "id": "125", "first_name": "ALBERT", "surname": "NOLTE" } + { "id": 123, "first_name": "JULIANNE", "surname": "DENCH" }, + { "id": 124, "first_name": "SCARLETT", "surname": "BENING" }, + { "id": 125, "first_name": "ALBERT", "surname": "NOLTE" } ] }
HTTP/1.1 200 OK
 Content-Type: application/json
 
-{ "rowsAffected": "3" }
+{ "rowsAffected": 3 }

An insert to parents of a hierarchical SQL Resource would look identical to the proceeding.

@@ -160,14 +160,14 @@

JSON Examples

Accept: application/json { "languages": [ - { "language_id": "1", + { "language_id": 1, "films": [ - { "year": "2006", "title": "ADAPTATION HOLES", "film_id": "3" }, - { "year": "2006", "title": "ATLANTIS CAUSE", "film_id": "43" }, - { "year": "2006", "title": "BERETS AGENT", "film_id": "67" } + { "year": 2006, "title": "ADAPTATION HOLES", "film_id": 3 }, + { "year": 2006, "title": "ATLANTIS CAUSE", "film_id": 43 }, + { "year": 2006, "title": "BERETS AGENT", "film_id": 67 } ] }, - { "language_id": "4", "langName": "Quechua" } + { "language_id": 4, "langName": "Quechua" } ] } @@ -183,14 +183,14 @@

JSON Examples

Accept: application/json { "actors": [ - { "actor_id": "123", + { "actor_id": 123, "films": [ - { "film_id": "3" }, - { "film_id": "43" }, - { "film_id": "67" }, + { "film_id": 3 }, + { "film_id": 43 }, + { "film_id": 67 }, ] }, - { "actor_id": "124", "first_name": "BENITO", last_name="BENINGS" } + { "actor_id": 124, "first_name": "BENITO", last_name="BENINGS" } ] } @@ -198,8 +198,8 @@

JSON Examples

HTTP/1.1 200 OK
 Content-Type: application/json
 
-{ "rowsAffected": "4" }
+{ "rowsAffected": 4 } - \ No newline at end of file + diff --git a/WebContent/doc/ref/ResPutPathUrlEnc.html b/WebContent/doc/ref/ResPutPathUrlEnc.html index d3629e0..8b13250 100644 --- a/WebContent/doc/ref/ResPutPathUrlEnc.html +++ b/WebContent/doc/ref/ResPutPathUrlEnc.html @@ -96,7 +96,7 @@

JSON Example

HTTP/1.1 200 OK
 Content-Type: application/json
 
-{ "rowsAffected": "1" }
+{ "rowsAffected": 1 } - \ No newline at end of file + diff --git a/WebContent/doc/ref/ResPutPathXmlOrJson.html b/WebContent/doc/ref/ResPutPathXmlOrJson.html index 3fa09d8..701c068 100644 --- a/WebContent/doc/ref/ResPutPathXmlOrJson.html +++ b/WebContent/doc/ref/ResPutPathXmlOrJson.html @@ -106,7 +106,7 @@

JSON Example

HTTP/1.1 200 OK
 Content-Type: application/json
 
-{ "rowsAffected": "3" }
+{ "rowsAffected": 3 } - \ No newline at end of file + diff --git a/WebContent/doc/ref/ResPutQueryUrlEnc.html b/WebContent/doc/ref/ResPutQueryUrlEnc.html index 1352d69..660e554 100644 --- a/WebContent/doc/ref/ResPutQueryUrlEnc.html +++ b/WebContent/doc/ref/ResPutQueryUrlEnc.html @@ -97,7 +97,7 @@

JSON Example

HTTP/1.1 200 OK
 Content-Type: application/json
 
-{ "rowsAffected": "3" }
+{ "rowsAffected": 3 } - \ No newline at end of file + diff --git a/WebContent/doc/ref/ResPutXmlOrJson.html b/WebContent/doc/ref/ResPutXmlOrJson.html index 6cb54a4..ef04848 100644 --- a/WebContent/doc/ref/ResPutXmlOrJson.html +++ b/WebContent/doc/ref/ResPutXmlOrJson.html @@ -131,7 +131,7 @@

JSON Examples

HTTP/1.1 200 OK
 Content-Type: application/json
 
-{ "rowsAffected": "3" }
+{ "rowsAffected": 3 }

An update to parents of a hierarchical SQL Resource would look identical to the proceeding.

An update to children of one parent and another parent for a hierarchical SQL Resource:
@@ -155,7 +155,7 @@

JSON Examples

HTTP/1.1 200 OK
 Content-Type: application/json
 
-{ "rowsAffected": "4" }
+{ "rowsAffected": 4 } - \ No newline at end of file +