[TMEngine URL]/create
http://localhost:8000/TMServer/
create
POST
' request to the method end point with these parameters in a
JSON body:Field | Required | Content |
id |
No |
ID of the memory to create. The value of '
id ' must be
unique.Default value is current server time represented as the number of
milliseconds since January 1, 1970, 00:00:00 GMT
|
name |
Yes | A meaningful name to identify the memory |
owner |
No |
Text string used to identify the owner of the memory.
Default value is the login name of the user running the server.
|
type |
No |
Type of engine to use. Possible values are:
|
serverName |
No |
Name or IP of the server running MySQL or MariaDB.
Required for
SQLEngine . Defaut value:
'localhost ' |
port |
No |
Port in which MySQL or MariaDB listens for requests.
Required for
SQLEngine . Default value:
3306 |
userName |
No |
ID of of the MySQL or MariaDB user creating the database.
Required for
SQLEngine . |
password |
No |
Password of the MySQL or MariaDB user creating the database.
Required for
SQLEngine . |
{ "name": "First Memory", "type": "MapDbEngine" }
{ "name": "MariaMemory", "type": "SQLEngine", "serverName": "localhost", "port": 3306, "userName": "root", "password": "secret123!" }
status
' is set to 'OK
' and field
'id
' contains the ID assigned to the new memory.{ "status": "OK", "id": "1234567890987" }
status
' is set to 'failed
' and field
'reason
' contains the error cause.{ "status": "failed", "reason": "Duplicated id" }