GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - puumCore/Regulations: A way for visitors to the national park with KWS parks rules & regulations including a map of the park

BranchesTags
Open more actions menu

Latest commit

 

History

23 Commits
23 Commits

Folders and files

NameName
Last commit message
Last commit date
.idea
.idea
 
 
gradle/wrapper
gradle/wrapper
 
 
src
src
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
HELP.md
HELP.md
 
 
KWS_API
KWS_API
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle
settings.gradle
 
 

Repository files navigation

Regulations

A way for visitors to the national park with KWS parks rules & regulations including a map of the park.

Details

Please note that the information here is purely technical!

This is spring boot 3.0 microservice project which uses MongoDB as its datasource.

Database

The database name is kws_regulations_sys which is secured with the developer & kwsClient roles.

Database

The following is a description for the collections existing in the database as of now.

1. Accounts

Primary use is for IAM features.

Expected document entry. Documents

Indexes used. Index

Validation rules used. Validation

The following is the accurate description of validation rules used.

{
  $jsonSchema: {
    bsonType: 'object',
    required: [
      'name',
      'phone',
      'role',
      'username',
      'password',
      'isAuthenticated',
      'isAuthorised'
    ],
    properties: {
      name: {
        bsonType: 'string',
        description: 'The fullname should be a string'
      },
      phone: {
        bsonType: 'string',
        description: 'The phone number should be a string'
      },
      role: {
        bsonType: 'string',
        'enum': [
          'ADMIN',
          'GATE',
          'PATROL'
        ],
        description: 'Valid roles are Admin, Gate & Patrol. Check with developer on this'
      },
      username: {
        bsonType: 'string'
      },
      password: {
        bsonType: 'string'
      },
      isAuthenticated: {
        bsonType: 'bool',
        description: 'The authentication status should be a boolean'
      },
      isAuthorised: {
        bsonType: 'bool',
        description: 'The authorization status should be a boolean'
      }
    }
  },
  $and: [
    {
      name: {
        $nin: [
          null,
          ''
        ]
      },
      phone: {
        $nin: [
          null,
          ''
        ]
      },
      role: {
        $nin: [
          null,
          ''
        ]
      },
      username: {
        $nin: [
          null,
          ''
        ]
      },
      password: {
        $nin: [
          null,
          ''
        ]
      },
      isAuthenticated: {
        $nin: [
          null
        ]
      },
      isAuthorised: {
        $nin: [
          null
        ]
      }
    }
  ]
}

2. Logs

Records of http listener audit events.

Expected document entry. Documents

Indexes used. Index

3. Visits

Records of customers who have visited the park.

Expected document entry. Documents

Validation rules used. Validation

The following is the accurate description of validation rules used.

{
  $jsonSchema: {
    bsonType: 'object',
    required: [
      'timestamp',
      'session',
      'plates',
      'passengers',
      'phone',
      'account'
    ],
    properties: {
      timestamp: {
        bsonType: 'date'
      },
      session: {
        bsonType: 'string',
        'enum': [
          'MORNING',
          'EVENING',
          'FULL_DAY'
        ],
        description: 'Valid sessions are Morning, Evening & Full day. Check with developer on this'
      },
      plates: {
        bsonType: 'string'
      },
      passengers: {
        bsonType: 'int'
      },
      phone: {
        bsonType: 'string',
        description: 'The phone number should be a string'
      },
      account: {
        bsonType: 'object',
        required: [
          'name',
          'phone',
          'role',
          'username'
        ],
        properties: {
          name: {
            bsonType: 'string',
            description: 'The fullname should be a string'
          },
          phone: {
            bsonType: 'string',
            description: 'The phone number should be a string'
          },
          role: {
            bsonType: 'string',
            'enum': [
              'ADMIN',
              'GATE',
              'PATROL'
            ],
            description: 'Valid roles are Admin, Gate & Patrol. Check with developer on this'
          },
          username: {
            bsonType: 'string'
          }
        }
      }
    }
  },
  $and: [
    {
      timestamp: {
        $nin: [
          null
        ]
      },
      session: {
        $nin: [
          null,
          ''
        ]
      },
      plates: {
        $nin: [
          null,
          ''
        ]
      },
      passengers: {
        $nin: [
          null
        ],
        $gt: 0
      },
      phone: {
        $nin: [
          null,
          ''
        ]
      },
      account: {
        $nin: [
          null
        ]
      }
    }
  ]
}

4. One Time Passwords (OTP)

Records of generated OTPS with the user to whom it was generated for.

Expected document entry. Document

Validation rules used. Validation

The following is the accurate description of validation rules used

{
  $jsonSchema: {
    required: [
      'passwordCode',
      'accountId',
      'expiry',
      'deactivated'
    ],
    properties: {
      passwordCode: {
        bsonType: 'int'
      },
      accountId: {
        bsonType: 'binData'
      },
      expiry: {
        bsonType: 'date'
      },
      deactivated: {
        bsonType: 'bool'
      }
    }
  },
  $and: [
    {
      passwordCode: {
        $nin: [
          0,
          null
        ]
      },
      accountId: {
        $nin: [
          null
        ]
      },
      expiry: {
        $nin: [
          null
        ]
      },
      deactivated: {
        $nin: [
          null
        ]
      }
    }
  ]
}

About

A way for visitors to the national park with KWS parks rules & regulations including a map of the park

Topics

java-17spring-bootspring-securitywildlife

Resources

Readme
Activity

Stars

2 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.