Returns the names of all the schemas currently available in openTMI
-
/api/v0/schemas
-
GET
-
- Code: 200
Content:["ApiKey", "File", "Build", "Campaign", "Group", "Item", "Loan", "Resource", "Result", "Target", "Testcase", "User"]
- Code: 200
-
- Code: 401 UNAUTHORIZED
Content:{ "message": "No authorization token was found" }
- Code: 401 UNAUTHORIZED
-
curl http://localhost:3000/api/v0/schemas
-
...
Returns the schema information of a specific model in openTMI.
Provided schema is is JSON Schema format( http://json-schema.org/ ).
-
/api/v0/schemas/:collection
-
GET
-
- Code: 200
Content:{ "collection": "Item", "schema": { "type": "object", "properties": { "barcode": { "type": "string" }, "name": { "type": "string" } }, "required": [ "name", ] }, "properties": [ "barcode", "name", ] }
- Code: 200
-
-
Code: 401 UNAUTHORIZED
Content:{ "message": "No authorization token was found" }
-
Code: 404 NOT FOUND
Content:{"error": "No schema found with name: UndefinedScema"}
-
-
curl http://localhost:3000/api/v0/schemas/Item
-
...