Memo

ํŠน์ • ์œ ์ €์˜ ํŠน์ • ์ด๋ฏธ์ง€์˜ ๋ฉ”๋ชจ๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.

POST https://service-stage.pic-origin.com/api/v1/users/{user_id}/images/{image_id}/memos

Path Parameters

Name
Type
Description

user_id*

String

์œ ์ €์˜ id

ex)8BfE96V8Xc

image_id*

String

์ด๋ฏธ์ง€์˜ id

ex) d06054b8-9bee-4f41-84c1-8154731094bd

Headers

Name
Type
Description

Authorization*

String

User ${Token}

Request Body

Name
Type
Description

message*

String

๋ฉ”๋ชจ ๋ฉ”์‹œ์ง€

ex)ํ…Œ์ŠคํŠธ ๋ฉ”์‹œ์ง€

is_client*

String

ํ•ด๋‹น ๋ฉ”๋ชจ์˜ ํด๋ผ์ด์–ธํŠธ ์—ฌ๋ถ€ [True, False]

ex)True

{
    "status_code": 200,
    "message": "์„ฑ๊ณต",
    "result": {
        "id": "865d2610-24ba-46ba-958c-3059769477eb",
        "user_id": "EabHTVpYYm",
        "folder_id": null,
        "filename": "20231129_160402_1a306bbbdd96228a75600f0d9ad37dd7_V00.JPEG",
        "org_path_url": "https://pillo-app-dev.s3.amazonaws.com/EabHTVpYYm/images/edit/20231129_160402_1a306bbbdd96228a75600f0d9ad37dd7_V00.JPEG?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAZEHAPJW7UBG2TATL%2F20240313%2Fap-northeast-2%2Fs3%2Faws4_request&X-Amz-Date=20240313T062146Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=75b30f8f54f5234dc2c7f60a86c0ff30cae98fb40303851b176abfa7349962c7",
        "path_url": "https://pillo-app-dev.s3.amazonaws.com/EabHTVpYYm/images/edit/20231129_160402_1a306bbbdd96228a75600f0d9ad37dd7_V00.JPEG?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAZEHAPJW7UBG2TATL%2F20240313%2Fap-northeast-2%2Fs3%2Faws4_request&X-Amz-Date=20240313T062146Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=75b30f8f54f5234dc2c7f60a86c0ff30cae98fb40303851b176abfa7349962c7",
        "lat": 37.500277,
        "lng": 127.096944,
        "address_road": "์„œ์šธ ๊ฐ•์„œ๊ตฌ ๋งˆ๊ณก์ค‘์•™6๋กœ 10",
        "address_land": "์„œ์šธ ๊ฐ•์„œ๊ตฌ ๋งˆ๊ณก๋™ 773-1",
        "address_land_number": null,
        "building_name": "๋งˆ๊ณก์—ญ์„ผํŠธ๋Ÿดํ‘ธ๋ฅด์ง€์˜ค์‹œํ‹ฐ์˜คํ”ผ์Šคํ…”",
        "address_det": "102๋™ 102ํ˜ธ",
        "created_at": "20231129_160402",
        "updated_at": "20231129_160402",
        "delete_at": null,
        "filedata_total": 0,
        "is_signed": true,
        "is_shared": false,
        "has_det": null,
        "filesize_mb": 0.12,
        "image_resource_type": "JPEG",
        "resolution": null,
        "memos": [
            {
                "id": "3seYJCmxFZ",
                "image_id": "865d2610-24ba-46ba-958c-3059769477eb",
                "message": "ํ…Œ์ŠคํŠธ์ž…๋‹ˆ๋‹ค",
                "is_client": false,
                "created_at": "20240312_140647",
                "updated_at": "20240312_140647"
            },
            {
                "id": "ACpbAGdoYt",
                "image_id": "865d2610-24ba-46ba-958c-3059769477eb",
                "message": "ํ…Œ์ŠคํŠธ์ž…๋‹ˆ๋‹ค",
                "is_client": true,
                "created_at": "20240313_152146",
                "updated_at": "20240313_152146"
            }
        ],
        "customs": [],
        "filedatas": []
    }
}
curl --location --request POST 'https://service-stage.pic-origin.com/api/v1/users/{user_id}/images/{image_id}/memos' \
--header 'Authorization: User {YOUR_TOKEN}' \
--form 'message="{YOUR_MESSAGE}"' \
--form 'is_client="{YOUR_IS_CLIENT}"'

ํŠน์ • ์œ ์ €์˜ ํŠน์ • ์ด๋ฏธ์ง€์˜ ๋ฉ”๋ชจ๋ฅผ ์กฐํšŒํ•ฉ๋‹ˆ๋‹ค.

GET https://service-stage.pic-origin.com/api/v1/users/{user_id}/images/{image_id}/memos

Path Parameters

Name
Type
Description

user_id*

