/COMS6156UI

Primary LanguageJavaScript

API Gateway

  • Swagger
      ---
    swagger: "2.0"
    info:
      version: "1.0.0"
      title: "Pet Adoption API"
    host: "b8gke3dl56.execute-api.us-east-1.amazonaws.com"
    basePath: "/test"
    schemes:
    - "https"
    paths:
      /Pets:
        get:
          produces:
          - "application/json"
          responses:
            "200":
              description: "200 response"
      /adopter/create:
        post:
          produces:
          - "application/json"
          responses:
            "200":
              description: "200 response"
      /adopter/{adopter_id}:
        get:
          produces:
          - "application/json"
          parameters:
          - name: "adopter_id"
            in: "path"
            required: true
            type: "string"
          responses:
            "200":
              description: "200 response"
        put:
          produces:
          - "application/json"
          parameters:
          - name: "adopter_id"
            in: "path"
            required: true
            type: "string"
          responses:
            "200":
              description: "200 response"
        delete:
          produces:
          - "application/json"
          parameters:
          - name: "adopter_id"
            in: "path"
            required: true
            type: "string"
          responses:
            "200":
              description: "200 response"
      /adopters:
        get:
          produces:
          - "application/json"
          responses:
            "200":
              description: "200 response"
      /create:
        post:
          produces:
          - "application/json"
          responses:
            "200":
              description: "200 response"
      /createpetowner:
        post:
          produces:
          - "application/json"
          responses:
            "200":
              description: "200 response"
      /delete/{id}:
        delete:
          produces:
          - "application/json"
          parameters:
          - name: "id"
            in: "path"
            required: true
            type: "string"
          responses:
            "200":
              description: "200 response"
      /deletepetowner/{id}:
        delete:
          produces:
          - "application/json"
          parameters:
          - name: "id"
            in: "path"
            required: true
            type: "string"
          responses:
            "200":
              description: "200 response"
      /getowner/{id}:
        get:
          produces:
          - "application/json"
          parameters:
          - name: "id"
            in: "path"
            required: true
            type: "string"
          responses:
            "200":
              description: "200 response"
      /update_to_white/{id}:
        put:
          produces:
          - "application/json"
          parameters:
          - name: "id"
            in: "path"
            required: true
            type: "string"
          responses:
            "200":
              description: "200 response"
      /updatepetowner/{id}:
        put:
          produces:
          - "application/json"
          parameters:
          - name: "id"
            in: "path"
            required: true
            type: "string"
          responses:
            "200":
              description: "200 response"

Auth-Middleware

(This project enables user registration and login through AWS Cognito user pools. It includes JavaScript middleware for straightforward integration with the AWS Cognito SDK package)

  • User Registration: New users can register, complete with email verification (SSO provider: AWS Cognito).
  • User Login:Existing users can securely log in using AWS Cognito.

S3 Front-end Static Website