Vertx-Rest-Mirror-Release-Pipeline

A verticle that mirrors resources, which are provided as zip into a rest storage.

License

License

Categories

Categories

Mirror Application Layer Libs Introspection
GroupId

GroupId

org.swisspush.mirror
ArtifactId

ArtifactId

rest-mirror
Last Version

Last Version

2.1.10
Release Date

Release Date

Type

Type

jar
Description

Description

Vertx-Rest-Mirror-Release-Pipeline
A verticle that mirrors resources, which are provided as zip into a rest storage.
Project URL

Project URL

https://github.com/swisspush/vertx-rest-mirror
Source Code Management

Source Code Management

https://github.com/swisspush/vertx-rest-mirror.git

Download rest-mirror

How to add to project

<!-- https://jarcasting.com/artifacts/org.swisspush.mirror/rest-mirror/ -->
<dependency>
    <groupId>org.swisspush.mirror</groupId>
    <artifactId>rest-mirror</artifactId>
    <version>2.1.10</version>
</dependency>
// https://jarcasting.com/artifacts/org.swisspush.mirror/rest-mirror/
implementation 'org.swisspush.mirror:rest-mirror:2.1.10'
// https://jarcasting.com/artifacts/org.swisspush.mirror/rest-mirror/
implementation ("org.swisspush.mirror:rest-mirror:2.1.10")
'org.swisspush.mirror:rest-mirror:jar:2.1.10'
<dependency org="org.swisspush.mirror" name="rest-mirror" rev="2.1.10">
  <artifact name="rest-mirror" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.swisspush.mirror', module='rest-mirror', version='2.1.10')
)
libraryDependencies += "org.swisspush.mirror" % "rest-mirror" % "2.1.10"
[org.swisspush.mirror/rest-mirror "2.1.10"]

Dependencies

compile (6)

Group / Artifact Type Version
io.vertx : vertx-core jar 3.2.0
io.vertx : vertx-web jar 3.2.0
commons-io : commons-io jar 2.4
org.slf4j : slf4j-api jar 1.7.6
org.slf4j : slf4j-log4j12 jar 1.7.6
log4j : log4j jar 1.2.17

runtime (1)

Group / Artifact Type Version
commons-lang : commons-lang jar 2.4

test (3)

Group / Artifact Type Version
junit : junit jar 4.10
io.vertx : vertx-unit jar 3.2.0
com.jayway.restassured : rest-assured jar 2.4.1

Project Modules

There are no modules declared in this project.

vertx-mirror

Build Status codecov Maven Central

A verticle that mirrors resources, which are provided as zip into a rest storage.

Provide resources as zip

The zip has to be accessible over http, eg. http://host:8888/bla/blo/ble/resources.zip. The zip can contain arbitrary resources (files), the file types are not relevant. The resources (files) can be zipped in any path depth, the path will be mapped to the rest storage.

The API

HTTP Method: POST
URL: http://localhost:8686/mirror
payload:

{
    "path": "relative/path/to/the/zip.zip" // Relative path (see config parameter mirrorRootPath) to the zip
    ["content-type": "application/json"]  // optional - content-type of the content elements in zip file
}

Configuration

{
    "serverPort": 8686 // where the http server is listen on, standard is 8686
    "selfClientHost": "localhost" // where the verticle access the zip, standard is localhost
    "selfClientPort": 7012 // where the verticle access the zip, standard is 7012
    "mirrorHost": "localhost" // where the zip file entries are putted, standard is localhost
    "mirrorPort": "7012" // where the zip file entries are putted, standard is 7012
    "mirrorRootPath": "/root" // the root path, that is used to get the zip and to put the resources, standard is "/root"
}

Dependencies

Versions 02.xx.xx (and later) of Rest-Mirror depend on Vert.x v3.2.0, therefore Java 8 is required.

Versions 2.1.14 (and later) of Rest-Mirror depend on org.swisspush.rest-storage

org.swisspush.mirror
A group of developers and software architects working for the IT department at Swiss Post and using Open Source in their daily work.

Versions

Version
2.1.10