Skip to content

Commit

Permalink
dave - removing PathMethod as it's not useful
Browse files Browse the repository at this point in the history
  • Loading branch information
david denton committed Mar 6, 2015
1 parent 304c9cf commit 20903e5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ package io.github.daviddenton.fintrospect

import com.twitter.finagle.http.path.Path

case class ModuleRoute protected[fintrospect](description: Description, rootPath: Path, segmentMatchers: Seq[SegmentMatcher[_]]) {
case class ModuleRoute(description: Description, rootPath: Path, segmentMatchers: Seq[SegmentMatcher[_]]) {
override def toString: String = (description.complete(rootPath).toString :: segmentMatchers.map(_.toString).toList).mkString("/")
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ import io.github.daviddenton.fintrospect._
import io.github.daviddenton.fintrospect.util.ArgoUtil._

import scala.collection.JavaConversions._
import org.jboss.netty.handler.codec.http.HttpMethod

object Swagger1dot1Json {

private case class PathMethod(method: HttpMethod, summary: String, params: Seq[Parameter], responses: Seq[PathResponse], securities: Seq[Security])

private def render(p: Parameter): JsonNode = obj(
"name" -> string(p.name),
"paramType" -> string(p.location.toString),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ import argo.jdom.JsonNodeFactories._
import io.github.daviddenton.fintrospect.FintrospectModule.Renderer
import io.github.daviddenton.fintrospect._
import io.github.daviddenton.fintrospect.util.ArgoUtil._
import org.jboss.netty.handler.codec.http.HttpMethod

object Swagger2dot0Json {
private case class PathMethod(method: HttpMethod, summary: String, params: Seq[Parameter], responses: Seq[PathResponse], securities: Seq[Security])

private def render(p: Parameter): JsonNode = obj(
"in" -> string(p.location.toString),
"name" -> string(p.name),
Expand Down

0 comments on commit 20903e5

Please sign in to comment.