2016-03-29 13 views
1

Kısa bir süre önce Hydra Console ile deneme yapmaya yeni başladım. Kırıldıkça bana benziyor.JSON Hydra Console doğru şekilde algılamıyor

toplu sürüme giderseniz: http://www.markus-lanthaler.com/hydra/console/#

ve bu URL'yi girin: http://kadebom.com/EntryPoint.jsonld (the example tam bir kopyası benim sunucuda dışında ise) sadece "@context": döner ve yok

mevcut değerler.

ekran bakın:

Screenshof Hydra Console output, showing only '{ "@context": }'

JS konsolunda herhangi bir hata yok. Apache yapılandırmamı Access-Control-Allow-Origin: *'a değiştirmeyi denedim ama boşuna.

Birisi bana yanlış ne yaptığımı söyleyebilir misiniz? indirilecek neler

{ 
"@context": { 
    "__value": "/hydra/api-demo/contexts/EntryPoint.jsonld", 
    "__activectx": { 
     "@base": {}, 
     "hydra": { 
      "@id": "http://www.w3.org/ns/hydra/core#", 
      "@reverse": false 
     }, 
     "vocab": { 
      "@id": "http://www.markus-lanthaler.com/hydra/api-demo/vocab#", 
      "@reverse": false 
     }, 
     "EntryPoint": { 
      "@id": "http://www.markus-lanthaler.com/hydra/api-demo/vocab#EntryPoint", 
      "@reverse": false 
     }, 
     "issues": { 
      "@id": "http://www.markus-lanthaler.com/hydra/api-demo/vocab#EntryPoint/issues", 
      "@reverse": false, 
      "@type": "@id" 
     }, 
     "register_user": { 
      "@id": "http://www.markus-lanthaler.com/hydra/api-demo/vocab#EntryPoint/registerUser", 
      "@reverse": false, 
      "@type": "@id" 
     }, 
     "my_account": { 
      "@id": "http://www.markus-lanthaler.com/hydra/api-demo/vocab#EntryPoint/myAccount", 
      "@reverse": false, 
      "@type": "@id" 
     }, 
     "users": { 
      "@id": "http://www.markus-lanthaler.com/hydra/api-demo/vocab#EntryPoint/users", 
      "@reverse": false, 
      "@type": "@id" 
     } 
    } 
}, 
"@id": { 
    "__iri": "@id", 
    "__value": { 
     "__orig_value": "/hydra/api-demo/", 
     "__value": { 
      "@id": "http://www.markus-lanthaler.com/hydra/api-demo/" 
     } 
    } 
}, 
"@type": { 
    "__iri": "@type", 
    "__value": { 
     "__orig_value": "EntryPoint", 
     "__value": { 
      "@id": "http://www.markus-lanthaler.com/hydra/api-demo/vocab#EntryPoint" 
     } 
    } 
}, 
"issues": { 
    "__iri": "http://www.markus-lanthaler.com/hydra/api-demo/vocab#EntryPoint/issues", 
    "__value": { 
     "__orig_value": "/hydra/api-demo/issues/", 
     "__value": { 
      "@id": "http://www.markus-lanthaler.com/hydra/api-demo/issues/" 
     } 
    } 
}, 
"register_user": { 
    "__iri": "http://www.markus-lanthaler.com/hydra/api-demo/vocab#EntryPoint/registerUser", 
    "__value": { 
     "__orig_value": "/hydra/api-demo/users/", 
     "__value": { 
      "@id": "http://www.markus-lanthaler.com/hydra/api-demo/users/" 
     } 
    } 
}, 
"users": { 
    "__iri": "http://www.markus-lanthaler.com/hydra/api-demo/vocab#EntryPoint/users", 
    "__value": { 
     "__orig_value": "/hydra/api-demo/users/", 
     "__value": { 
      "@id": "http://www.markus-lanthaler.com/hydra/api-demo/users/" 
     } 
    } 
} 

}

ziyade: Herhangi belgelerinde belirtilmemiş Nedense

cevap

0

, ve bazı varsa, bunu sağlamak lütfen lütfen, benim json belge olmak zorunda Eğer bu URL'ye giderseniz:

http://www.markus-lanthaler.com/hydra/event-api/ 
1

Belgeniz tam bir kopya gibi görünmüyor (artık kendi cevabınızı okuduktan sonra kabul ediyorum). Oraya the example bir kopyasını koyun ve doğru içerik türüyle, yani Content-Type: application/ld+json ile hizmet verdiğinizden emin olun. siz de göstermek için sağ taraftaki belgeleri isterseniz

, ayrıca örnek (demo nasıl yapar görmek için bir curl -i http://www.markus-lanthaler.com/hydra/api-demo/contexts/EntryPoint.jsonld yapar gibi bir Link başlığından ApiDocumentation başvurmak gerekir.

Btw

yerine Event API Demo görüntülemenizi öneririm.
İlgili konular