rest-bridge-micronaut

Thrift-Rest bridge for proxy thrift services

License

License

MIT
Categories

Categories

Micronaut Container Microservices
GroupId

GroupId

io.github.artemy-osipov.thrift
ArtifactId

ArtifactId

rest-bridge-micronaut
Last Version

Last Version

0.4.0
Release Date

Release Date

Type

Type

pom.sha512
Description

Description

rest-bridge-micronaut
Thrift-Rest bridge for proxy thrift services
Project URL

Project URL

https://github.com/artemy-osipov/thrift-rest-bridge
Source Code Management

Source Code Management

https://github.com/artemy-osipov/thrift-rest-bridge

Download rest-bridge-micronaut

Dependencies

runtime (7)

Group / Artifact Type Version
io.micronaut : micronaut-inject jar
io.micronaut : micronaut-validation jar
io.micronaut : micronaut-http-server-netty jar
org.mapstruct : mapstruct jar 1.4.2.Final
io.github.artemy-osipov.thrift : jackson-datatype-thrift jar 0.4.2
com.fasterxml.jackson.core : jackson-databind jar
io.github.artemy-osipov.thrift : rest-bridge-core jar 0.4.0

Project Modules

There are no modules declared in this project.

Thrift-REST Bridge

Maven Central Codacy Badge

The bridge for accessing thrift services using simple JSON. It allows request thrift services via REST client like Postman / Insomnia / cURL

Usage

Add and configure starter for your project for adding thrift-rest api

Dependency

repositories {
  jcenter()
}

dependencies {
  // ...
  implementation 'org.example:thrift-api:0.2.+' // dependency with thrift services/entity
  implementation 'io.github.artemy.osipov.thrift:rest-bridge-micronaut:0.1.0' // for micronaut project
  implementation 'io.github.artemy.osipov.thrift:rest-bridge-spring-boot-starter:0.1.0' // for spring project
  // ...
}

Configuration properties

# package that will be scanned for thrift services
bridge.thrift.scanPackage: org.example.thrift

Rest API

  • List services: GET /services
  • Show service: GET /services/:serviceId
  • Proxy operation: POST /services/:serviceId/operations/:operationName
  • Get operation template: GET /services/:serviceId/operations/:operationName/template

Versions

Version
0.4.0