'API Authorization'에 해당되는 글 1건

Note - if you provide authorization at collection or folder level, In the request authorization, Select - "Inherit auth from parent"

When you add Authorization, some headers get added in the request, You can check by going to Headers tab and view hidden Headers

 

 

Search "github rest api on google" and Create Request Items

GitHub Repository를 생성하는 리퀘스트를 생성할 예정!

URL 참고 내역

https://developer.github.com/v3/

 

GitHub API v3

Get started with one of our guides, or jump straight into the API documentation.

developer.github.com

https://developer.github.com/v3/ 페이지 참고 부분

 

Endpoint 참고 내역

https://developer.github.com/v3/repos/

 

Repositories

Get started with one of our guides, or jump straight into the API documentation.

developer.github.com

https://developer.github.com/v3/repos/ 페이지 참고 부분
https://developer.github.com/v3/repos/ 페이지 참고 부분

 

아래와 같이 리퀘스트 생성!

{
    "name": "Hello-World Github",
    "description": "This is your first repository",
    "homepage": "https://github.com",
    "private": false,
    "has_issues": true,
    "has_projects": true,
    "has_wiki": true
}

 

 

Setting Request

Authorization > TYPE:Bearer Token > 아래 URL에서 생성한 토큰 입력

 

Github(로그인)접속 > Settings > Developer settings > Personal access tokens > Generate new token 클릭 > Select scopes에서 "repo" 부분만 클릭 > "Note" 에 토큰 이름 입력 후 생성

 

해당 토큰은 바로 입력 할 수 있지만 아래와 같이 변수 처리 할 수있다

Environment에서 해당 토큰을 변수처리함

 

 

Run

Postman 확인
github 확인

 

'WEB API Test > Postman' 카테고리의 다른 글

API Chaining Test 관련  (0) 2020.08.07
SOAP requests 구동  (0) 2020.08.07
Collection 원격 구동 with URL  (0) 2020.08.06
Data Driven Testing 관련  (0) 2020.08.06
WORKSPACES 관리  (0) 2020.08.06
블로그 이미지

정신차려이각박한세상속에서

,