Skip to content

Commit

Permalink
rename utmsp to digitalskyserviceprovider; standardise api tag case; …
Browse files Browse the repository at this point in the history
…refactor demo scenario functions into testutils
  • Loading branch information
sayandeep-ai committed Jan 4, 2024
1 parent 898baeb commit 3eb5527
Show file tree
Hide file tree
Showing 12 changed files with 680 additions and 680 deletions.
8 changes: 5 additions & 3 deletions reference-implementation/TODO.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# TODO

## DAO
## TDD

1. [x] Match DAO classes to schemas
1. [x] Add Enums
Expand All @@ -13,5 +13,7 @@
1. [-] Operator xx_xx
1. [-] User x____
1. [-] Pilot x___
1. [-] Utmsp xx_xx
1. [-] E2E Tests x____
1. [-] DigitalSkyServiceProvider xx_xx
1. [-] E2E Tests
1. [-] Scenario 1
1. [ ] Scenario 2

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package in.ispirt.pushpaka.registry.api;

import in.ispirt.pushpaka.registry.models.Utmsp;
import in.ispirt.pushpaka.registry.models.DigitalSkyServiceProvider;
import java.util.List;
import java.util.Map;
import java.util.Optional;
Expand Down Expand Up @@ -29,11 +29,11 @@
)
@Controller
@RequestMapping("${openapi.pushpakaRegistry.base-path:/api/v1}")
public class UtmspApiController implements UtmspApi {
public class DigitalSkyServiceProviderApiController implements DigitalSkyServiceProviderApi {
private final NativeWebRequest request;

@Autowired
public UtmspApiController(NativeWebRequest request) {
public DigitalSkyServiceProviderApiController(NativeWebRequest request) {
this.request = request;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
date = "2023-09-07T22:13:29.143496+05:30[Asia/Kolkata]"
)
@Validated
@Tag(name = "legal_entity", description = "Legal Entity")
@Tag(name = "legalEntities", description = "Legal Entity")
public interface LegalEntityApi {
default Optional<NativeWebRequest> getRequest() {
return Optional.empty();
Expand All @@ -59,7 +59,7 @@ default Optional<NativeWebRequest> getRequest() {
operationId = "addLegalEntity",
summary = "Add a new legalEntity to the store",
description = "Add a new legalEntity to the store",
tags = { "legal_entity" },
tags = { "legalEntities" },
responses = {
@ApiResponse(
responseCode = "200",
Expand Down Expand Up @@ -130,7 +130,7 @@ default ResponseEntity<LegalEntity> addLegalEntity(
operationId = "deleteLegalEntity",
summary = "Deletes a legalEntity",
description = "",
tags = { "legal_entity" },
tags = { "legalEntities" },
responses = {
@ApiResponse(responseCode = "400", description = "Invalid legalEntity value")
},
Expand Down Expand Up @@ -159,7 +159,7 @@ default ResponseEntity<Void> deleteLegalEntity(
@Operation(
operationId = "findLegalEntitys",
summary = "Finds LegalEntitys",
tags = { "legal_entity" },
tags = { "legalEntities" },
responses = {
@ApiResponse(
responseCode = "200",
Expand Down Expand Up @@ -219,7 +219,7 @@ default ResponseEntity<List<LegalEntity>> findLegalEntitys() {
operationId = "getLegalEntityById",
summary = "Find legalEntity by ID",
description = "Returns a single legalEntity",
tags = { "legal_entity" },
tags = { "legalEntities" },
responses = {
@ApiResponse(
responseCode = "200",
Expand Down Expand Up @@ -284,7 +284,7 @@ default ResponseEntity<LegalEntity> getLegalEntityById(
operationId = "updateLegalEntity",
summary = "Updates a legalEntity in the store",
description = "",
tags = { "legal_entity" },
tags = { "legalEntities" },
responses = { @ApiResponse(responseCode = "405", description = "Invalid input") },
security = { @SecurityRequirement(name = "jwt") }
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
date = "2023-09-07T22:13:29.143496+05:30[Asia/Kolkata]"
)
@Validated
@Tag(name = "repairAgencys", description = "RepairAgencys")
@Tag(name = "repairAgencies", description = "RepairAgencies")
public interface RepairAgencyApi {
default Optional<NativeWebRequest> getRequest() {
return Optional.empty();
Expand All @@ -59,7 +59,6 @@ default Optional<NativeWebRequest> getRequest() {
operationId = "addRepairAgency",
summary = "Add a new repairAgency to the store",
description = "Add a new repairAgency to the store",
tags = { "repairAgency" },
responses = {
@ApiResponse(
responseCode = "200",
Expand Down Expand Up @@ -117,7 +116,6 @@ default ResponseEntity<RepairAgency> addRepairAgency(
operationId = "deleteRepairAgency",
summary = "Deletes a repairAgency",
description = "",
tags = { "repairAgency" },
responses = {
@ApiResponse(responseCode = "400", description = "Invalid repairAgency value")
},
Expand All @@ -138,15 +136,14 @@ default ResponseEntity<Void> deleteRepairAgency(
}

/**
* GET /repairAgency/find : Finds RepairAgencys
* GET /repairAgency/find : Finds RepairAgencies
*
* @return successful operation (status code 200)
* or Invalid value (status code 400)
*/
@Operation(
operationId = "findRepairAgencys",
summary = "Finds RepairAgencys",
tags = { "repairAgency" },
operationId = "findRepairAgencies",
summary = "Finds RepairAgencies",
responses = {
@ApiResponse(
responseCode = "200",
Expand All @@ -167,7 +164,7 @@ default ResponseEntity<Void> deleteRepairAgency(
value = "/repairAgency/find",
produces = { "application/json" }
)
default ResponseEntity<List<RepairAgency>> findRepairAgencys() {
default ResponseEntity<List<RepairAgency>> findRepairAgencies() {
// getRequest()
// .ifPresent(
// request -> {
Expand Down Expand Up @@ -206,7 +203,6 @@ default ResponseEntity<List<RepairAgency>> findRepairAgencys() {
operationId = "getRepairAgencyById",
summary = "Find repairAgency by ID",
description = "Returns a single repairAgency",
tags = { "repairAgency" },
responses = {
@ApiResponse(
responseCode = "200",
Expand Down Expand Up @@ -271,7 +267,6 @@ default ResponseEntity<RepairAgency> getRepairAgencyById(
operationId = "updateRepairAgency",
summary = "Updates a repairAgency in the store",
description = "",
tags = { "repairAgency" },
responses = { @ApiResponse(responseCode = "405", description = "Invalid input") },
security = { @SecurityRequirement(name = "jwt") }
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
date = "2023-09-07T22:13:29.143496+05:30[Asia/Kolkata]"
)
@Validated
@Tag(name = "uas_types", description = "the uas_types API")
@Tag(name = "uasTypes", description = "the uas_types API")
public interface UasTypeApi {
default Optional<NativeWebRequest> getRequest() {
return Optional.empty();
Expand All @@ -60,7 +60,7 @@ default Optional<NativeWebRequest> getRequest() {
operationId = "addUasType",
summary = "Add a new uasType to the store",
description = "Add a new uasType to the store",
tags = { "uas_types" },
tags = { "uasTypes" },
responses = {
@ApiResponse(
responseCode = "200",
Expand Down Expand Up @@ -115,7 +115,7 @@ default ResponseEntity<UasType> addUasType(
operationId = "deleteUasType",
summary = "Deletes a uasType",
description = "",
tags = { "uas_types" },
tags = { "uasTypes" },
responses = {
@ApiResponse(responseCode = "400", description = "Invalid uasType value")
},
Expand Down Expand Up @@ -143,7 +143,7 @@ default ResponseEntity<Void> deleteUasType(
@Operation(
operationId = "findUasTypes",
summary = "Finds UasTypes",
tags = { "uas_types" },
tags = { "uasTypes" },
responses = {
@ApiResponse(
responseCode = "200",
Expand Down Expand Up @@ -186,7 +186,7 @@ default ResponseEntity<List<UasType>> findUasTypes() {
operationId = "getUasTypeById",
summary = "Find uasType by ID",
description = "Returns a single uasType",
tags = { "uas_types" },
tags = { "uasTypes" },
responses = {
@ApiResponse(
responseCode = "200",
Expand Down Expand Up @@ -234,7 +234,7 @@ default ResponseEntity<UasType> getUasTypeById(
operationId = "updateUasType",
summary = "Update an existing uasType",
description = "Update an existing uasType by Id",
tags = { "uas_types" },
tags = { "uasTypes" },
responses = {
@ApiResponse(
responseCode = "200",
Expand Down
Loading

0 comments on commit 3eb5527

Please sign in to comment.