Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 In this method information of an auhorized authorized user that has rights add data layer on GEODI is needed.

...

BulkFeed
DefinitionWith the BulkFeed call, the contents are forwarded to GEODI. GEODI only returns status information without waiting for the call. Suitable for sending multiple contentcontents. Feed method is more convenient for sending single content.
Request

[GEODIURL]/FeedHandler?op=BulkFeed&Content=[ContentJson]&UserSession=[Token]

  • content: A JSON object that contains content information.Object details can be reached from Geodi ContentObject - İçerik Tanım Nesnesi#İçerikTanımNesnesi-Tekİçerik document. Json can grow more than expected. It should be preferred to send by POST.
  • UserSession: The feed authorized Token to be received from the system administrator must be specified. The Token rendering interface can be accessed from [geodiurl] / ApiAPI ( Geodi REST API )
  • wsName (Optional): wsName must be passed if the provided Token is authorized to feed multiple projects.
  • enumeratorID (Optional): The enumeratorID must be passed if the provided Token is authorized to feed multiple sources (geodi enumerator).
HttpMethodGET, POST
Expected Errors

401 Unauthorized access / Access denied

403 Forbidden

511 Network Authentication Required

501 Server Error

470 Unsupported extension, Server configuration error

471 Content Required

481 This Token cannot access any workspaces

453 wsName Required - If Token can feed multiple projects, wsname is required.

452 enumeratorID Required  - If Token can feed multiple projects, enumeratorID is required.

480 wsname or enumeratorID is not accessable accessible - Token does not have sufficient authority


Return Value

OK is returned.

  • Indicates that scanning has started. If no error is received, the scan starts. It is not necessary to check the result.
Examples


Code Block
languagejs
linenumberstrue
//Request : 
[ServiceURL]/FeedHandler?op=BulkFeed&UserSession=[Token]&content=
 {
	Contents : 
	[
		{ 
			ContentURL : '~/MyApplication/Content.php?id=1811',
			DisplayName:'Doküman1Document1',
			ContentDate:'MonWed, 06 May 2015 10:15:20 GMT',
			ViewURL : '~/MyApplication/ContentView.php?id=1811&wsName={wsName}',
			Permission : {   Permit : ['S-151...','Role2','Role3']  },
            MetaData:  [
					 { Name:"AçıklamaDescription", Value:"BuThis document Dokümanis ...... ... " } 
				]

		},
		{ 
			ContentURL : '~/MyApplication/Content.php?id=1812',
			DisplayName:'Doküman2Document2',
			ContentDate:'MonWed, 06 May 2015 10:15:20 GMT',
			ViewURL : '~/MyApplication/ContentView.php?id=1812&wsName={wsName}',
			Permission : {   Permit : ['S-151...','Role2','Role3']  }
		},
		{ 
			ContentURL : '~/MyApplication/Content.php?id=1813',
			DisplayName:'Doküman3Document3',
			ContentDate:'MonWed, 06 May 2015 10:15:20 GMT',
			ViewURL : '~/MyApplication/ContentView.php?id=1813&wsName={wsName}',
			Permission : {   Permit : ['S-151...','Role2','Role3']  }
		},
	]
 }


Example application

...

Feed
DefinitionWith the BulkFeed call, the contents are forwarded to GEODI. GEODI only returns status information without waiting for the call. Suitable for sending multiple content. Feed method is more convenient for sending single content.
Request

[GEODIURL]/FeedHandler?op=Feed&Content=[ContentJson]&UserSession=[Token]

  • content: A JSON object that contains content information.Object details can be reached from Geodi ContentObject - İçerik Tanım Nesnesi#İçerikTanımNesnesi-Tekİçerik document. Json JSON can grow more than expected. It should be preferred to send by POST.
  • UserSession: The feed authorized Token to be received from the system administrator must be specified. The Token rendering interface can be accessed from [geodiurl] / ApiAPI ( Geodi REST API )
  • wsName (Optional): wsName must be passed if the provided Token is authorized to feed multiple projects.
  • enumeratorID (Optional): The enumeratorID must be passed if the provided Token is authorized to feed multiple sources (geodi enumerator).
HttpMethodGET,POST
Expected Errors

401 Unauthorized access / Access denied

403 Forbidden

511 Network Authentication Required

501 Server Error

470 Unsupported extension, Server configuration error

471 Content Required

481 This Token cannot access any workspaces

453 wsName Required - If Token can feed multiple projects, wsname is required.

452 enumeratorID Required  - If the Token can feed multiple projects, enumeratorID is required.

480 wsname or enumeratorID is not accessable accessible - Token does not have sufficient authority

Return Value

OK is returned.

  • Indicates that scanning has started. If no error is received, the scan starts. It is not necessary to check the result.
Examples


Code Block
languagejs
linenumberstrue
//Request : 
[ServiceURL]/FeedHandler?op=Feed&UserSession=[Token]&content=
{ 
	ContentURL : '~/MyApplication/Content.php?id=1811',
	DisplayName:'YeniNew DokümanDocument',
	ContentDate:'MonWed, 06 May 2015 10:15:20 GMT',
	ViewURL : '~/MyApplication/ContentView.php?id=1811',
	Permission : {   Permit : ['S-151...','Role2','Role3']  }
}


Example applications
Iframe
srchttps://rawcdn.githack.com/decesw/html/master/FeedApi.html
frameborderhide
stylewidth:100%;border:1px solid #ccc
height600px


...

BulkFeed
Definition

You can add sub-content to a content in GEODI. There are two methods for this.

If no authorization is defined for a child content, it inherits the rights from of the parent. If authorization is defined, only the privileges defined are used. Does It does not inherit from the parent.


1. You can use the ParentContentIdOrURL value if you want to link the content you feed at any time to an earlier content.

Code Block
  [
  		{
            ContentURL : '.../MyApplication/Content.php?id=1810',
            DisplayName:'AnaMain Doküman1Document1',
            ContentDate:'MonWed, 06 May 2015 10:15:20 GMT',
            Permission : {   Permit : ['S-151...','Role2','Role3']  },
            MetaData:  [
                     { Name:"AçıklamaDescription", Value:"BuThis Dokümandocument ...... ... " }
                ]
         },
        {
            ContentURL : '.../MyApplication/Content.php?id=1811',
            DisplayName:'Doküman1Document1',
            ContentDate:'MonWed, 06 May 2015 10:15:20 GMT',
            Permission : {   Permit : ['S-151...','Role2','Role3']  },
            MetaData:  [
                     { Name:"AçıklamaDescription", Value:"BuThis Dokümandocument ...... ... " }
                ],
			ParentContentIdOrURL :'.../MyApplication/Content.php?id=1810'
         }
	]


2. Subcontents of main content can be passed in bulk with the SubContents object.

Code Block
[
  	{
        ContentURL : '.../MyApplication/Content.php?id=1810',
        DisplayName:'AnaMain Doküman1Document1',
        ContentDate:'MonWed, 06 May 2015 10:15:20 GMT',
        Permission : {   Permit : ['S-151...','Role2','Role3']  },
        MetaData:  [
            { Name:"AçıklamaDescription", Value:"BuThis Dokümandocument ...... ... " }
        ]
    },
    SubContents: [ {
        ContentURL : '.../MyApplication/Content.php?id=1811',
        DisplayName:'Doküman1',
        ContentDate:'MonWed, 06 May 2015 10:15:20 GMT',
        Permission : {   Permit : ['S-151...','Role2','Role3']  },
        MetaData:  [
             { Name:"AçıklamaDescription", Value:"BuThis Dokümandocument ...... ... " }
        ]
    } ]
]