Skip to content

Conversation

@Gerivian
Copy link
Contributor

@Gerivian Gerivian commented Jan 16, 2026

Note

Adds a new guide for programmatic use and simplifies the API reference.

  • New guide: getting-started/using-backend.md covering auth (token retrieval), healthcheck, single/bulk AuditEvent uploads, read by ID, and example responses
  • Docs navigation: Adds "Using Auditbox Programmatically" to SUMMARY.md
  • API docs cleanup: Removes auth section and most curl examples from api.md; keeps high-level endpoint docs and renames Create Bundle to Upload Bundle

Written by Cursor Bugbot for commit 480b6c3. This will update automatically on new commits. Configure here.

```bash
curl "${keycloak_url}/realms/auditbox/protocol/openid-connect/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=password" \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

client_credentials?

This guide describes using an Auditbox server programmatically.
Whenever you see *${...}* in this page, replace it mentally with
a value that applies to you.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

я бы добавил table of contents:

  • Auth
  • Write events (single/bulk)
  • Read events

As the title suggests, */AuditEvent* endpoint is used for uploading
a single AuditEvent to Auditbox.

```bash
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

тут сложно понять какой http method вызывать - нужно додумывать что это post из "curl -d".
Я бы явно указал, что метод api - "POST /AuditEvent", а дальше пример

@@ -0,0 +1,208 @@
# Intro

This guide describes using an Auditbox server programmatically.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"an Auditbox server programmatically" -> "API methods"

## Creating AuditEvents

One of the main operations you'll do on Auditbox is storing
AuditEvents. There are two options to upload events - single resource
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

тут вординг "resource", а в другом месте "event", надо что-то одно использовать


### Single event upload

As the title suggests, */AuditEvent* endpoint is used for uploading
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

я бы убрал "As the title suggests" и явно указал имя метода - "POST /AuditEvent"


As the title suggests, */AuditEvent* endpoint is used for uploading
a single AuditEvent to Auditbox.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

еще бы указал, что мы перезаписываем входящий id

# Intro

This guide describes using an Auditbox server programmatically.
Whenever you see *${...}* in this page, replace it mentally with
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

посмотрел как в доке по aidbox это решают - пишут [base] - https://www.health-samurai.io/docs/aidbox/api/rest-api/crud/create#201-created
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants