Created
February 11, 2015 23:41
-
-
Save timjstewart/a5eaf0f0d2ff7e970e15 to your computer and use it in GitHub Desktop.
This is the JSON I POSTed to create a schema
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "namePath": "/item/song", | |
| "descriptionPath": "/item/comments", | |
| "security": { | |
| "rules": [] | |
| }, | |
| "createdDate": "2013-07-17T09:29:07.089+10:00", | |
| "modifiedDate": "2013-07-17T09:29:07.089+10:00", | |
| "uuid": "32acbf04-f7b7-4187-85cb-2e6f99fe9123", | |
| "name": "Song Schema", | |
| "description": "The description", | |
| "owner": { | |
| "username": "schema_meister_1003", | |
| "firstName": "Schema", | |
| "lastName": "Owner", | |
| "emailAddress": "[email protected]", | |
| "password": "...omitted..." | |
| }, | |
| "definition": { | |
| "xml": { | |
| "item": { | |
| "song": { | |
| "_indexed": false, | |
| "_field": true, | |
| "_type": "text" | |
| }, | |
| "comments": { | |
| "_indexed": true, | |
| "_field": false, | |
| "_type": "text" | |
| }, | |
| "genre": { | |
| "_indexed": false, | |
| "_field": true, | |
| "_type": "text" | |
| } | |
| } | |
| } | |
| }, | |
| "nameStrings": { | |
| "en": "Song Schema" | |
| }, | |
| "descriptionStrings": {} | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| could not create com.pearson.equella.platform.client.domain.Schema resource: response [ status: 500, statusText: 'Internal Server Error', headers [ access-control-allow-origin : [ '*' ]date : [ 'Wed, 11 Feb 2015 23:38:34 GMT' ]server : [ 'Apache-Coyote/1.1' ]content-length : [ '78' ]content-type : [ 'application/json' ]connection : [ 'keep-alive' ]cache-control : [ 'no-cache,no-store' ]access-control-expose-headers : [ 'Location' ] ], body: {"code":500,"error":"Internal Server Error","error_description":"Boxed Error"} ] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment