@@ -93,11 +93,11 @@ async function main() {
9393 <h2>Available APIs</h2>
9494 <div class="endpoint">
9595 <strong>JSON-RPC:</strong> <code>POST /api/objectql</code><br>
96- Example: <code>{"op": "find", "object": "User ", "args": {}}</code>
96+ Example: <code>{"op": "find", "object": "user ", "args": {}}</code>
9797 </div>
9898 <div class="endpoint">
9999 <strong>REST:</strong> <code>GET /api/data/:object</code><br>
100- Example: <code>GET /api/data/User </code>
100+ Example: <code>GET /api/data/user </code>
101101 </div>
102102 <div class="endpoint">
103103 <strong>Metadata:</strong> <code>GET /api/metadata/object</code><br>
@@ -107,9 +107,9 @@ async function main() {
107107 <h2>Test Commands</h2>
108108 <pre><code>curl -X POST http://localhost:${ port } /api/objectql \\
109109 -H "Content-Type: application/json" \\
110- -d '{"op": "find", "object": "User ", "args": {}}'
110+ -d '{"op": "find", "object": "user ", "args": {}}'
111111
112- curl http://localhost:${ port } /api/data/User
112+ curl http://localhost:${ port } /api/data/user
113113
114114curl http://localhost:${ port } /api/metadata/object</code></pre>
115115</body>
@@ -119,38 +119,38 @@ curl http://localhost:${port}/api/metadata/object</code></pre>
119119
120120 // Create some sample data
121121 const ctx = app . createContext ( { isSystem : true } ) ;
122- await ctx . object ( 'User ' ) . create ( {
122+ await ctx . object ( 'user ' ) . create ( {
123123 name : 'Alice' ,
124124 email : 'alice@example.com' ,
125125 age : 28 ,
126126 status : 'active'
127127 } ) ;
128- await ctx . object ( 'User ' ) . create ( {
128+ await ctx . object ( 'user ' ) . create ( {
129129 name : 'Bob' ,
130130 email : 'bob@example.com' ,
131131 age : 35 ,
132132 status : 'active'
133133 } ) ;
134- await ctx . object ( 'User ' ) . create ( {
134+ await ctx . object ( 'user ' ) . create ( {
135135 name : 'Charlie' ,
136136 email : 'charlie@example.com' ,
137137 age : 42 ,
138138 status : 'inactive'
139139 } ) ;
140140
141- await ctx . object ( 'Task ' ) . create ( {
141+ await ctx . object ( 'task ' ) . create ( {
142142 title : 'Complete project' ,
143143 description : 'Finish the ObjectQL console' ,
144144 status : 'in-progress' ,
145145 priority : 'high'
146146 } ) ;
147- await ctx . object ( 'Task ' ) . create ( {
147+ await ctx . object ( 'task ' ) . create ( {
148148 title : 'Write documentation' ,
149149 description : 'Document the new console feature' ,
150150 status : 'pending' ,
151151 priority : 'medium'
152152 } ) ;
153- await ctx . object ( 'Task ' ) . create ( {
153+ await ctx . object ( 'task ' ) . create ( {
154154 title : 'Code review' ,
155155 description : 'Review pull requests' ,
156156 status : 'pending' ,
0 commit comments