Comments (2)
I think you will see this when you look at the code, but I just realized that the bug is deeper than just not looking at the RoutePrefix attribute.
In the example I gave above, I was wrong on what the real Url should be because the Route attribute has parameter. So the real Url should be:
api/AdServer/AdImage/{adId}/image/?userId=${userId}
from ntypewriter.
@NeVeSpl Thank you for this fix. It makes the Action.Url much, much better.
I am going through and comparing a bunch of urls from Typewriter to NTypewriter with this fix. There is one case that has jumped out. I will open a new issue for that case. I want to do more investigation to see if I can figure out what is really triggering it. Oh, it might be the second optional parameter isn't being picked up or something.
from ntypewriter.
Related Issues (20)
- v0.3.4 Introduced a Bug in Template Rendering HOT 4
- [Question] Get enum names and values from IType HOT 4
- Disabling preview? HOT 2
- IType.IsAbsract and .IsInterface aren't mutually exclusive (and apply to primitives sometimes?) HOT 7
- Sync/delete renamed/deleted files HOT 6
- ValueTuple support with TypeFunctions.ToTypeScriptType HOT 12
- Support for JetBrains Rider HOT 3
- IType.IsCollection returns false for IList<T> HOT 1
- No access to template output
- Compile Output Path HOT 3
- Has any function to delete file in specific folder? HOT 1
- ID in ToCamelCase not correct HOT 1
- Can the Visual Studio extension auto-update TS files upon changing a C# class? HOT 1
- Code works on Windows but not Linux HOT 10
- class.BareName at beginning of line with one tab adds extra whitespace HOT 7
- Is NTypewriter.SourceGenerator intended to add rendered templates to compilation source? HOT 4
- How to convert .NET classes to TypeScript? HOT 4
- Attributes generate values that are region dependent HOT 3
- Dynamic property throws error
- How to get Class from Action.ReturnType or Action.Parameters HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ntypewriter.