Zum Hauptinhalt springen

Routes

Erkunde alle verfügbaren Routen für die REST API, die jeweils eine Authentifizierung über den API-Schlüssel erfordern.
🔑 Aktiviere deinen Schlüssel gemäß den Richtlinien in how-to-activate.md
❌ Für standardmäßige fehlgeschlagene Antworten, siehe failed-response.md
📝 Basis-URL: https://api.fivem-helper.eu

📦 Fraktion

Fraktionsinfo

GET /:fractionid/info

Erhalte aktuelle Informationen über eine Fraktion.

🧾 Header

NameWert
Content-Typeapplication/json
Authorization<APIKey>

✅ Antwort 200

{
"status": 200,
"data": {
"id": int,
"isActive": int,
"name": string,
"img": string,
"guildId": string,
"categoryId": string,
"roleId": string,
"leaderInboxChannelId": string,
"stampClockChannelId": string,
"stampClockMessageId": string,
"managementChannelId": string,
"managementMessageId": string,
"dutyListChannelId": string,
"dutyListMessageId": string,
"holidayListChannelId": string,
"holidayListMessageId": string,
"internalLogChannelId": string,
"memberCount": int,
"complaintCount": int,
"derankCount": int,
"gradesCount": int,
"holidayCount": int,
"kickCount": int,
"meetingCount": int,
"meetingCancellationCount": int,
"panicCount": int,
"promotionCount": int,
"stampCount": int,
"terminationCount": int,
"uprankCount": int,
"warnCount": int,
"last_update": date (ISO 8601 standard),
"created_at": date (ISO 8601 standard)
},
"links": [
{
"docs": string,
"support": string
}
]
}

Fraktionsnamen aktualisieren

PATCH /:fractionid/name

Aktualisiere den aktuellen Fraktionsnamen.

🧾 Header

NameWert
Content-Typeapplication/json
Authorization<APIKey>

📦 Body

NameWert
Name<NewName>

✅ Antwort 200

{
"status": 200,
"links": [
{
"docs": string,
"support": string
}
]
}

❌ Antwort 400

{
"status": 400,
"message": string,
"links": [
{
"docs": string,
"support": string
}
]
}

Fraktionslogo aktualisieren

PATCH /:fractionid/logo

Aktualisiere das aktuelle Fraktionslogo.

🧾 Header

NameWert
Content-Typeapplication/json
Authorization<APIKey>

📦 Body

NameWert
Logo<LinkToLogo>

✅ Antwort 200

{
"status": 200,
"links": [
{
"docs": string,
"support": string
}
]
}

❌ Antwort 400

{
"status": 400,
"message": string,
"links": [
{
"docs": string,
"support": string
}
]
}

🤖 Fraktionsmitglied

Fraktionsmitglied hinzufügen

POST /:fractionid/:discordid/addMember

Füge ein neues Fraktionsmitglied hinzu.

🧾 Header

NameWert
Content-Typeapplication/json
Authorization<APIKey>

📦 Body

NameWert
FirstNameString
LastNameString

✅ Antwort 200

{
"status": 200,
"links": [
{
"docs": string,
"support": string
}
]
}

❌ Antwort 400

{
"status": 400,
"message": string,
"links": [
{
"docs": string,
"support": string
}
]
}

Fraktionsmitglied kicken

PUT /:fractionid/:discordid/kickMember

Kicke ein Fraktionsmitglied.

🧾 Header

NameWert
Content-Typeapplication/json
Authorization<APIKey>

📦 Body

NameWert
KickedByIdString

✅ Antwort 200

{
"status": 200,
"links": [
{
"docs": string,
"support": string
}
]
}

Fraktionsmitglied Info

GET /:fractionid/:discordid/info

Erhalte aktuelle Informationen über ein Fraktionsmitglied.

🧾 Header

NameWert
Content-Typeapplication/json
Authorization<APIKey>

✅ Antwort 200

{
"status": 200,
"data": {
"id": int,
"userId": string,
"firstName": string,
"lastName": string,
"isLeader": int,
"gradeId": int,
"grade": int,
"gradeLabel": string,
"dutyTime": int,
"stampCount": int,
"holidayCount": int,
"promotionCount": int,
"complaintCount": int,
"meetingCancellationCount": int,
"panicCount": int,
"uprankCount": int,
"derankCount": int,
"warnCount": int,
"last_update": date (ISO 8601 standard),
"created_at": date (ISO 8601 standard)
},
"links": [
{
"docs": string,
"support": string
}
]
}

