@@ -190,6 +190,82 @@ paths:
190190 schema :
191191 $ref : ' #/components/schemas/CurationSubmitResponse'
192192
193+ /curation/list :
194+ get :
195+ summary : List all curations
196+ description : |
197+ This authenticated endpoint returns all curations in the database. Curator
198+ names are anonymized if the caller does not have the correct permissions.
199+ Authentication is done via an API key in the query parameters.
200+ operationId : listAllCurations
201+ parameters :
202+ - $ref : ' #/components/parameters/ApiKeyParam'
203+ responses :
204+ ' 200 ' :
205+ description : List of all curations
206+ content :
207+ application/json :
208+ schema :
209+ type : array
210+ items :
211+ $ref : ' #/components/schemas/CurationListEntry'
212+
213+ /curation/list/{stmt_hash} :
214+ get :
215+ summary : List curations for a statement
216+ description : |
217+ Public endpoint. Returns curations for the given pre-assembly statement hash.
218+ Authentication is not required for this endpoint.
219+ operationId : listCurationsForStatement
220+ parameters :
221+ - name : stmt_hash
222+ in : path
223+ required : true
224+ description : Pre-assembly statement hash (pa level).
225+ schema :
226+ type : string
227+ example : " -1072112758478440"
228+ responses :
229+ ' 200 ' :
230+ description : List of curations for the statement
231+ content :
232+ application/json :
233+ schema :
234+ type : array
235+ items :
236+ $ref : ' #/components/schemas/CurationListEntry'
237+
238+ /curation/list/{stmt_hash}/{src_hash} :
239+ get :
240+ summary : List curations for a statement and evidence
241+ description : |
242+ Public endpoint. Returns curations filtered by both statement hash and
243+ source (evidence) hash. Authentication is not required for this endpoint.
244+ operationId : listCurationsForStatementAndSource
245+ parameters :
246+ - name : stmt_hash
247+ in : path
248+ required : true
249+ description : Pre-assembly statement hash (pa level).
250+ schema :
251+ type : string
252+ example : " -1072112758478440"
253+ - name : src_hash
254+ in : path
255+ required : true
256+ description : Source (evidence) hash for raw-level curations.
257+ schema :
258+ type : string
259+ responses :
260+ ' 200 ' :
261+ description : List of curations for the statement and evidence
262+ content :
263+ application/json :
264+ schema :
265+ type : array
266+ items :
267+ $ref : ' #/components/schemas/CurationListEntry'
268+
193269components :
194270 parameters :
195271 FormatParam :
@@ -372,3 +448,38 @@ components:
372448 id :
373449 type : integer
374450 description : Database id of the submitted curation.
451+
452+ CurationListEntry :
453+ type : object
454+ description : A single curation record as returned by the list endpoints.
455+ properties :
456+ curator :
457+ type : string
458+ description : Curator email (may be anonymized if caller lacks get_curations permission).
459+ date :
460+ type : string
461+ description : Timestamp in HTTP date format (e.g. Thu, 29 Nov 2018 18:00:08 GMT).
462+ ev_json :
463+ type : string
464+ description : Optional evidence JSON (serialized).
465+ id :
466+ type : integer
467+ description : id of the curation.
468+ pa_hash :
469+ type : integer
470+ description : Pre-assembly statement hash.
471+ pa_json :
472+ type : string
473+ description : Optional pre-assembly statement JSON (serialized).
474+ source :
475+ type : string
476+ description : Source of the curation submission (e.g. DB REST API).
477+ source_hash :
478+ type : integer
479+ description : Source (evidence) hash for raw-level curations.
480+ tag :
481+ type : string
482+ description : Short category for the curation (e.g. grounding, correct).
483+ text :
484+ type : string
485+ description : Optional brief description of the curation.
0 commit comments