Versions Compared

Key

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

...

The feed method works when the application transmits the information to GEODI in case of changes in data or privileges. GEODI Functions as the opposite of the service connection method.

Bu yöntemde GEODI üzerinde veri atılmak istenilen katmana yetkili bir kullanıcı bilgisine sahip olunmalıdır In this method information of an auhorized user that has rights add data layer on GEODI is needed.

Excerpt
You can use this method to send as many content as you want at any time if your application is standing, if there are internal methods to trigger, or if you don't have a Web application

...

*  If you have a question you can check the Frequently Asked Questions .

...

Multiple Content Feed

BulkFeed
DefinitionBulkFeed çağrısı ile içerikler GEODI'ye iletilir. GEODI çağrıyı bekletmeden sadece durum bilgisi döner. Çoklu içerik gönderimi için uygundur. Tek içerik göndermek için Feed metodu daha uygundurWith the BulkFeed call, the contents are forwarded to GEODI. GEODI only returns status information without waiting the call. Suitable for sending multiple content. Feed method is more convenient for sending single content.
Request

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

  • UserSession: Sistem yöneticisinden alınacak Besleme yetkili Token belirtilmelidir. Generating a Geodi Token Sayfasındaki bilgiler ile Token elde edilebilir.
  • wsName (Opsiyonel): Sağlanan Token birden fazla projeyi beslemeye yetkili ise wsName iletilmelidir.
  • enumeratorID (Opsiyonel): Sağlanan Token birden fazla kaynağı (geodi enumerator) beslemeye yetkili ise enumeratorID iletilmelidir.
  • content: İçerik bilgilerin içeren bir JSON nesnesidir. Nesne detaylarına

    • 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] / Api ( 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 Desteklenmeyen uzantı, Sunucu yapılandırma hatası Unsupported extension, Server configuration error

    471 Content ReqiredRequired

    481 This Token cannot access any workspaces

    453 wsName Required - Token birden fazla projeyi besleyebiliyorsa wsname gereklidir If Token can feed multiple projects, wsname is required.

    452 enumeratorID Required  - Token birden fazla proje kaynağını besleyebiliyorsa wsname gereklidir If Token can feed multiple projects, enumeratorID is required.

    480 wsname or enumeratorID is not accessable - Token yeterli yetkiye sahip değildoes not have sufficient authority


    Return Value

    OK metni döndürülüris returned.

    • Taramanın başladığını gösterir.  Bir hata alınmamışsa tarama başlatılır. Sonucu kontrol etmek gerekli değildirIndicates 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üman1',
    			ContentDate:'Mon, 06 May 2015 10:15:20 GMT',
    			ViewURL : '~/MyApplication/ContentView.php?id=1811&wsName={wsName}',
    			Permission : {   Permit : ['S-151...','Role2','Role3']  },
                MetaData:  [
    					 { Name:"Açıklama", Value:"Bu Doküman ...... ... " } 
    				]
    
    		},
    		{ 
    			ContentURL : '~/MyApplication/Content.php?id=1812',
    			DisplayName:'Doküman2',
    			ContentDate:'Mon, 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üman3',
    			ContentDate:'Mon, 06 May 2015 10:15:20 GMT',
    			ViewURL : '~/MyApplication/ContentView.php?id=1813&wsName={wsName}',
    			Permission : {   Permit : ['S-151...','Role2','Role3']  }
    		},
    	]
     }
    


    Example application

    ...

    Single Content Feed

    Feed
    DefinitionBulkFeed çağrısı ile içerikler GEODI'ye iletilir. GEODI çağrıyı bekletmeden sadece durum bilgisi döner. Çoklu içerik gönderimi için uygundur. Tek içerik göndermek için Feed metodu daha uygundurWith the BulkFeed call, the contents are forwarded to GEODI. GEODI only returns status information without waiting 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: İçerik bilgilerin içeren bir JSON nesnesidir. Nesne detaylarına A JSON object that contains content information.Object details can be reached from Geodi ContentObject - İçerik Tanım Nesnesi#İçerikTanımNesnesi-Tekİçerik dokümanından ulaşılabilir document. Json iade fazla büyüyebilir. POST ile gönderilmesi tercih edilmelidircan grow more than expected. It should be preferred to send by POST.
    • UserSession: Sistem yöneticisinden alınacak Besleme yetkili Token belirtilmelidir.  The feed authorized Token to be received from the system administrator must be specified. The Token rendering interface can be accessed from [geodiurl] / Api adersinden Token oluşturma arayüzüne ulaşılabilir ( Geodi REST API )
    • wsName (OpsiyonelOptional): Sağlanan Token birden fazla projeyi beslemeye yetkili ise wsName iletilmelidir wsName must be passed if the provided Token is authorized to feed multiple projects.
    • enumeratorID (OpsiyonelOptional):  Sağlanan Token birden fazla kaynağı The enumeratorID must be passed if the provided Token is authorized to feed multiple sources (geodi enumerator) beslemeye yetkili ise enumeratorID iletilmelidir.
    HttpMethodGET,POST
    Expected Errors

    401 Unauthorized access / Access denied

    403 Forbidden

    511 Network Authentication Required

    501 Server Error

    470 Desteklenmeyen uzantı, Sunucu yapılandırma hatası Unsupported extension, Server configuration error

    471 Content ReqiredRequired

    481 This Token cannot access any workspaces

    453 wsName Required - Token birden fazla projeyi besleyebiliyorsa wsname gereklidir If Token can feed multiple projects, wsname is required.

    452 enumeratorID Required  - Token birden fazla proje kaynağını besleyebiliyorsa wsname gereklidir If Token can feed multiple projects, enumeratorID is required.

    480 wsname or enumeratorID is not accessable - Token yeterli yetkiye sahip değildoes not have sufficient authority

    Return Value

    OK metni döndürülüris returned.

    Taramanın başladığını gösterir.  Bir hata alınmamışsa tarama başlatılır. Sonucu kontrol etmek gerekli değildir. 
    • 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:'Yeni Doküman',
    	ContentDate:'Mon, 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


    ...