8000 GitHub - Club-PARD/UJaCha_SERVER: 미래 사회문제 해결 해커톤_조현병 조기진단 서비스
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Club-PARD/UJaCha_SERVER

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UJaCha_server



조현병 조기 진단 서비스, tune


⚙️ 기술 스택

Spring AWS_EC2 MySQL
sp ec2 pm

💽 자료구조


member

member_id (PK) (BIGINT) (AUTO_INCREMENT)
uid (VARCHAR(255))
email (VARCHAR(255))
nickname (VARCHAR(255))
reliable_uid (VARCHAR(255))
child_age (INT)

test

test_id (PK) (INT) (AUTO_INCREMENT)
hallucination (INT)
abnormal_behavior (INT)
moody (INT)
delusion (INT)
total (INT) 
date (DATE)

member_id (BIGINT) (FK)

📌 주요 기능


🔗URL

API SWAGGER



👨‍👩‍👦‍👦Member

로그인 : api/member/login (POST)
  • Request body
  • {
      "email": "string",
      "uid": "string"
    }
  • Response body
  • {
      "token": "string",
      "exprTime": 0,
      "first": true
    }    
회원가입 : api/member/first (POST)
  • Request body
  • {
      "nickname": "string",
      "childAge": 0,
      "uid": "string"
    }
  • Response body
  • string(token 값)
    
업데이트 : api/member/update (POST)
  • Request header
  • {
      "Authorization": "String",
      "Content-Type": "application/json"
    }
  • Request body
  • {
      "nickname": "string",
      "reliableName": "string",
      "childAge": 0
    }
  • Response body
  •    "업데이트 성공"  
회원 조회 : api/member (GET)
  • Request header
  • {
      "Authorization": "String",
      "Content-Type": "application/json"
    }
  • Response body
  • {
      "uid": "string",
      "email": "string",
      "nickname": "string",
      "reliableName": "string",
      "childAge": 0,
      "test": [
        {
          "testId": 0,
          "hallucination": 0,
          "abnormalBehavior": 0,
          "moody": 0,
          "delusion": 0,
          "total": 0,
          "date": "2024-02-16"
        }
      ]
    } 
남의 정보 조회 : api/member/reliable (GET)
  • Request header
  • {
      "Authorization": "String",
      "Content-Type": "application/json"
    }
  • Response body
  • {
      "uid": "string",
      "email": "string",
      "nickname": "string",
      "reliableName": "string",
      "childAge": 0,
      "test": [
        {
          "testId": 0,
          "hallucination": 0,
          "abnormalBehavior": 0,
          "moody": 0,
          "delusion": 0,
          "total": 0,
          "date": "2024-02-16"
        }
      ]
    } 
닉네임 중복확인 : api/member/duplicate (GET)
  • RequestParam
  • ?name="string
    
  • Response body
  • boolean
    
멤버 삭제 : api/member/delete (DELETE)
  • Request header
  • {
      "Authorization": "String",
      "Content-Type": "application/json"
    }
  • Response body
  • "삭제 되었습니다."
    

✍️ Test

TEST(로그인 후) : api/test (POST)
  • Request Header
  • {
      "Authorization": "String",
      "Content-Type": "application/json"
    }
  • Request Body
  • {
      "question1": 0,
      "question2": 0,
      "question3": 0,
      "question4": 0,
      "question5": 0,
      "question6": 0,
      "question7": 0,
      "question8": 0,
      "question9": 0,
      "question10": 0,
      "question11": 0,
      "question12": 0
    }
  • Response body
  • {
      "testId": 0,
      "hallucination": 0,
      "abnormalBehavior": 0,
      "moody": 0,
      "delusion": 0,
      "total": 0,
      "date": "2024-02-16"
    }
TEST(로그인 전)(DB에 저장안됨): api/test/first(POST)
  • Request Body
  • {
      "question1": 0,
      "question2": 0,
      "question3": 0,
      "question4": 0,
      "question5": 0,
      "question6": 0,
      "question7": 0,
      "question8": 0,
      "question9": 0,
      "question10": 0,
      "question11": 0,
      "question12": 0
    }
  • Response Body
  • {
      "hallucination": 0,
      "abnormalBehavior": 0,
      "moody": 0,
      "delusion": 0,
      "total": 0
    }
오늘 테스트 했는지 안 했는지 확인 :api/test/exist-today (GET)
  • Request Header
  • {
      "Authorization": "String",
      "Content-Type": "application/json"
    }
  • Response body
  • boolean
    

About

미래 사회문제 해결 해커톤_조현병 조기진단 서비스

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0