Postman을 사용하여 처음 API를 조작해 보았습니다.
그런 내가 처음으로 Postman을 사용해 보았습니다.
그 때의 망비록을 써 보겠습니다.
우선 이 슬라이드를 읽었습니다.
htps : // speake r에서 ck. 코 m / r 나카 무라마 r chi ny / ぉ 바 l mi c roso ft-365-에서 아피
흠흠. . . 명시적으로 HTTP 메소드를 사용한다. . .
이번에는 Microsoft Azure Face 의 API를 Postman을 사용하여 API를 테스트해 보았습니다.
Face API 참조 목록
Postman 설치
Postman
공식 사이트에서 앱을 다운로드, 설치.
이메일 주소 또는 Google 계정을 사용하여 계정을 만듭니다.

Collection 만들기
만들려는 테스트를 정리하는 Collection을 만듭니다.

요청 작성

HTTP 메소드에는 종류가 있다

풀다운을 보면 여러 종류가 있지만,
먼저 파악했습니다.
시험에 Microsoft Azure Face의 PersonGroup을 만듭니다.
Person Group - Create
API의 사양을 확인.
{Endpoint}/face/v1.0/persongroups/{personGroupId}
그래서 이렇게 설정.

아무것도 모르지만 빠진 부분

Postman에서 자동 생성되는 Header 정보를 끄지 마십시오.
사양을 확인한 후
Accept 키에는 application/json,
Ocp-Apim-Subscription-Key 키는 Azure에서 만든 Face 구독 키를 입력합니다.
Body는 raw를 선택.

Send 버튼 클릭

이것으로 작성!
GET 메서드로 만들 수 있는지 확인
Person Group - Get
API의 사양을 확인.
Person 그룹 이름, userData 및 인식 Itionmodel을 가져옵니다.

Send 버튼 클릭

이전에 PUT 메서드로 만든 PersonGroup이 표시되었습니다.
요약
나는 평소 버리 바리 코드를 쓰지 않지만 Postman은 GUI에서 API를 테스트 할 수 있으며 매우 유용한 도구임을 알았습니다.
이것을 계기로 API에 대해 더 깊이 보려고 생각합니다!
Reference
이 문제에 관하여(Postman을 사용하여 처음 API를 조작해 보았습니다.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/f-sumiko/items/73d848b71b4c3ffc2f72텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)