This repository has been archived by the owner on Dec 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds ability to enter values and call a service to test interactively
The rule viewer now supports entering values for Facts when viewing a Berekening. It is a first version of using the viewer as an interactive testing tool. There are definitely improvements to be made to the usability, but it works :)
- Loading branch information
Showing
7 changed files
with
310 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package controllers | ||
|
||
import scala.collection.JavaConverters._ | ||
|
||
import javax.inject._ | ||
|
||
import play.api.Configuration | ||
import play.api.libs.json._ | ||
import play.api.mvc._ | ||
|
||
|
||
//scalastyle:off public.methods.have.type | ||
|
||
@Singleton | ||
class ConfigurationController @Inject()(configuration: Configuration) extends Controller { | ||
|
||
val config: Map[String, List[String]] = Map[String, List[String]]( | ||
"endpoints" -> configuration.getStringList("endpoints").map( _.asScala.toList ).getOrElse( List[String]() ) | ||
) | ||
|
||
def all = Action { | ||
Ok(Json.toJson(config)) | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.