Skip to content

informatici/openhospital-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open Hospital API Build Status

This is the API project of Open Hospital: it exposes a REST API of the business logic implemented in the openhospital-core project.

How to build [WIP]

For the moment, to build this project you should

  1. fetch and build the core project

    git clone https://github.com/informatici/openhospital-core.git
    cd openhospital-core
    mvn clean install -DskipTests=true
    
  2. clone and build this project

    git clone https://github.com/informatici/openhospital-api
    cd openhospital-api
    mvn clean install -DskipTests=true
    
  3. call services URL base: localhost:8080/oh-api/patients URL swagger: http:https://localhost:8080/oh-api/swagger-ui.html

  4. set rsc/database.properties

    DB can be created with `docker-compose up` from `openhospital-core` or using a dedicated MySQL server
    
  5. start openhospital-api

    java -jar openhospital-api-<version>.jar
    

Service available on localhost:8080