How do I create dynamic paths in Grapevine
up vote
0
down vote
favorite
I'm trying to create a RESTFUL API using Grapevine.
I would like to create dynamic paths e.g.
[RestRoute(PathInfo = "api/eshare/getcustomersbyname/{namepart}", HttpMethod = HttpMethod.GET)]
Purpose is to Search all customers where {namepart} is present and return json.
When I enter http://localhost:2000/api/eshare/getcustomersbyname/bio in the browser I always get: Route not Found for GET api/eshare/getcustomersbyname
Thx for the help
grapevine
add a comment |
up vote
0
down vote
favorite
I'm trying to create a RESTFUL API using Grapevine.
I would like to create dynamic paths e.g.
[RestRoute(PathInfo = "api/eshare/getcustomersbyname/{namepart}", HttpMethod = HttpMethod.GET)]
Purpose is to Search all customers where {namepart} is present and return json.
When I enter http://localhost:2000/api/eshare/getcustomersbyname/bio in the browser I always get: Route not Found for GET api/eshare/getcustomersbyname
Thx for the help
grapevine
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm trying to create a RESTFUL API using Grapevine.
I would like to create dynamic paths e.g.
[RestRoute(PathInfo = "api/eshare/getcustomersbyname/{namepart}", HttpMethod = HttpMethod.GET)]
Purpose is to Search all customers where {namepart} is present and return json.
When I enter http://localhost:2000/api/eshare/getcustomersbyname/bio in the browser I always get: Route not Found for GET api/eshare/getcustomersbyname
Thx for the help
grapevine
I'm trying to create a RESTFUL API using Grapevine.
I would like to create dynamic paths e.g.
[RestRoute(PathInfo = "api/eshare/getcustomersbyname/{namepart}", HttpMethod = HttpMethod.GET)]
Purpose is to Search all customers where {namepart} is present and return json.
When I enter http://localhost:2000/api/eshare/getcustomersbyname/bio in the browser I always get: Route not Found for GET api/eshare/getcustomersbyname
Thx for the help
grapevine
grapevine
edited Nov 19 at 17:48
Scott Offen
4,34831522
4,34831522
asked Nov 9 at 7:42
Ortwin
12
12
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
You're really close. Use square brackets instead of curly braces in your pattern.
[RestRoute(PathInfo = "api/eshare/getcustomersbyname/[namepart]", HttpMethod = HttpMethod.GET)]
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
You're really close. Use square brackets instead of curly braces in your pattern.
[RestRoute(PathInfo = "api/eshare/getcustomersbyname/[namepart]", HttpMethod = HttpMethod.GET)]
add a comment |
up vote
0
down vote
You're really close. Use square brackets instead of curly braces in your pattern.
[RestRoute(PathInfo = "api/eshare/getcustomersbyname/[namepart]", HttpMethod = HttpMethod.GET)]
add a comment |
up vote
0
down vote
up vote
0
down vote
You're really close. Use square brackets instead of curly braces in your pattern.
[RestRoute(PathInfo = "api/eshare/getcustomersbyname/[namepart]", HttpMethod = HttpMethod.GET)]
You're really close. Use square brackets instead of curly braces in your pattern.
[RestRoute(PathInfo = "api/eshare/getcustomersbyname/[namepart]", HttpMethod = HttpMethod.GET)]
answered Nov 19 at 17:47
Scott Offen
4,34831522
4,34831522
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53221605%2fhow-do-i-create-dynamic-paths-in-grapevine%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown