Questions tagged [micronaut-rest]
85 questions
0
votes
0 answers
Error instantiating bean of type [io.micronaut.data.mongodb.operations.MongoDatabaseNameProvider]
Error instantiating bean of type [io.micronaut.data.mongodb.operations.MongoDatabaseNameProvider]
Message: Could not resolve placeholder ${auto.test.resources.mongodb.uri}
Path Taken:…

Rakesh
- 1
- 1
0
votes
1 answer
Why do these REST Assured queries not get the same result as doing it in Postman? (403 or 400 status code vs desired 201)
For a group project at university, we're writing a Micronaut application for managing some data with a REST API, which I'm supposed to test with REST Assured. To start off with, I'm basically trying to convert a successful Postman request (POST to…

svwleg42
- 3
- 3
0
votes
1 answer
Microstream data is not persisted when application restart using micronaut 3.9.4
I have a below project structure
API
microstream:
rest:
enabled: true
storage:
order:
root-class: 'fete.bird.entity.RootContainer'
storage-directory: 'api/build/order-storage'
Infrastructure
@Singleton
public class…

San Jaisy
- 15,327
- 34
- 171
- 290
0
votes
2 answers
Failed to inject value for parameter [xxxx] of class No bean of type [xxxx] exists. Make sure the bean is not disabled by bean requirements
I'm working on a Gradle multi-module project with Micronaut and I need help with the following classes and interface in the application module:
Core project
@Singleton
public record OrderService(IOrderRepository iOrderRepository) implements…

San Jaisy
- 15,327
- 34
- 171
- 290
0
votes
0 answers
ExceptionHandler not mapping the body message of the exception in micronaut
From the API gateway using the micronaut declarative HTTP client as below
@Client(id="fetebirdProductApi", path = "/tag")
public interface ITagClient extends ITagOperation {
}
In one of the micro-service, there is a validation error on the…

San Jaisy
- 15,327
- 34
- 171
- 290
0
votes
0 answers
Override micronaut DefaultHealthAggregator behaviour not picking up the bean
I am trying to remove the name in the detail of each service in the health check result since the application name repeatedly printed in the response:
{
"name": "myservice-api",
"status": "UP",
"details": {
"Auth0": {
…

edison ouyang
- 109
- 1
- 8
0
votes
1 answer
Validate name of path param (@QueryValue) in Micronaut
I need to validate the @QueryValues in an endpoint in my controller class using Micronaut.
@Get("/files")
@Produces({ "application/json" })
FileSystemNodes readFiles(@Nullable
@QueryValue("project")
…

jJavier52
- 11
- 2
0
votes
1 answer
Is Micronaut a right choice for micro-services which call other HTTP microservices?
Hi Micronaut Development Community
We are trying to create Micronaut based microservices(in Java) which make calls to other HTTP services and Database(both Dynamo DB and RDS on AWS). What are the recommended Micronaut libraries/http client, to…
0
votes
1 answer
Micronaut @SerdeImport annotation not working with Kotlin
I am working on developing an application using Micronaut framework with Kotlin language.
However, I am facing an issue where @SerdeImport annotation is not being recognized when using Micronaut with Kotlin.
I am getting the below error even after…

ShivaniK
- 3
- 1
- 5
0
votes
0 answers
Project reactor Sinks with SSE in micronaut
I am currently trying to consume kafka events , I am able to do it, but once events are consumed, it needs to be published to UI after some minimal processing, For publishing the captured events from Kafka I am using project reactor Sinks,…

techSavvy
- 1
- 1
- 3
0
votes
1 answer
Micronaut Get raw HttpRequest
My app gets deployed to customer sites.
Some customers have proxies that perform authentication of users then forward a particular HTTP cookie/header.
These can be of custom format.
I want to be able to provide one micronaut URL e.g.…

Ryan Hamilton
- 2,601
- 16
- 17
0
votes
0 answers
Micronaut equivalent for jax-rs ContainerRequestContext
I am trying to use features such as in micronaut compared to jaxrs.
containerRequestContext.abortWith(Response.status(403).build());

Subash Chaturanga
- 814
- 2
- 10
- 20
0
votes
0 answers
MIcronaut-Jaxrs @RequestScope create only one object even with multiple requests
I am trying to inject a io.micronaut.runtime.http.scope.RequestScope object into my jaxrs resource. Here I am priting object to see if it creates different objects for each request. But the object created Only once, even when I sent multiple…

Subash Chaturanga
- 814
- 2
- 10
- 20
0
votes
1 answer
Mapped the Yaml configuration to Micronaut swagger open API security configuration
I have the below YAML configuration for OAuth
OAuth:
authorizationUrl: https://localhost:5001/connect/authorize
tokenUrl: https://localhost:5001/connect/token
scopes:
- name: openid
description: open id scope
- name: profile
…

San Jaisy
- 15,327
- 34
- 171
- 290
0
votes
1 answer
Query mongoDb embedded document using micronaut data
Using Micronaut data to perform the below operations
Find the item with id and subcategory id
Update the subcategory item based on category id and sub-category
id
Delete the subcategory item based on category id and sub
category id
I have the…

San Jaisy
- 15,327
- 34
- 171
- 290