❌ Antwort 401

{
"status": 401,
"message": string,
"links": [
{
"docs": string,
"support": string
}
]
}

❌ Antwort 404

{
"status": 404,
"message": string,
"links": [
{
"docs": string,
"support": string
}
]
}

⏱️ Stempel Uhr

Fraktionsmitglied letzter Stempel

GET /:fractionid/:discordid/lastStamp

Erhalte den letzten Stempel eines Fraktionsmitglieds.

🧾 Header

NameWert
Content-Typeapplication/json
Authorization<APIKey>

✅ Antwort 200

{
"status": 200,
"data": {
"id": int,
"stampType": string,
"stampTime": date (ISO 8601 standard)
},
"links": [
{
"docs": string,
"support": string
}
]
}

❌ Antwort 404

{
"status": 404,
"message": string,
"links": [
{
"docs": string,
"support": string
}
]
}

Fraktionsmitglied vorherige Stempel

GET /:fractionid/:discordid/previousStamps

Erhalte die vorherigen Stempel eines Fraktionsmitglieds (max. 15 Stempel)

🧾 Header

NameWert
Content-Typeapplication/json
Authorization<APIKey>

✅ Antwort 200

{
"status": 200,
"data": [
{
"id": int,
"stampType": string,
"stampTime": date (ISO 8601 standard)
}
... max 14 andere Stempel
],
"links": [
{
"docs": string,
"support": string
}
]
}

❌ Antwort 404

{
"status": 404,
"message": string,
"links": [
{
"docs": string,
"support": string
}
]
}

Fraktionsmitglied stempeln

POST /:fractionid/:discordid/stamp

Stemple das aktuelle Fraktionsmitglied.

🧾 Header

NameWert
Content-Typeapplication/json
Authorization<APIKey>

📦 Body

NameWert
Type<IN oder OUT>

✅ Antwort 200

{
"status": 200,
"links": [
{
"docs": string,
"support": string
}
]
}

❌ Antwort 400

{
"status": 400,
"message": string,
"links": [
{
"docs": string,
"support": string
}
]
}

🏖️ Urlaub

Fraktionsmitglied letzter Urlaub

GET /:fractionid/:discordid/lastHoliday

Erhalte den letzten Urlaub eines Fraktionsmitglieds.

🧾 Header

NameWert
Content-Typeapplication/json
Authorization<APIKey>

✅ Antwort 200

{
"status": 200,
"data": {
"isActive": boolean,
"holidayStartDate": date (ISO 8601 standard),
"holidayEndDate": date (ISO 8601 standard),
"holidayReason": string
},
"links": [
{
"docs": string,
"support": string
}
]
}

❌ Antwort 404

{
"status": 404,
"message": string,
"links": [
{
"docs": string,
"support": string
}
]
}

Fraktionsmitglied vorherige Urlaube

GET /:fractionid/:discordid/previousHolidays

Erhalte die vorherigen Urlaube eines Fraktionsmitglieds (max. 15 Stempel)

🧾 Header

NameWert
Content-Typeapplication/json
Authorization<APIKey>

✅ Antwort 200

{
"status": 200,
"data": [
{
"isActive": boolean,
"holidayStartDate": date (ISO 8601 standard),
"holidayEndDate": date (ISO 8601 standard),
"holidayReason": string
}
... max 14 andere Urlaube
],
"links": [
{
"docs": string,
"support": string
}
]
}

❌ Antwort 404

{
"status": 404,
"message": string,
"links": [
{
"docs": string,
"support": string
}
]
}

Fraktionsmitglied Urlaub anfordern

POST /:fractionid/:discordid/requestHoliday

Fordere einen Urlaub für das aktuelle Fraktionsmitglied an.

🧾 Header

NameWert
Content-Typeapplication/json
Authorization<APIKey>

📦 Body

NameWert
StartDateDatum (ISO 8601 Standard)
EndDateDatum (ISO 8601 Standard)
ReasonString

✅ Antwort 200

{
"status": 200,
"links": [
{
"docs": string,
"support": string
}
]
}

❌ Antwort 400

{
"status": 400,
"message": string,
"links": [
{
"docs": string,
"support": string
}
]
}