mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
add examples and publicapi for id service
This commit is contained in:
43
id/examples.json
Normal file
43
id/examples.json
Normal file
@@ -0,0 +1,43 @@
|
||||
|
||||
{
|
||||
"generate": [{
|
||||
"title": "Generate a unique ID",
|
||||
"request": {
|
||||
"type": "uuid"
|
||||
},
|
||||
"response": {
|
||||
"type": "uuid",
|
||||
"id": "e9c427d8-cef1-48bd-ab89-59a6df29673b"
|
||||
}
|
||||
},
|
||||
{
|
||||
"title": "Generate a short ID",
|
||||
"request": {
|
||||
"type": "shortid"
|
||||
},
|
||||
"response": {
|
||||
"type": "shortid",
|
||||
"id": "Yivg2UeGg"
|
||||
}
|
||||
},
|
||||
{
|
||||
"title": "Generate a snowflake ID",
|
||||
"request": {
|
||||
"type": "snowflake"
|
||||
},
|
||||
"response": {
|
||||
"type": "snowflake",
|
||||
"id": "1248956308049350656"
|
||||
}
|
||||
},
|
||||
{
|
||||
"title": "Generate a bigflake ID",
|
||||
"request": {
|
||||
"type": "bigflake"
|
||||
},
|
||||
"response": {
|
||||
"type": "bigflake",
|
||||
"id": "29941839868462377496067580952577"
|
||||
}
|
||||
}]
|
||||
}
|
||||
8
id/publicapi.json
Normal file
8
id/publicapi.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "id",
|
||||
"icon": "🆔",
|
||||
"category": "util",
|
||||
"pricing": {
|
||||
"Id.Generate": 1
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user