You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "MirtoBusico (via GitHub)" <gi...@apache.org> on 2023/08/17 14:39:25 UTC
[GitHub] [apisix] MirtoBusico opened a new issue, #10047: docs: what is the sintax of {id} in apisix-admin api?
MirtoBusico opened a new issue, #10047:
URL: https://github.com/apache/apisix/issues/10047
### Current State
In the admin-api api chapter ( https://apisix.apache.org/docs/apisix/admin-api/ ) all the examples for defining SSL, Upstream and Route use an {id}
In the Request methods it is indicated as {...}
In all examples this {id} is a numeric string
There is no explanation of the {id} syntax
### Desired State
Add the syntax rules for {id}:
1. is it numeric
2. is it a string
If it is a string:
1. what is the max length
2. what characters are allowed (letter, numbers, special as - _ . # @ )
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] MirtoBusico commented on issue #10047: docs: what is the sintax of {id} in apisix-admin api?
Posted by "MirtoBusico (via GitHub)" <gi...@apache.org>.
MirtoBusico commented on issue #10047:
URL: https://github.com/apache/apisix/issues/10047#issuecomment-1683413623
Fantastic!
It is exactly what I needed!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] shreemaan-abhishek closed issue #10047: docs: what is the sintax of {id} in apisix-admin api?
Posted by "shreemaan-abhishek (via GitHub)" <gi...@apache.org>.
shreemaan-abhishek closed issue #10047: docs: what is the sintax of {id} in apisix-admin api?
URL: https://github.com/apache/apisix/issues/10047
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] shreemaan-abhishek commented on issue #10047: docs: what is the sintax of {id} in apisix-admin api?
Posted by "shreemaan-abhishek (via GitHub)" <gi...@apache.org>.
shreemaan-abhishek commented on issue #10047:
URL: https://github.com/apache/apisix/issues/10047#issuecomment-1682969635
Following is the schema for {id}:
https://github.com/shreemaan-abhishek/apisix/blob/6e4347840727c54dd6b79a60e53afc1204938242/apisix/schema_def.lua#L30-L38
```lua
local id_schema = {
anyOf = {
{
type = "string", minLength = 1, maxLength = 64,
pattern = [[^[a-zA-Z0-9-_.]+$]]
},
{type = "integer", minimum = 1}
}
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org