/svarut-rest-klient

SvarUt Rest klient for SvarUt forsendelse rest service

Primary LanguageJavaMIT LicenseMIT

SvarUt-rest-klient

GitHub License Maven Central GitHub Release Date GitHub Last Commit

Klient bibliotek mot SvarUt ForsendelseRestService.

Getting Started

Legg til maven dependency.

Prerequisites

  • Java 11 or higher
Maven

Add dependency no.ks.fiks.svarut:svarut-rest-klient in your POM.

<dependencies>
   <dependency>
        <groupId>no.ks.fiks.svarut</groupId>
        <artifactId>svarut-rest-klient</artifactId>
        <version>1.0.0-SNAPSHOT</version>
   </dependency>
</dependencies>

Usage

Forsendelse forsendelse = //construct;
HashMap<String, InputStream> filer = //construct;
SvarUtKlientApi klient = new SvarUtKlientApiImpl("http://test.svarut.ks.no", avsender, servicePassord);
ForsendelseId id = klient.sendForsendelse(forsendelse, filer);

Dokumentasjon på service: