mahedee / code-sample02 Goto Github PK
View Code? Open in Web Editor NEWSample code and projects. For details please visit my blog https://mahedee.net
Home Page: https://mahedee.net
License: MIT License
Sample code and projects. For details please visit my blog https://mahedee.net
Home Page: https://mahedee.net
License: MIT License
Hi everyone,
I have successfully implemented this project, there is only one point, if we disable the Swagger of one of these microservices, it will not come up and only the microservice itself will run, in this case, the services related to that microservice will not appear in the Swagger related to BFF.
How can we solve this problem?
I followed your online guide and have also tried downloading your repository.
When selecting a Definition in the dropdown, othat than the BFF Gateway, Swagger gives an Error 500
OR just an error without errorcode:
Fetch error
Internal Server Error /swagger/docs/1.0/location
Maybe its Ocelot that has changed or Swashbuckle ?
Ocelot now only works with .NET 7
and i think Swashbuckle also changed a few things over the past few months.
Would you mind looking into it ?
Those methods name must be displaced
public async Task GetUserIdAsync(string userName)
{
var user = await _userManager.Users.FirstOrDefaultAsync(x => x.UserName == userName);
if (user == null)
{
throw new NotFoundException("User not found");
//throw new Exception("User not found");
}
return await _userManager.GetUserIdAsync(user);
}
public async Task<string> GetUserNameAsync(string userId)
{
var user = await _userManager.Users.FirstOrDefaultAsync(x => x.Id == userId);
if (user == null)
{
throw new NotFoundException("User not found");
//throw new Exception("User not found");
}
return await _userManager.GetUserNameAsync(user);
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.