![]() |
VOOZH | about |
dotnet add package Makspll.PathfinderLib --version 0.4.2
NuGet\Install-Package Makspll.PathfinderLib -Version 0.4.2
<PackageReference Include="Makspll.PathfinderLib" Version="0.4.2" />
<PackageVersion Include="Makspll.PathfinderLib" Version="0.4.2" />Directory.Packages.props
<PackageReference Include="Makspll.PathfinderLib" />Project file
paket add Makspll.PathfinderLib --version 0.4.2
#r "nuget: Makspll.PathfinderLib, 0.4.2"
#:package Makspll.PathfinderLib@0.4.2
#addin nuget:?package=Makspll.PathfinderLib&version=0.4.2Install as a Cake Addin
#tool nuget:?package=Makspll.PathfinderLib&version=0.4.2Install as a Cake Tool
<p align="center"> <img src="https://i.imgur.com/TEDoP2L.jpeg" alt="Pathfinder" width="300"/> </p>
Finds and outputs all API routes found in a .NET assembly in textual or JSON format.
dotnet tool install -g Makspll.PathfinderRun pathfinder help to see all available arguments
You can find all available routes in your assemblies using the analyze command:
pathfinder analyze **/bin/**/yourdllname.dll
You can also generate a report based on the analysis using the report command:
pathfinder report **/bin/**/yourdllname.dll
The program is configured via pathfinder.json files found in your project. If the file is not found you can specify a path via the -c flag.
Currently the file needs to specify all your conventional routing configuration (anything that isn't attribute based).
In .NET framework projects, you will need to specify whether each of your routes is an MVC or API route. This is done by adding a Type field to each route in the config file.
Note MVC conventional routes are normally found in App_Start/RouteConfig.cs while WebApi controllers are found in App_Start/WebApiConfig.cs the System.Web.Http namespace corresponds to WebApi controllers while the System.Web.Mvc namespace corresponds to MVC ones.
{
"ConventionalRoutes": [
{
"Template": "conventionalprefix/{controller}/{action}",
"Type": "MVC"
},
{
"Template": "conventionalprefix2/{controller}",
"Defaults": {
"action": "DefaultAction"
},
"Type": "MVC"
},
{
"Template": "conventionalwithnoactionspecs",
"Defaults": {
"controller": "DefaultConventional",
"action": "DefaultAction"
},
"Type": "MVC"
},
{
"Template": "apiconventionalprefix/{controller}/{action}",
"Type": "API"
},
{
"Template": "apiconventionalprefix2/{controller}",
"Defaults": {
"action": "DefaultAction"
},
"Type": "API"
},
{
"Template": "apiconventionalwithnoactionspecs",
"Defaults": {
"controller": "ApiDefaultConventionalApi",
"action": "DefaultAction"
},
"Type": "API"
}
]
}
.NET core does not make such a distinction, you shouldn't specify the type of controller:
{
"ConventionalRoutes": [
{
"Template": "conventionalprefix/{controller}/{action}"
},
{
"Template": "conventionalprefix2/{controller}",
"Defaults": {
"action": "DefaultAction"
}
},
{
"Template": "conventionalwithnoactionspecs",
"Defaults": {
"controller": "DefaultConventional",
"action": "DefaultAction"
}
}
]
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net7.0 net7.0 is compatible. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.