Skip to content

Provides the code which contains connection strings to the pdp api

Notifications You must be signed in to change notification settings

mmz-srf/pdp-hackdays

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pdp-hackdays

Example code for accessing PDP API and PDP Kafka streams.

GraphQL API

Prerequisites

  • Python 3.x
  • pip3

Installation steps

pip3 install -r requirements.txt

Run example

python3 ./

Kafka

Prerequisites

Example Consumer

./kafka-console-consumer.sh --bootstrap-server kafka.pdp.production.srgssr.ch:9095 --consumer.config ./kafka.consumer.properties --topic t-ebucore-programme-v14

Available Topics

  • t-ebucore-programme-v14
  • t-ebucore-document-v14
  • t-ebucore-items-v14

Schema Registry

  • User: admin
  • Password: Pdp-Test1

Note: kafka-console-consumer.sh runs without Avro schema deserialisation. For deserialising Avro messages use Avro deserialiser https://stackoverflow.com/questions/49927747/how-to-pass-parameters-for-a-specific-schema-registry-when-using-kafka-avro-cons

About

Provides the code which contains connection strings to the pdp api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages