" dependencies " : {
" aws-sdk " : " ^2.817.0" ,
" clean-css " : " ~4.1.11" ,
" constantinople " : " ~3.1.1" ,
" cookie-parser " : " ~1.4.4" ,
" cors " : " ^2.8.5" ,
" debug " : " ~2.6.9" ,
" express " : " ~4.16.1" ,
" http-errors " : " ~1.6.3" ,
" install " : " ^0.13.0" ,
" jsonwebtoken " : " ^8.5.1" ,
" multer " : " ^1.4.2" ,
" multer-s3 " : " ^2.9.0" ,
" mysql2 " : " ^2.2.5" ,
" sequelize " : " ^6.3.5" ,
" sequelize-cli " : " ^6.2.0"
}
π¨π»βπ€βπ¨π» Database Relationship
// 1 : N κ΄κ³ User : Activity
db . User . hasMany ( db . Activity , { onDelete : 'cascade' } ) ;
db . Activity . belongsTo ( db . User ) ;
// 1 : N κ΄κ³ User : Education
db . User . hasMany ( db . Education , { onDelete : 'cascade' } ) ;
db . Education . belongsTo ( db . User ) ;
// 1 : N κ΄κ³ Activity : QuestionCard
db . Activity . hasMany ( db . QuestionCard , { onDelete : 'cascade' } ) ;
db . QuestionCard . belongsTo ( db . Activity ) ;
// 1 : N κ΄κ³ Activity : Hashtag
db . Activity . hasMany ( db . Hashtag , { onDelete : 'cascade' } ) ;
db . Hashtag . belongsTo ( db . Activity ) ;
μ°λ¦¬ μλΉμ€μ ν΅μ¬μ λ°λ±μ λΆ λ¨μ΄μ§ μ·¨μ€μμκ² μ§λ¬Έμ ν΅ν΄ μ·¨μ€μ, λνμ νλ μ 리 κΈ°λ₯μ μ 곡 νλ κ²μ΄λ€.
κ·Έλ κΈ°μ μ°λ¦¬μ ν΅μ¬ κΈ°λ₯μ μ§λ¬Έλ€κ³Ό κ·Έμ λν λ΅λ³μ ν΅ν΄μ μ¬μ©μκ° μμ μ νλμ λμ± κ΅¬μ²΄νν μ μκ²νκ³ κ·Έκ²μ κΈ°λ‘ ν΄μ£Όλ κ²μ΄λ€.
κ·Έλ¦¬κ³ μ΄λ κ² κ΅¬μ²΄νν νλλ€μ νμμ λ°λΌμ μ¬μ©μκ° μ°Ύμλ³Ό μ μμ΄μΌνκΈ°μ κ° μ‘°κ±΄μ λ°λ₯Έ νν°λ§ κΈ°λ₯ λν μ°λ¦¬μ ν΅μ¬ κΈ°λ₯μ΄λ€.
Method
Sumary
GET
μμ±ν΄λμ Question Card μ‘°ν
POST
μ€μΏ± μ μ₯ λλ₯Ό λ Question Card μ μ₯
PUT
μ€μΏ± μμ λλ₯Ό λ μμ±ν΄λμ Question Card μμ
GET
λͺ¨μ보기μμ 쑰건μ λ°λΌμ νλμ νν°λ§ν΄μ λͺ¨μ보기
λ°μ΄ν°λ² μ΄μ€ μ€κ³
νλ μ 보μ μ₯ [POST]
μ€μΏ± μ μ₯ λλ₯Όλλ§λ€ Question Card [POST]
Question [GET]
μμ±ν΄λμ Question Card [GET]
μμ±ν΄λμ Question Card Update [PUT]
νλ ν΄λ¦μ, νλλ³ Data [Get]
API λͺ
μΈμ μμ±
νμκ°μ
[POST]
λ‘κ·ΈμΈ [POST]
ν΄μνκ·Έ μμ± [POST]
μ μ λ³ νλ Data μ 체 [GET]
μ¦κ²¨μ°ΎκΈ° Update [PUT]
μ¦κ²¨μ°ΎκΈ° νλ μ 체 [GET]
μ μ λ³ μ 체 ν΄μν
κ·Έ [GET]
νλ νν°λ§ λͺ¨μ보기 [GET]
μν€ν
μ³ μμ±
πLINK