Gateway 3.16 Admin API: correct the response schemas for GET /audit/requests and GET /audit/objects

Aperta Adatta ai principianti
#8,382 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
76/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
ruby
Ambito
documentation

Direzione di ricerca

Trova le definizioni di ListAuditObjectsResponse e DatabaseAuditLogResponse nel riferimento dell’Admin API di Gateway 3.16. Confronta i relativi schemi con la struttura della risposta descritta nell’issue: un oggetto contenente data, campi di paginazione e record con i nomi e i tipi indicati. Aggiorna entrambi gli schemi e includi risposte JSON rappresentative; il lavoro è completato quando il riferimento documenta correttamente entrambi gli endpoint.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

user-reported

Description

The Gateway 3.16 Admin API reference describes both HTTP 200 responses as top-level arrays. Request records show id, timestamp, and details; object records show id, timestamp, and changes.

I checked the Gateway Enterprise 3.16.0.0 release source and integration test assertions, without running a live gateway. Both endpoints return an object with a data array. When another page exists, offset is the cursor and next is a relative URL. On the last page, next is null.

  • GET /audit/requests: records use request_id and request_timestamp (Unix seconds), with fields such as method, path, and status.
  • GET /audit/objects: records have their own id, with fields such as request_id, request_timestamp, dao_name, operation, and entity. When populated, entity is a string containing JSON.

Definition of done

Correct the ListAuditObjectsResponse and DatabaseAuditLogResponse schemas. Document the pagination fields, record field names and types, and a representative JSON response for each endpoint.

Lingua principale
Ruby
Stelle
28
Fork
139
Merge medio
1g 17h
PR unite (30g)
318

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Kong/developer.konghq.com

Tutte le issue di Kong/developer.konghq.com

Issue simili

Altre issue su Ruby

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.