---
title: "Web API 2 Controller with multiple GET methods - part 2"
url: https://daily.dev/posts/web-api-2-controller-with-multiple-get-methods---part-2-oxayxgekc
source_url: https://nodogmablog.bryanhogan.net/2017/02/web-api-2-controller-with-multiple-get-methods-part-2
type: article
source: "No Dogma Blog (Bryan Hogan)"
published: 2026-05-31T07:46:18.523Z
updated: 2026-05-31T09:33:08.661Z
tags: ["c#", "rest-api"]
reading_time: 3
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Web API 2 Controller with multiple GET methods - part 2

**[No Dogma Blog \(Bryan Hogan\)](https://daily.dev/sources/bryanhogan)** · 3 min read · 0 upvotes · 0 comments

## Summary

A guide on using attribute routing in ASP.NET Web API 2 to create controllers with multiple GET methods differentiated by parameter type. Covers how route constraints like `{id:int}` and `{id:Guid}` work, explains the ambiguity problem when routing can't distinguish between `int` and `long`, and shows how to resolve conflicts by adding a path prefix to one of the routes.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://nodogmablog.bryanhogan.net/2017/02/web-api-2-controller-with-multiple-get-methods-part-2>

## Similar posts on daily.dev

- [ASP.NET Core Controllers: A Practical Guide to Building REST Endpoints](https://daily.dev/posts/asp-net-core-controllers-a-practical-guide-to-building-rest-endpoints-qbrdx5rqi) · We Are .NET · 0 upvotes · 0 comments

---

Tags: [#c#](https://daily.dev/tags/c#), [#rest-api](https://daily.dev/tags/rest-api)

[View this post on daily.dev](https://daily.dev/posts/web-api-2-controller-with-multiple-get-methods---part-2-oxayxgekc)
