makingsense / aspnet-hypermedia-api Goto Github PK
View Code? Open in Web Editor NEWMiddlewares and helpers to make easy to create Hypermedia APIs with ASP.NET 5.
License: GNU Lesser General Public License v3.0
Middlewares and helpers to make easy to create Hypermedia APIs with ASP.NET 5.
License: GNU Lesser General Public License v3.0
Dependabot couldn't reach https://www.myget.org/F/aspnetrelease/api/v3/index.json as it timed out.
Is https://www.myget.org/F/aspnetrelease/api/v3/index.json accessible over the internet? If it is then this may be a transitory issue and can be ignored - Dependabot will close it on its next successful update run.
Maybe we could simplify services.AddMvc and app.UseMvc in something like this:
public void ConfigureServices(IServiceCollection services)
{
services.AddHypermediaApi()
//...
}
public void Configure(IApplicationBuilder app, IApplicationEnvironment appEnv)
{
app.AddHypermediaApi();
//...
}
Currently it is required to register a custom version of ILinkHelper in startup.
Maybe it is possible to configure AspNet.HypermediaApi Linking with a helper, something like:
public void ConfigureServices(IServiceCollection services)
{
services.AddHypermediaApi(new AddHypermediaApiOptions() {
GenerateToHomeAccountLink = (linkHelper, httpContext) => {
var username = httpContext?.User?.Identity?.Name;
return
username == null ? linkHelper.ToAction<HomeController>(x => x.AccountHome(TemplateParameter.Create<string>()))
: linkHelper.ToAction<HomeController>(x => x.AccountHome(username));
}
});
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.