String

์œ ์ €์˜ id

ex)8BfE96V8Xc

image_id*

String

์ด๋ฏธ์ง€์˜ id

ex) d06054b8-9bee-4f41-84c1-8154731094bd

Headers

Name
Type
Description

Authorization*

String

User ${Token}

{
    "status_code": 200,
    "message": "์„ฑ๊ณต",
    "result": [
        {
            "id": "JV29NEKp7J",
            "image_id": "865d2610-24ba-46ba-958c-3059769477eb",
            "message": "ํ…Œ์ŠคํŠธ์ž…๋‹ˆ๋‹ค",
            "is_client": true,
            "created_at": "20240304_104537",
            "updated_at": "20240304_104537"
        },
        {
            "id": "62NZCS2SMk",
            "image_id": "865d2610-24ba-46ba-958c-3059769477eb",
            "message": "ํ…Œ์ŠคํŠธ์ž…๋‹ˆ๋‹ค",
            "is_client": False,
            "created_at": "20240304_103702",
            "updated_at": "20240304_103702"
        }
    ]
}
curl --location --request GET'https://service-stage.pic-origin.com/api/v1/users/{user_id}/images/{image_id}/memos' \
--header 'Authorization: User {YOUR_TOKEN}' 

ํŠน์ • ์œ ์ €์˜ ํŠน์ • ์ด๋ฏธ์ง€์˜ ๋ฉ”๋ชจ๋ฅผ ์ˆ˜์ •ํ•ฉ๋‹ˆ๋‹ค.

PUT https://service-stage.pic-origin.com/api/v1/users/{user_id}/images/{image_id}/memos/{memo_id}

Path Parameters

Name
Type
Description

user_id*

String

์œ ์ €์˜ id

ex)8BfE96V8Xc

image_id*

String

์ด๋ฏธ์ง€์˜ id

ex) d06054b8-9bee-4f41-84c1-8154731094bd

memo_id*

String

๋ฉ”๋ชจ์˜ id

ex) A7iumwbv7s

Headers

Name
Type
Description

Authorization*

String

User ${Token}

Request Body

Name
Type
Description

message

String

๋ฉ”๋ชจ ๋ฉ”์‹œ์ง€

ex)ํ…Œ์ŠคํŠธ ๋ฉ”์‹œ์ง€

is_client

String

ํ•ด๋‹น ๋ฉ”๋ชจ์˜ ํด๋ผ์ด์–ธํŠธ ์—ฌ๋ถ€ [True, False]

ex)True

{
    "status_code": 200,
    "message": "์„ฑ๊ณต",
    "result": {
        "id": "865d2610-24ba-46ba-958c-3059769477eb",
        "user_id": "EabHTVpYYm",
        "folder_id": null,
        "filename": "20231129_160402_1a306bbbdd96228a75600f0d9ad37dd7_V00.JPEG",
        "org_path_url": "https://pillo-app-dev.s3.amazonaws.com/EabHTVpYYm/images/edit/20231129_160402_1a306bbbdd96228a75600f0d9ad37dd7_V00.JPEG?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAZEHAPJW7UBG2TATL%2F20240313%2Fap-northeast-2%2Fs3%2Faws4_request&X-Amz-Date=20240313T062227Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=765f82317535d65132455288a4b0a541257903d3411fabf911fd5e6f9ff26ac0",
        "path_url": "https://pillo-app-dev.s3.amazonaws.com/EabHTVpYYm/images/edit/20231129_160402_1a306bbbdd96228a75600f0d9ad37dd7_V00.JPEG?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAZEHAPJW7UBG2TATL%2F20240313%2Fap-northeast-2%2Fs3%2Faws4_request&X-Amz-Date=20240313T062227Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=765f82317535d65132455288a4b0a541257903d3411fabf911fd5e6f9ff26ac0",
        "lat": 37.500277,
        "lng": 127.096944,
        "address_road": "์„œ์šธ ๊ฐ•์„œ๊ตฌ ๋งˆ๊ณก์ค‘์•™6๋กœ 10",
        "address_land": "์„œ์šธ ๊ฐ•์„œ๊ตฌ ๋งˆ๊ณก๋™ 773-1",
        "address_land_number": null,
        "building_name": "๋งˆ๊ณก์—ญ์„ผํŠธ๋Ÿดํ‘ธ๋ฅด์ง€์˜ค์‹œํ‹ฐ์˜คํ”ผ์Šคํ…”",
        "address_det": "102๋™ 102ํ˜ธ",
        "created_at": "20231129_160402",
        "updated_at": "20231129_160402",
        "delete_at": null,
        "filedata_total": 0,
        "is_signed": true,
        "is_shared": false,
        "has_det": null,
        "filesize_mb": 0.12,
        "image_resource_type": "JPEG",
        "resolution": null,
        "memos": [
            {
                "id": "3seYJCmxFZ",
                "image_id": "865d2610-24ba-46ba-958c-3059769477eb",
                "message": "ํ…Œ์ŠคํŠธ์ž…๋‹ˆ๋‹ค",
                "is_client": false,
                "created_at": "20240312_140647",
                "updated_at": "20240312_140647"
            },
            {
                "id": "ACpbAGdoYt",
                "image_id": "865d2610-24ba-46ba-958c-3059769477eb",
                "message": "ํ…Œ์ŠคํŠธ์ž…๋‹ˆ๋‹ค์š”",
                "is_client": true,
                "created_at": "20240313_152146",
                "updated_at": "20240313_152227"
            }
        ],
        "customs": [],
        "filedatas": []
    }
}
curl --location --request PUT 'https://service-stage.pic-origin.com/api/v1/users/{user_id}/images/{image_id}/memos/{memo_id}' \
--header 'Authorization: User {YOUR_TOKEN}' \
--form 'message="{YOUR_MESSAGE}"' \
--form 'is_client="{YOUR_IS_CLIENT}"'

