cancel
Showing results for 
Search instead for 
Did you mean: 

Constraints list for type in REST API

moabb
Champ in-the-making
Champ in-the-making
I am trying to get a list of constraints for a type from the REST API and it doesn't seem to provide it from any resource URL. When getting the type from this URL:
http://localhost:8080/alfresco/service/api/classes/grey_regional/property/grey_region?alf_ticket=TIC...

the API gives me back a type definition with a blank list of constraints
    {
       "name": "grey:region",
       "defaultValues": "",
       "dataType": "d:text",
       "multiValued": false,
       "mandatory": true,
       "enforced": false,
       "protected": false,
       "indexed": true,
       "indexedAtomically": true,
       "constraints":
       [
       ],
       "url": "/api/property/grey_region"
    }

Why are the constraints listed as empty when I know they exist and can see them in the share application?

Any help is much appreciated.
1 REPLY 1

moabb
Champ in-the-making
Champ in-the-making
I have found that the constraints code was commented out of this webscript so it will always return blank. I found a fix in this thread: https://forums.alfresco.com/en/viewtopic.php?f=36&t=26781&start=0