added default value for key

This commit is contained in:
Tony Tam 2012-09-20 14:16:20 -07:00
parent c3b36c6944
commit 59cd5380aa

View File

@ -28,7 +28,7 @@ import Source._
object ApiExtractor {
def m = JsonUtil.getJsonMapper
def extractApiDocs(basePath: String, apis: List[DocumentationEndPoint], apiKey: Option[String]): List[Documentation] = {
def extractApiDocs(basePath: String, apis: List[DocumentationEndPoint], apiKey: Option[String] = None): List[Documentation] = {
for (api <- apis) yield {
val json = basePath.startsWith("http") match {
case true => {