|
| 1 | +package org.lowcoder.api.application; |
| 2 | + |
| 3 | +import io.swagger.v3.oas.annotations.Operation; |
| 4 | +import org.lowcoder.api.framework.view.ResponseView; |
| 5 | +import org.lowcoder.api.application.view.ApplicationRecordMetaView; |
| 6 | +import org.springframework.web.bind.annotation.*; |
| 7 | +import reactor.core.publisher.Mono; |
| 8 | + |
| 9 | +import java.util.List; |
| 10 | +import java.util.Map; |
| 11 | + |
| 12 | +import static org.lowcoder.infra.constant.NewUrl.APPLICATION_RECORD_URL; |
| 13 | + |
| 14 | +@RestController |
| 15 | +@RequestMapping(value = APPLICATION_RECORD_URL) |
| 16 | +public interface ApplicationRecordEndpoints |
| 17 | +{ |
| 18 | + public static final String TAG_APPLICATION_RECORDS = "Application Record APIs"; |
| 19 | + |
| 20 | + @Operation( |
| 21 | + tags = TAG_APPLICATION_RECORDS, |
| 22 | + operationId = "deleteApplicationRecord", |
| 23 | + summary = "Delete Application Record", |
| 24 | + description = "Permanently remove a specific Application Record from Lowcoder using its unique record ID." |
| 25 | + ) |
| 26 | + @DeleteMapping("/{ApplicationRecordId}") |
| 27 | + public Mono<Void> delete(@PathVariable String ApplicationRecordId); |
| 28 | + |
| 29 | + @Operation( |
| 30 | + tags = TAG_APPLICATION_RECORDS, |
| 31 | + operationId = "getApplicationRecord", |
| 32 | + summary = "Get Application Record", |
| 33 | + description = "Retrieve a specific Application Record within Lowcoder using the associated application ID." |
| 34 | + ) |
| 35 | + @GetMapping("/listByApplicationId") |
| 36 | + public Mono<ResponseView<List<ApplicationRecordMetaView>>> getByApplicationId(@RequestParam(name = "ApplicationId") String ApplicationId); |
| 37 | + |
| 38 | + @Operation( |
| 39 | + tags = TAG_APPLICATION_RECORDS, |
| 40 | + operationId = "listApplicationRecords", |
| 41 | + summary = "Get Application Records", |
| 42 | + description = "Retrieve a list of Application Records, which store information related to executed queries within Lowcoder and the current Organization / Workspace by the impersonated User" |
| 43 | + ) |
| 44 | + @GetMapping |
| 45 | + public Mono<ResponseView<Map<String, Object>>> dslById(@RequestParam(name = "ApplicationId") String ApplicationId, |
| 46 | + @RequestParam(name = "ApplicationRecordId") String ApplicationRecordId); |
| 47 | + |
| 48 | +} |
0 commit comments