Skip to content

Commit c8f7b11

Browse files
authored
Update README.md
1 parent 8df1bbf commit c8f7b11

File tree

1 file changed

+15
-33
lines changed

1 file changed

+15
-33
lines changed

README.md

Lines changed: 15 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ We design the required map, that we call `MAP2` and load it:
170170
```javascript
171171
do ##class(SampleApps.Serialize.HandleMaps).SetPersistObjectMAP2()
172172
```
173-
173+
Loa
174174
Then, we create a new class that we can call `SampleApps.Serialize.PersistObject.generatedMAP2` that extends `OPNLib.Serialize.Template` and change the required parameters. This would be the class definition:
175175
```javascript
176176
Class SampleApps.Serialize.PersistObject.generatedMAP2 Extends OPNLib.Serialize.Template
@@ -223,42 +223,24 @@ Get an object up to a drilldown level in JSON format following the default map |
223223
Get an object in JSON format following the default map and default drilldown especs | /object/json/:class/:id" | GET
224224
Load an object from JSON using a particular map and drilldown especifications | /object/json/:class/:ddlevel/:map | POST
225225
Load an object from JSON using its default map and a particular drilldown especifications | /object/json/:class/:ddlevel | POST
226-
| /object/json/:class | POST
227-
(assuming there is a property _classname_ in input JSON) | /object/json | POST
226+
Load an object from JSON using its default map | /object/json/:class | POST
227+
Load an object from JSON using its default map and which class is included in _classname_ property of the JSON document | /object/json | POST
228+
Get a serialized object in format especified by serialization method and with a especified drilldown level | /object/serial/:templateclass/:serializationmethod/:class/:id/:ddlevel | GET
229+
Get a serialized object in format especified by serialization method | /object/serial/:templateclass/:serializationmethod/:class/:id |GET
230+
Load object from a particular class, and with an especified drilldown level, from a serialized stream | /object/serial/:templateclass/:serializationmethod/:class/:ddlevel | POST
231+
Load object from a particular class from a serialized stream | /object/serial/:templateclass/:serializationmethod/:class | POST
228232
Update an object from JSON input | /object/json/:class/:id | PUT
229233
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
231-
| /object/serial/:templateclass/:serializationmethod/:class/:id |GET
232-
Load object from serialized stream | /object/serial/:templateclass/:serializationmethod/:class/:ddlevel | POST
233-
| /object/serial/:templateclass/:serializationmethod/:class | POST
234-
235-
236-
237-
<!-- Update object -->
238-
<!-- NOT YET IMPLEMENTED
239-
<Route Url="/object/serial/:templateclass/:serializationmethod/:class/:id" Method="PUT" Call="UpdateSerial" />
240-
-->
241-
242-
<!-- Get a JSON document that contains export/import MAPs associated to a particular :class -->
243-
<Route Url="/map/:class/:map/:type" Method="GET" Call="GetStdMap"/>
244-
<Route Url="/map/:class/:map" Method="GET" Call="GetStdMap"/>
245-
<Route Url="/map/:class" Method="GET" Call="GetStdMap"/>
234+
Update an object from serialized input | (NOT YET IMPLEMENTED) /object/serial/:templateclass/:serializationmethod/:class/:id | PUT
235+
Get a JSON document that contains certain type of MAPS (export or import) for a particular class | /map/:class/:map/:type | GET
236+
Get a JSON document that contains export and import definition of a MAP name associated with a particular class | /map/:class/:map | GET
237+
Get a JSON document that contains all the maps' definitions for a class | /map/:class | GET
246238

247239
<!-- Set export/import MAPs from a JSON document -->
248-
<Route Url="/map/:override/:filter" Method="POST" Call="LoadStdMap"/>
249-
<Route Url="/map" Method="POST" Call="LoadStdMap"/>
250-
<Route Url="/map/chgclass/:targetclass/:override/:filter" Method="POST" Call="LoadStdMapToOther"/>
251-
<Route Url="/map/chgclass/:targetclass" Method="POST" Call="LoadStdMapToOther"/>
252-
253-
<!-- Test methods - GET -->
254-
<Route Url="/request" Method="GET" Call="Request"/>
255-
256-
<!-- Test methods - POST -->
257-
<Route Url="/echo" Method="POST" Call="Echo"/>
258-
<Route Url="/echojson" Method="POST" Call="EchoJSON"/>
259-
<Route Url="/echo/:txt" Method="POST" Call="Echo"/>
260-
</Routes>
261-
240+
Set export/import MAPS (all or those comma-separated especified in Filter) from a JSON document | /map/:override/:filter | POST
241+
Set export/import MAPS from a JSON document (overriding the existing ones if any) | /map" | POST
242+
Set the export/import MAPS from a JSON document to a different target class (all or those especificied in filter) | /map/chgclass/:targetclass/:override/:filter | POST
243+
Set the export/import MAPS from a JSON document to a different target class | /map/chgclass/:targetclass | POST
262244

263245

264246
## End

0 commit comments

Comments
 (0)