토픽 CRUD

토픽 생성 수정 삭제 api

토픽 목록

GET https://api.mint-app.com/v1/topic

Query Parameters

NameTypeDescription

last_key

string

마지막 토픽의 아이디 (cursor 방식)

{
    "result": "success",
    "data": [
        {
            "updated_at": "2021-08-27 14:03:43",
            "count": 0,
            "is_cancel": true,
            "created_at": "2021-08-26 16:28:09",
            "timestamp": 1629962889246,
            "project_key": 4,
            "is_deletable": true,
            "id": "9c72a751-d97e-4135-b191-9386b8f5cd00",
            "name": "남성 토픽",
            "type": "gender_male",
            "desc": "남성 사용자들 구독"
        },...
    ]
}

sample

curl --location --request POST 'https://api.mint-app.com/v1/topic/' \
--header 'Accept: application/json' \
--header 'api-key: {api-key}' \
--header 'api-secret: {api-sercret}' \
--header 'Content-Type: application/json'

토픽 생성

POST https://api.mint-app.com/v1/topic

Request Body

NameTypeDescription

desc

string

토픽설명

type

string

토픽종류 이름

name

string

토픽이름

{
    "result": "success",
    "data": {
        "id": "ba719487-6ab2-4c87-982c-46680cf728e7",
        "project_key": 4,
        "is_cancel": true,
        "is_deletable": true,
        "name": "토픽 테스트",
        "desc": "토픽 테스트 설명",
        "count": 0,
        "timestamp": 1631857396686,
        "type": "topic1",
        "updated_at": "2021-09-17 14:43:16",
        "created_at": "2021-09-17 14:43:16"
    }
}

sample

curl --location --request POST 'https://api.mint-app.com/v1/topic/' \
--header 'Accept: application/json' \
--header 'api-key: {api-key}' \
--header 'api-secret: {api-sercret}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'type=topic' \
--data-urlencode 'name=토픽 테스트11' \
--data-urlencode 'desc=토픽 테스트 설명222'

토픽 상세 정보

GET https://api.mint-app.com/v1/topic/{topicId}

Path Parameters

NameTypeDescription

topicId

string

토픽아이디

{
    "result": "success",
    "data": [
        {
            "updated_at": "2021-08-27 14:03:43",
            "count": 0,
            "is_cancel": true,
            "created_at": "2021-08-26 16:28:09",
            "timestamp": 1629962889246,
            "project_key": 4,
            "is_deletable": true,
            "id": "9c72a751-d97e-4135-b191-9386b8f5cd00",
            "name": "남성 토픽",
            "type": "gender_male",
            "desc": "남성 사용자들 구독"
        },...
    ]
}

sample

curl --location --request POST 'https://api.mint-app.com/v1/topic/ba719487-6ab2-4c87-982c-46680cf728e7' \
--header 'Accept: application/json' \
--header 'api-key: {api-key}' \
--header 'api-secret: {api-sercret}' \
--header 'Content-Type: application/json'

토픽 정보 수정

PUT https://api.mint-app.com/v1/topic/{topicId}/update

Path Parameters

NameTypeDescription

topicId

string

토픽 아이디

Request Body

NameTypeDescription

name

string

토픽이름

desc

string

토픽 설명

{
    "result": "success",
    "data": {
        "id": "ba719487-6ab2-4c87-982c-46680cf728e7",
        "project_key": 4,
        "is_cancel": true,
        "is_deletable": true,
        "name": "토픽 테스트",
        "desc": "토픽 테스트 설명",
        "count": 0,
        "timestamp": 1631857396686,
        "type": "topic1",
        "updated_at": "2021-09-17 14:43:16",
        "created_at": "2021-09-17 14:43:16"
    }
}

sample

curl --location --request PUT 'https://api.mint-app.com/v1/topic/ba719487-6ab2-4c87-982c-46680cf728e7/update' \
--header 'Accept: application/json' \
--header 'api-key: {api-key}' \
--header 'api-secret: {api-sercret}' \
--header 'Content-Type: application/json'

토픽 정보 수정

DELETE https://api.mint-app.com/v1/topic/{topicId}/destory

Path Parameters

NameTypeDescription

topicId

string

{
    "result": "success",
    "data": true
}

sample

curl --location --request DELETE 'https://api.mint-app.com/v1/topic/ba719487-6ab2-4c87-982c-46680cf728e7/update' \
--header 'Accept: application/json' \
--header 'api-key: {api-key}' \
--header 'api-secret: {api-sercret}' \
--header 'Content-Type: application/json'

Last updated