Skip to content

Commit

Permalink
MOSIP-18085: Generated openapi.json for IDA- Authentication, Internal…
Browse files Browse the repository at this point in the history
…, OTP Service (#714)

* MOSIP-18085: Upgraded swagger2 to openapi3 for authentication service

* MOSIP-18085: Upgraded swagger2 to openapi3 for Id Authentication Internal Service

* MOSIP-18085: Added Authorization headers

* MOSIP-18085: Added Authorization headers in internal service

* MOSIP-18085: Upgraded swagger to openapi for otp services.

* MOSIP-18085: Added header in kyc and fixed sorting tags.

* MOSIP-18085: Removed common properties for sorting of openapi tags.

* MOSIP-18085: Generated openapi.json for IDA- Authentication Service

* MOSIP-18085: Code Reformat

* MOSIP-18085: Generate openapi.json for IDA-OTP service.

* MOSIP-18085: Generate openapi.json for IDA-Internal service.

* MOSIP-18085: Removed extra properties from authentication-internal-service test folder.

* MOSIP-18085: Removed extra properties from authentication-internal-service test folder.
  • Loading branch information
kameshsr authored Dec 16, 2021
1 parent 89778eb commit dd6bc0c
Show file tree
Hide file tree
Showing 8 changed files with 1,939 additions and 377 deletions.
94 changes: 94 additions & 0 deletions authentication/authentication-internal-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,98 @@
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>openapi-doc-generate-profile</id>
<dependencies>
<dependency>
<groupId>io.mosip.kernel</groupId>
<artifactId>kernel-auth-adapter</artifactId>
<version>1.2.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>io.mosip.authentication</groupId>
<artifactId>authentication-childauthfilter-impl</artifactId>
<version>1.2.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>io.mosip.biosdk</groupId>
<artifactId>biosdk-client</artifactId>
<version>1.2.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>io.mosip.demosdk</groupId>
<artifactId>demosdk-client</artifactId>
<version>1.2.0-SNAPSHOT</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring.boot.version}</version>
<configuration>
<executable>true</executable>
<layout>ZIP</layout>
<wait>1000</wait>
<maxAttempts>180</maxAttempts>
</configuration>
<executions>
<execution>
<id>pre-integration-test</id>
<goals>
<goal>start</goal>
</goals>
<configuration>
<folders>
<folder>src/test/resources</folder>
</folders>
<profiles>
<profile>openapi-profile</profile>
</profiles>
<arguments>
<argument>--server.port=8090</argument>
<argument>--server.servlet.context-path=/app/generic</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>post-integration-test</id>
<goals>
<goal>stop</goal>
</goals>
</execution>
<execution>
<goals>
<goal>build-info</goal>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-maven-plugin</artifactId>
<version>0.2</version>
<executions>
<execution>
<id>integration-test</id>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<apiDocsUrl>http://localhost:8090/app/generic/v3/api-docs/Id%20Authentication%20Internal%20Service
</apiDocsUrl>
<outputFileName>openapi.json</outputFileName>
<outputDir>${project.build.directory}</outputDir>
<skip>false</skip>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,116 +1,120 @@
{
"ida-mapping": {
"name": [
"fullName"
],
"dob": [
"dateOfBirth"
],
"dobType": [
"dateOfBirthType"
],
"age": [
"dateOfBirth"
],
"gender": [
"gender"
],
"phoneNumber": [
"phone"
],
"emailId": [
"email"
],
"addressLine1": [
"addressLine1"
],
"addressLine2": [
"addressLine2"
],
"addressLine3": [
"addressLine3"
],
"location1": [
"city"
],
"location2": [
"region"
],
"location3": [
"province"
],
"postalCode": [
"postalCode"
],
"fullAddress": [
"addressLine1",
"addressLine2",
"addressLine3",
"city",
"region",
"province",
"postalCode"
],
"otp": [
"otp"
],
"pin": [
"pin"
],
"leftIndex": [
"FINGER_Left IndexFinger_2"
],
"leftLittle": [
"FINGER_Left LittleFinger_2"
],
"leftMiddle": [
"FINGER_Left MiddleFinger_2"
],
"leftRing": [
"FINGER_Left RingFinger_2"
],
"leftThumb": [
"FINGER_Left ThumbFinger_2"
],
"rightIndex": [
"FINGER_Right IndexFinger_2"
],
"rightLittle": [
"FINGER_Right LittleFinger_2"
],
"rightMiddle": [
"FINGER_Right MiddleFinger_2"
],
"rightRing": [
"FINGER_Right RingFinger_2"
],
"rightThumb": [
"FINGER_Right ThumbFinger_2"
],
"leftEye": [
"IRIS_Left_9"
],
"rightEye": [
"IRIS_Right_9"
],
"iris": [
"leftEye",
"rightEye"
],
"fingerprint": [
"leftIndex",
"leftLittle",
"leftMiddle",
"leftRing",
"leftThumb",
"rightIndex",
"rightLittle",
"rightMiddle",
"rightRing",
"rightThumb"
],
"face": [
"FACE"
]
"identity": {
"IDSchemaVersion": {
"value": "IDSchemaVersion"
},
"name": {
"value": "fullName"
},
"gender": {
"value": "gender"
},
"dob": {
"value": "dateOfBirth"
},
"age": {
"value": "age"
},
"introducerRID": {
"value": "introducerRID"
},
"introducerUIN": {
"value": "introducerUIN"
},
"introducerVID": {
"value": "introducerVID"
},
"introducerName": {
"value": "introducerName"
},
"phone": {
"value": "phone"
},
"phoneNumber": {
"value": "phone"
},
"email": {
"value": "email"
},
"emailId": {
"value": "email"
},
"uin": {
"value": "UIN"
},
"individualBiometrics": {
"value": "individualBiometrics"
},
"introducerBiometrics": {
"value": "introducerBiometrics"
},
"individualAuthBiometrics": {
"value": "individualAuthBiometrics"
},
"officerBiometricFileName": {
"value": "officerBiometricFileName"
},
"supervisorBiometricFileName": {
"value": "supervisorBiometricFileName"
},
"residenceStatus": {
"value": "residenceStatus"
},
"preferredLanguage": {
"value": "preferredLang"
},
"locationHierarchyForProfiling": {
"value": "zone,postalCode"
},
"addressLine1": {
"value": "addressLine1"
},
"addressLine2": {
"value": "addressLine2"
},
"addressLine3": {
"value": "addressLine3"
},
"location1": {
"value": "city"
},
"location2": {
"value": "region"
},
"location3": {
"value": "province"
},
"postalCode": {
"value": "postalCode"
},
"location4": {
"value": "zone"
},
"fullAddress": {
"value": "addressLine1,addressLine2,addressLine3,city,region,province,postalCode"
}
},
"metaInfo": {
"value": "metaInfo"
},
"audits": {
"value": "audits"
},
"documents": {
"poa": {
"value": "proofOfAddress"
},
"poi": {
"value": "proofOfIdentity"
},
"por": {
"value": "proofOfRelationship"
},
"pob": {
"value": "proofOfDateOfBirth"
},
"poe": {
"value": "proofOfException"
}
}
}
Loading

0 comments on commit dd6bc0c

Please sign in to comment.