/openhospital-api

OpenHospital API

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

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://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