Skip to content

Instantly share code, notes, and snippets.

@hasghari
Created June 30, 2012 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hasghari/3025327 to your computer and use it in GitHub Desktop.
Save hasghari/3025327 to your computer and use it in GitHub Desktop.
Sample avpr file
{
"namespace":"org.sample",
"protocol":"AccountService",
"types":[
{
"name":"Account",
"fields":[
{
"name":"id",
"type":"long"
},
{
"name":"name",
"type":"string"
},
{
"name":"description",
"type":[
"null",
"string"
],
"default":null
}
],
"type":"record"
}
],
"messages":{
"addAccount":{
"response":"Account",
"request":[
{
"name":"name",
"type":"string"
},
{
"name":"description",
"type":[
"null",
"string"
]
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment