Public
Documentation Settings

Poppop

SSAFY 8기 스푼라디오 채용연계팀 S102의 앱 Poppop에 사용되는 API 문서 입니다.

UserController

사용자 관련 API 목록 입니다.

POST인증번호 발송

https://k8s102.p.ssafy.io/api/user/send-auth
PARAMS
Bodyraw (json)
json
{
    "countryNumber": "string",
    "phoneNumber": "string"
}
Example Request
curl
curl --location 'https://k8s102.p.ssafy.io/api/user/send-auth' \
--data '{
    "countryNumber" : "82",
    "phoneNumber" : "01073071075"
}'
200 OK
Example Response
plain
Successfully sent auth code.
Server

nginx/1.18.0 (Ubuntu)

Date

Mon, 15 May 2023 04:26:06 GMT

Content-Type

text/plain;charset=UTF-8

Content-Length

28

Connection

keep-alive

Vary

Origin

Vary

Access-Control-Request-Method

Vary

Access-Control-Request-Headers

X-Content-Type-Options

nosniff

X-XSS-Protection

1; mode=block

Cache-Control

no-cache, no-store, max-age=0, must-revalidate

Pragma

no-cache

Expires

0

X-Frame-Options

DENY

POST인증번호 검증

https://k8s102.p.ssafy.io/api/user/check-auth
Bodyraw (json)
json
{
    "countryNumber": "string",
    "phoneNumber": "string",
    "authCode": "string"
}
Example Request
curl
curl --location 'https://k8s102.p.ssafy.io/api/user/check-auth' \
--data '{
    "countryNumber" : "82",
    "phoneNumber" : "01073071075",
    "authCode" : "7274"
}'
200 OK
Example Response
json
{
  "accessToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJBY2Nlc3NUb2tlbiIsImlhdCI6MTY4NDEyNTAzNiwiZXhwIjoxNjg0MTY4MjM2LCJ1c2VySWQiOjF9.nnlJK_a041WRhVS4-alrPyr-2Ej0JcoRBRdd8snYgTihsVsUWSQKFbJH14gleKPIdXFlGNg9xSLq24qiABeCnw",
  "refreshToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJSZWZyZXNoVG9rZW4iLCJpYXQiOjE2ODQxMjUwMzYsImV4cCI6MTY4NjcxNzAzNiwidXNlcklkIjoxfQ.gD0zNSI3T96Atn4NosEMVODV-5WiicEUiQNjGkb9MSMX8af7jh1hbkHqH_WV4NDvt5T_aBDNgCGRo5JcCgZllA",
  "userId": 1
}
Server

nginx/1.18.0 (Ubuntu)

Date

Mon, 15 May 2023 04:30:36 GMT

Content-Type

application/json

Transfer-Encoding

chunked

Connection

keep-alive

Vary

Origin

Vary

Access-Control-Request-Method

Vary

Access-Control-Request-Headers

X-Content-Type-Options

nosniff

X-XSS-Protection

1; mode=block

Cache-Control

no-cache, no-store, max-age=0, must-revalidate

Pragma

no-cache

Expires

0

X-Frame-Options

DENY

POST회원가입

https://k8s102.p.ssafy.io/api/user/sign-up
Bodyraw (json)
json
{
    "userFirstName": "string",
    "userLastName": "string",
    "countryNumber": "string",
    "phoneNumber": "string",
    "authCode": "string"
}
Example Request
curl
curl --location 'https://k8s102.p.ssafy.io/api/user/sign-up' \
--data '{
    "userFirstName" : "Jake",
    "userLastName" : "Miller",
    "countryNumber" : "1",
    "phoneNumber" : "8821101172",
    "authCode" : "7121"
}'
200 OK
Example Response
json
{
  "accessToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJBY2Nlc3NUb2tlbiIsImlhdCI6MTY4NDEyNTYzOSwiZXhwIjoxNjg0MTY4ODM5LCJ1c2VySWQiOjE4fQ.ZxvHhzaye9r4sw0-0pAbwy1RrFq3uGPOZ3fT94RgNCpMTQ4r0M__GJQEn-pLPtzBZm3246Ho7LEKrgmyZfjHFg",
  "refreshToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJSZWZyZXNoVG9rZW4iLCJpYXQiOjE2ODQxMjU2MzksImV4cCI6MTY4NjcxNzYzOSwidXNlcklkIjoxOH0.ubwpJT2toRNneQBLw0f5XowAhjArrp7aOpbsw1_2hJeFUQX-4xBfa5nVQLv4iQOH9kuLx_kHvQKgeIYuGlG3qw",
  "userId": 18
}
Server

nginx/1.18.0 (Ubuntu)

Date

Mon, 15 May 2023 04:40:39 GMT

Content-Type

application/json

Transfer-Encoding

chunked

Connection

keep-alive

Vary

Origin

Vary

Access-Control-Request-Method

Vary

Access-Control-Request-Headers

X-Content-Type-Options

nosniff

X-XSS-Protection

1; mode=block

Cache-Control

no-cache, no-store, max-age=0, must-revalidate

Pragma

no-cache

Expires

0

X-Frame-Options

DENY