Both sides previous revisionPrevious revisionNext revision | Previous revision |
webssphh_restful_service [2016/07/23 14:39] – [WebSSPHHService] 100.3.200.49 | webssphh_restful_service [2023/09/22 16:50] (current) – [WebSSPHH RESTful Service] microwerx |
---|
====== WebSSPHH RESTful Service ====== | ====== WebSSPHH RESTful Service ====== |
| |
| [[start]] |
===== WebSSPHHService ===== | ===== WebSSPHHService ===== |
| |
... | ... |
] | ] |
| </code> |
| |
| ==== Objects ==== |
| <code javascript> |
| "objects" : { |
| { "id" : number, "name" : string, "type" : string }, // Object |
| { "id" : number, "name" : string, "type" : string }, // Object |
| ... |
| } |
</code> | </code> |
| |
"name" : string, // Project Name | "name" : string, // Project Name |
"desc" : string, // Description | "desc" : string, // Description |
"key1" : json, // Property 1 | "key1" : { "type" : string, "value" : json }, // Property 1 |
"key2" : json, // Property 2 | "key2" : { "type" : string, "value" : json }, // Property 2 |
... | ... |
} | } |
"id" : number, // PK | "id" : number, // PK |
"name" : string, // Name of Scene | "name" : string, // Name of Scene |
"key1" : json, // property 1 | "key1" : { "type" : string, "value" : json }, // Property 1 |
"key2" : json, // property 2 | "key2" : { "type" : string, "value" : json }, // Property 2 |
... | ... |
} | } |
</code> | </code> |
| |
==== Objects ==== | |
<code javascript> | |
"objects" : { | |
{ "id" : number, "name" : string, "type" : string }, // Object | |
{ "id" : number, "name" : string, "type" : string }, // Object | |
... | |
} | |
</code> | |
| |
==== Object ==== | ==== Object ==== |
* ''sphere'' | * ''sphere'' |
* ''mtllib'' | * ''mtllib'' |
| * ''renderconfig'' |
| |
<code javascript> | <code javascript> |
"object" : { | "object" : { |
"id" : number, // PK | "id" : number, // PK |
"name" : string, // The name of the object | "name" : string, // Name of the object |
"type" : string, // The type of the object | "type" : string, // Type of the object |
"key1" : json, // property 1 | "key1" : { "type" : string, "value" : json }, // Property 1 |
"key2" : json, // property 2 | "key2" : { "type" : string, "value" : json }, // Property 2 |
... | ... |
} | } |
</code> | </code> |
| |
| ===== Common Types of Properties ===== |
| |
| ==== Special Types ==== |
| |
| ^Typename ^JSON | |
| | ''string'' | ''string'' | |
| | ''integer''| ''integer''| |
| | ''double'' | ''double'' | |
| | ''AffineMatrix4'' | ''[a11, a12, a13, a14,\\ a21, a22, a23, a24,\\ a31, a32, a33, a34]'' | |
| | ''Matrix2'' | ''[a11, a12, a21, a22]'' | |
| | ''Matrix3'' | ''[a11, a12, a13,\\ a21, a22, a23,\\ a31, a32, a33]'' | |
| | ''Matrix4'' | ''[a11, a12, a13, a14,\\ a21, a22, a23, a24,\\ a31, a32, a33, a34,\\ a41, a42, a43, a44]'' | |
| | ''Matrix2x3'' | ''[a11, a12,\\ a21, a22,\\ a31, a32]'' | |
| | ''Matrix2x4'' | ''[a11, a12,\\ a21, a22,\\ a31, a32,\\ a41, a42]'' | |
| | ''Matrix3x2'' | ''[a11, a12, a13,\\ a21, a22, a23]'' | |
| | ''Matrix3x4'' | ''[a11, a12, a13,\\ a21, a22, a23,\\ a31, a32, a33,\\ a41, a42, a43]'' | |
| | ''Vector2'' | ''[x, y]'' | |
| | ''Vector3'' | ''[x, y, z]'' | |
| | ''Vector4'' | ''[x, y, z, w]'' | |
| | ''Color3'' | ''[r, g, b]'' | |
| | ''Color4'' | ''[r, g, b, a]'' | |
| | ''Quaternion'' | ''[a, b, c, d]'' | |
| |
| ==== Normal Types ==== |
| |
| === Object === |
| |
| ^Typename ^JSON/Type | |
| | ''worldMatrix'' | ''Matrix4'' | |
| | ''usemtl'' | string | |
| | ''mesh'' | string | |
| |
| === Point Light === |
| |
| ^Typename ^JSON/Type | |
| | ''worldMatrix'' | ''Matrix4'' | |
| | ''position'' | ''Vector4'' | |
| | ''radius'' | number | |
| | ''E0'' | ''Color3'' | |