Azure / Azure/azure-functions-host

Functions doesn't allow function name or route /api/admin

Open
#1,781 8 comments 8 reactions 0 assignees View on GitHub
enhancement
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 10h
Merged PRs (30d)
36

Description

By default functions has a route prefix of "/api". When I try to create a function with the name "admin", Function gives an error saying

Error:

Function ($admin) Error: The specified route conflicts with one or more built in routes.
Session Id: 19b72d6133b2489987185f757f8c1fe2

Timestamp: 2017-08-11T18:18:36.311Z

Functions built in route uses /admin. Its understandable that this is reserved. However functions with route /api/admin or with any other route prefix should be allowed.

Infact it doesnt even allow function names like administrator or anything that starts with admin.

Contributor guide

Open the contributing guide

Research direction

Reproduce the conflict using a function named "admin", "administrator", or another name beginning with "admin", first with the default /api prefix and then with a different route prefix. Trace the host's built-in /admin route handling and determine whether /api/admin and non-conflicting prefixes can be accepted without weakening the reserved route; done means the affected function routes are accepted while the built-in /admin route remains protected.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp
Domain
api, backend, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.