title: Doxygen and add a value of an attribute to the output documentation
body: <p><a href="http://servicestack.net" rel="noreferrer">ServiceStack</a> marks rest paths for web services using c# attributes. </p>
  
  <p>For example </p>
  
  <pre><code>[RestService("/hello1")]
  [RestService("/hello2")]
  public class Hello
  </code></pre>
  
  <p>I would like to make Doxygen include values of the RestService attribute in the doxygen output for the Hello class. I'm not concerned too much with pretty formattin if the full line with brackets is included in the output document. </p>
  
  <p>Any suggestions?</p>
  
  <p>A quick and dirty trick would be a preferable to writing a Doxygen extension ;)</p>
  
  <p>Cheers</p>
  
  <p>Tymek</p>
  
  <p>====EDIT</p>
  
  <p>The Python version (so will work on Windows easily) of <i>doxygen</i> user's answer would be:</p>
  
  <pre><code>#!/usr/bin/env python
  import sys
  import re
  
  if (len(sys.argv) &lt; 2):
      print "No input file"
  else:
      f = open(sys.argv[1])
      line = f.readline()
      while line:
          re1 = re.compile("\[RestService\(\"(.*)\",.*\"(.*)\"\)]")
          re1.search(line)
          sys.stdout.write(re1.sub(r"/** \\b RestService: \2 \1\\n */\n", line))
          #sys.stdout.write(line)
          line = f.readline()
      f.close()
  </code></pre>
  
  <p>and the DOXYFILE would have:</p>
  
  <pre><code>INPUT_FILTER           = "doxygenFilter.py"
  </code></pre>