You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+47-1Lines changed: 47 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ From the terminal,in the name space where your class exists :
29
29
Do objJSON.%ToJSON()
30
30
31
31
Set newObj = ##class(SampleApps.Serialize.MapTesting).%New()
32
-
Do newObj.Import(,,objJSON)
32
+
Do newObj.Import(objJSON)
33
33
set tSC = newObj.%Save()
34
34
write newOBJ.%Id()
35
35
```
@@ -213,6 +213,52 @@ This way, once our template class is compiled, we could do:
213
213
## Sample Application
214
214
There are some classes that I used to build some of the examples. There are others testing other features. You can take a look at them in the package `SampleApps.Serialize`
215
215
216
+
## REST Services
217
+
Just a bunch of REST services to make use and test this functionality. You can find them in `SampleApps.Serialize.REST`class:
218
+
219
+
Service | Path | HTTP Method
220
+
------- | ---- | -----------
221
+
Get object in JSON format | /object/json/:class/:id/:ddlevel/:map | GET
222
+
| /object/json/:class/:id/:ddlevel | GET
223
+
| /object/json/:class/:id" | GET
224
+
Load object from JSON | /object/json/:class/:ddlevel/:map | POST
225
+
| /object/json/:class/:ddlevel | POST
226
+
| /object/json/:class | POST
227
+
(assuming there is a property _classname_ in input JSON) | /object/json | POST
228
+
Update an object from JSON input | /object/json/:class/:id | PUT
229
+
Delete an object with certain ID | NOT YET IMPLEMENTED | DELETE
230
+
Get serialized object in format especified by serialization method | /object/serial/:templateclass/:serializationmethod/:class/:id/:ddlevel | GET
0 commit comments