الانتقال إلى المحتوى الرئيسي
GET
/
community-scripts
/
{communityScriptId}
استرداد اسكربت مجتمعي
curl --request GET \
  --url https://api.altostrat.io/community-scripts/{communityScriptId} \
  --header 'Authorization: Bearer <token>'
{
  "id": "01H8XGJWBWBAQ1Z3G1B6X2Q8P5",
  "name": "add-dns-static.rsc",
  "description": "يضيف هذا الاسكربت إدخال DNS ثابت لاسم معين إلى عنوان IP محدد.",
  "size": 128,
  "readme_url": "https://raw.githubusercontent.com/mikrotik-scripts/main/scripts/add-dns-static/README.md",
  "github_url": "https://github.com/mikrotik-scripts/main/blob/main/scripts/add-dns-static.rsc",
  "raw_url": "https://raw.githubusercontent.com/mikrotik-scripts/main/scripts/add-dns-static.rsc",
  "content": ":local name \"example.com\"; :local address 192.168.88.254; /ip dns static add name=$name address=$address;",
  "sha": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
  "repository": {
    "name": "mikrotik-scripts",
    "url": "https://github.com/user/mikrotik-scripts",
    "stars": 42,
    "created_at": "2024-01-15T12:00:00Z"
  },
  "user": {
    "name": "John Doe",
    "url": "https://github.com/johndoe",
    "avatar": "https://avatars.githubusercontent.com/u/12345?v=4",
    "followers": 100,
    "created_at": "2020-05-20T10:00:00Z"
  }
}

Authorizations

Authorization
string
header
required

تستخدم واجهة برمجة تطبيقات Altostrat SDX رموز Bearer من نوع JWT للمصادقة. احصل على رمز عبر واجهة برمجة تطبيقات المصادقة وأدرجه في ترويسة Authorization كـ 'Bearer {token}'.

Path Parameters

communityScriptId
string<ulid>
required

المعرف الفريد للسكريبت المجتمعي.

Example:

"01H8XGJWBWBAQ1Z3G1B6X2Q8P5"

Response

معلومات مفصلة حول الاسكربت المجتمعي.

id
string<ulid>

المعرف الفريد للسكريبت المجتمعي.

Example:

"01H8XGJWBWBAQ1Z3G1B6X2Q8P5"

name
string

اسم ملف الاسكربت.

Example:

"add-dns-static.rsc"

description
string | null

ملخص تم إنشاؤه بواسطة الذكاء الاصطناعي للسكريبت.

Example:

"يضيف هذا الاسكربت إدخال DNS ثابت لاسم معين إلى عنوان IP محدد."

size
integer

حجم ملف الاسكربت بالبايت.

Example:

128

readme_url
string<uri> | null

رابط URL لملف README الخام بصيغة markdown.

Example:

"https://raw.githubusercontent.com/mikrotik-scripts/main/scripts/add-dns-static/README.md"

github_url
string<uri>

رابط URL لملف الاسكربت على واجهة ويب GitHub.

Example:

"https://github.com/mikrotik-scripts/main/blob/main/scripts/add-dns-static.rsc"

raw_url
string<uri>

الرابط المباشر الخام لتنزيل محتوى الاسكربت.

Example:

"https://raw.githubusercontent.com/mikrotik-scripts/main/scripts/add-dns-static.rsc"

content
string

محتوى الاسكربت، يتم تضمينه عند استرداد اسكربت واحد.

Example:

":local name \"example.com\"; :local address 192.168.88.254; /ip dns static add name=$name address=$address;"

sha
string

تجزئة SHA الخاصة بـ git لمحتوى الملف.

Example:

"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"

repository
object
user
object