ํŠน์ • ์œ ์ €์˜ ํŠน์ • ์ด๋ฏธ์ง€์˜ ๋ฉ”๋ชจ๋ฅผ ์‚ญ์ œํ•ฉ๋‹ˆ๋‹ค.

DELETE https://service-stage.pic-origin.com/api/v1/users/{user_id}/images/{image_id}/memos/{memo_id}

Path Parameters

Name
Type
Description

user_id*

String

์œ ์ €์˜ id

ex)8BfE96V8Xc

image_id*

String

์ด๋ฏธ์ง€์˜ id

ex) d06054b8-9bee-4f41-84c1-8154731094bd

memo_id*

String

๋ฉ”๋ชจ์˜ id

ex) A7iumwbv7s

Headers

Name
Type
Description

Authorization*

String

User ${Token}

{
    "status_code": 200,
    "message": "์„ฑ๊ณต",
    "result": {
        "id": "865d2610-24ba-46ba-958c-3059769477eb",
        "user_id": "EabHTVpYYm",
        "folder_id": null,
        "filename": "20231129_160402_1a306bbbdd96228a75600f0d9ad37dd7_V00.JPEG",
        "org_path_url": "https://pillo-app-dev.s3.amazonaws.com/EabHTVpYYm/images/edit/20231129_160402_1a306bbbdd96228a75600f0d9ad37dd7_V00.JPEG?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAZEHAPJW7UBG2TATL%2F20240313%2Fap-northeast-2%2Fs3%2Faws4_request&X-Amz-Date=20240313T062246Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=9c548999a20b24c73fec5c7cc42151c06533dfcc7f115dd182cb46a9ecbf99bd",
        "path_url": "https://pillo-app-dev.s3.amazonaws.com/EabHTVpYYm/images/edit/20231129_160402_1a306bbbdd96228a75600f0d9ad37dd7_V00.JPEG?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAZEHAPJW7UBG2TATL%2F20240313%2Fap-northeast-2%2Fs3%2Faws4_request&X-Amz-Date=20240313T062246Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=9c548999a20b24c73fec5c7cc42151c06533dfcc7f115dd182cb46a9ecbf99bd",
        "lat": 37.500277,
        "lng": 127.096944,
        "address_road": "์„œ์šธ ๊ฐ•์„œ๊ตฌ ๋งˆ๊ณก์ค‘์•™6๋กœ 10",
        "address_land": "์„œ์šธ ๊ฐ•์„œ๊ตฌ ๋งˆ๊ณก๋™ 773-1",
        "address_land_number": null,
        "building_name": "๋งˆ๊ณก์—ญ์„ผํŠธ๋Ÿดํ‘ธ๋ฅด์ง€์˜ค์‹œํ‹ฐ์˜คํ”ผ์Šคํ…”",
        "address_det": "102๋™ 102ํ˜ธ",
        "created_at": "20231129_160402",
        "updated_at": "20231129_160402",
        "delete_at": null,
        "filedata_total": 0,
        "is_signed": true,
        "is_shared": false,
        "has_det": null,
        "filesize_mb": 0.12,
        "image_resource_type": "JPEG",
        "resolution": null,
        "memos": [
            {
                "id": "3seYJCmxFZ",
                "image_id": "865d2610-24ba-46ba-958c-3059769477eb",
                "message": "ํ…Œ์ŠคํŠธ์ž…๋‹ˆ๋‹ค",
                "is_client": false,
                "created_at": "20240312_140647",
                "updated_at": "20240312_140647"
            }
        ],
        "customs": [],
        "filedatas": []
    }
}
curl --location --request DELETE 'https://service-stage.pic-origin.com/api/v1/users/{user_id}/images/{image_id}/memos/{memo_id}' \
--header 'Authorization: User {YOUR_TOKEN}' 

Last updated