Skip to content

Latest commit

 

History

History
45 lines (32 loc) · 1.81 KB

rest_partner.md

File metadata and controls

45 lines (32 loc) · 1.81 KB

RestAPI Partner

Partner Restapi 입니다.

GET

URI Description Attributes Curl Example
/api/partner/{id} 파트너 정보를 가져옵니다 id curl -X GET -H "Authorization: Basic {TOKEN}" "https://openpipeline.io/api/partner/{id}"
/api/partners 모든 파트너 정보를 가져옵니다 . curl -X GET -H "Authorization: Basic {TOKEN}" "https://openpipeline.io/api/partners"
/api/partnerscodename 모든 파트너의 codename만 가져옵니다 . curl -X GET -H "Authorization: Basic {TOKEN}" "https://openpipeline.io/api/partnerscodename"

POST

URI Description Attributes Curl Example
/api/partner 새로운 파트너 정보를 추가합니다 Option 참고 curl -X POST -H 'Authorization: Basic {TOKEN}' -d '{"name":"lazypic","phone":"821094117096", "deliverydates":[{"title1":"df","date":"2021-12-13"}]}' "https://openpipeline.io/api/partner"

PUT

URI Description Attributes Curl Example
/api/partner/{id} 기존 파트너 정보를 수정합니다 id, name, homepage, address, phone, email, timezone, descriptioon curl -X PUT -H "Authorization: Basic {TOKEN}“ -d '{"name":"lazypic","phone":"821094117096"}' "https://openpipeline.io/api/partner/{id}"

DELETE

URI Description Attributes Curl Example
/api/partner/{id} 값을 삭제합니다. id curl -X DELETE -H "Authorization: Basic {TOKEN}" "https://openpipeline.io/api/partner/{id}"

Option 체크

curl https://openpipeline.io/api/partner -v
HTTP/1.1 200 OK
< Access-Control-Allow-Methods: GET,PUT,DELETE,OPTIONS,POST
< Access-Control-Allow-Origin: *
< Date: Tue, 17 May 2022 02:10:41 GMT
< Content-Length: 0