|
678 | 678 | } |
679 | 679 | } |
680 | 680 | } |
| 681 | + }, |
| 682 | + "/api/artists/{artistId}":{ |
| 683 | + "get":{ |
| 684 | + "tags":["User"], |
| 685 | + "summary": "작가 프로필 조회하기", |
| 686 | + "description": "작가 프로필을 조회하는 API입니다. ", |
| 687 | + "security" : [ |
| 688 | + { |
| 689 | + "bearerAuth":[] |
| 690 | + } |
| 691 | + ], |
| 692 | + "parameters": [ |
| 693 | + { |
| 694 | + "name": "artistId", |
| 695 | + "in": "path", |
| 696 | + "required": true, |
| 697 | + "description": "팔로우할 작가의 ID", |
| 698 | + "schema": { |
| 699 | + "type": "string", |
| 700 | + "example": "1" |
| 701 | + } |
| 702 | + } |
| 703 | + ], |
| 704 | + "responses":{ |
| 705 | + "200":{ |
| 706 | + "description":"해당 작가 프로필 조회 성공", |
| 707 | + "content":{ |
| 708 | + "application/json": { |
| 709 | + "schema":{ |
| 710 | + "type":"object", |
| 711 | + "properties":{ |
| 712 | + "resultType":{"type":"object", "example":"SUCCESS"}, |
| 713 | + "error":{"type":null, "example":null}, |
| 714 | + "success":{ |
| 715 | + "type":"object", |
| 716 | + "properties":{ |
| 717 | + "nickname":{"type": "string", "example":"artist_one"}, |
| 718 | + "description":{"type":"string", "example":"테스트용 작가입니다."}, |
| 719 | + "profileImage":{"type": "string", "example":"https://example.com/artist1.png"}, |
| 720 | + "slot":{"type": "integer", "example":3}, |
| 721 | + "reviews":{ |
| 722 | + "type":"array", |
| 723 | + "items":{ |
| 724 | + "properties":{ |
| 725 | + "id":{"type":"string", "example":"5"}, |
| 726 | + "rate":{"type":"integer", "example":5}, |
| 727 | + "content":{"type":"string", "example": "안녕~"}, |
| 728 | + "createdAt" :{"type":"string", "example": "2025-08-04T02:31:36.000Z"}, |
| 729 | + "commissionTitle":{"type":"string", "example":"테스트 커미션 글"}, |
| 730 | + "workingTime":{"type":"string", "example":"33일"}, |
| 731 | + "writer":{ |
| 732 | + "type":"object", |
| 733 | + "properties":{ |
| 734 | + "nickname":{"type":"string", "example":"신청자1"} |
| 735 | + } |
| 736 | + } |
| 737 | + } |
| 738 | + } |
| 739 | + }, |
| 740 | + "commissions":{ |
| 741 | + "type":"array", |
| 742 | + "items":{ |
| 743 | + "properties":{ |
| 744 | + "id":{"type":"string", "example":"1"}, |
| 745 | + "title":{"type":"string", "example":"테스트 커미션 글"}, |
| 746 | + "summary":{"type":"string", "example":"이것은 테스트용 커미션 글입니다."}, |
| 747 | + "minPrice":{"type":"integer", "example":1000}, |
| 748 | + "category":{"type":"string", "example":"글"}, |
| 749 | + "tags":{ |
| 750 | + "type":"array", |
| 751 | + "items":{"type":"string"}, |
| 752 | + "example":["감성", "낙서"] |
| 753 | + }, |
| 754 | + "commission_img":{"type":"string", "example":"http://example.com/image.jpg"} |
| 755 | + } |
| 756 | + } |
| 757 | + }, |
| 758 | + "badges" :{ |
| 759 | + "type":"array", |
| 760 | + "items":{ |
| 761 | + "properties":{ |
| 762 | + "id":{"type":"string", "example":"1"}, |
| 763 | + "earnedAt":{"type":"string", "example":"2025-08-03T23:24:37.000Z"}, |
| 764 | + "badge":{ |
| 765 | + "type":"array", |
| 766 | + "items":{ |
| 767 | + "properties":{ |
| 768 | + "id":{"type":"string", "example":"1"}, |
| 769 | + "type":{"type":"string", "example": "comm_finish"}, |
| 770 | + "threshold":{"type":"integer", "example":1}, |
| 771 | + "name":{"type":"string", "example":"커미션 1회 완료"}, |
| 772 | + "badgeImage":{"type":"string", "example":"https://example.com/badge_comm1.png"} |
| 773 | + } |
| 774 | + } |
| 775 | + } |
| 776 | + } |
| 777 | + } |
| 778 | + } |
| 779 | + |
| 780 | + } |
| 781 | + } |
| 782 | + } |
| 783 | + |
| 784 | + } |
| 785 | + } |
| 786 | + } |
| 787 | + }, |
| 788 | + "404":{ |
| 789 | + "description": "해당 작가가 존재하지 않습니다.", |
| 790 | + "content": { |
| 791 | + "application/json": { |
| 792 | + "schema": { |
| 793 | + "type": "object", |
| 794 | + "properties": { |
| 795 | + "resultType": { "type": "string", "example": "FAIL" }, |
| 796 | + "error": { |
| 797 | + "type": "object", |
| 798 | + "properties": { |
| 799 | + "errorCode": { "type": "string", "example": "U008" }, |
| 800 | + "reason": { "type": "string", "example": "해당 작가가 존재하지 않습니다." }, |
| 801 | + "data": { "type": ["object", "null"], "example": null } |
| 802 | + } |
| 803 | + }, |
| 804 | + "success": { "type": "null", "example": null } |
| 805 | + } |
| 806 | + } |
| 807 | + } |
| 808 | + } |
| 809 | + } |
| 810 | + } |
| 811 | + } |
681 | 812 | } |
682 | 813 | } |
683 | 814 | } |
|
0 commit comments