diff --git a/src/site/xdoc/doc_server_tester.xml b/src/site/xdoc/doc_server_tester.xml deleted file mode 100644 index 3dd651cdf76..00000000000 --- a/src/site/xdoc/doc_server_tester.xml +++ /dev/null @@ -1,176 +0,0 @@ - - - - - Server Tester - HAPI FHIR - James Agnew - - - - -
- - - - -

- HAPI FHIR includes a web UI that can be used to test your server implementation. - This UI is the same UI used on the http://fhirtest.uhn.ca - public server. -

- -

- The Tester is a - Maven WAR Overlay, - meaning that you create your own WAR project (which you would likely be doing anyway - to create your server) and the overlay drops a number of files into your project. -

- - - -

- These instructions assume that you have an exsiting web project - which uses Maven to build. The POM.xml should have a "packaging" - type of "war". -

- -

- Adding the overlay to your project is relatively simple. First, - add the "hapi-fhir-testpage-overlay" dependency to the dependencies - section of your POM.xml file. - - - - - ca.uhn.hapi.fhir - hapi-fhir-testpage-overlay - 0.6-SNAPSHOT - war - provided - -]]> -

- -

- Then, add the following WAR plugin to the plugins section - of your POM.xml - - - - - - org.apache.maven.plugins - maven-war-plugin - - - - ca.uhn.hapi.fhir - hapi-fhir-testpage-overlay - - - - - -]]> -

- -

- Next, create the following directory in your project - if it doesn't already exist:
- src/main/webapp/WEB-INF -

- -

- Then, create a file in that directory - called hapi-fhir-tester-config.xml - and copy in the following contents: -

- - - - -

- Note that the URL in the file above must be customized to point to - the FHIR endpoint your server will be deployed to. For example, if you - are naming your project "myfhir-1.0.war" and your endpoint in the WAR is - deployed to "/fhirbase/*" then you should put a URL similar to - http://localhost:8080/myfhir-1.0/fhirbase -

- -

- Finally, in the same directory you should open you web.xml file. This file is - required in order to deploy to a servlet container and you should create it if - it does not already exist. Place the following contents in that file. -

- - - org.springframework.web.context.ContextLoaderListener - - - contextConfigLocation - - /WEB-INF/hapi-fhir-tester-application-context.xml - /WEB-INF/hapi-fhir-tester-config.xml - - - - spring - org.springframework.web.servlet.DispatcherServlet - - contextConfigLocation - - /WEB-INF/hapi-fhir-tester-application-context.xml - /WEB-INF/hapi-fhir-tester-config.xml - - - 2 - - - spring - /tester/* - ]]> - -
- - - -

- The most important customization required is to - set the FHIR server base URL in the - hapi-fhir-tester-config.xml - configuration file created during the - previous step. -

- -

- Beyond this, the entire tester application is built - from a number of - Thymeleaf - template files, any of which can be replaced to - create your own look and feel. All of the templates - can be found in your built war (after running the Maven - build), or in the target directory's staging area, in - WEB-INF/templates. By placing a file - with the same path/name in your src/main/webapp/WEB-INF/templates - directory you can replace the built in template - with your own file. -

- -
- - - -

- The "Restful Server Example" project contains a complete working - example of the FHIR Tester as a part of its configuration. You may - wish to browse its source to see how this works:
- https://github.com/jamesagnew/hapi-fhir/tree/master/restful-server-example -

- -
- -
- - - -