아래와 같이 하면 되는것 확인함

 

 

리눅스의 whereis 와 비슷한 명령어가 윈도우에도 있나 찾아봤더니 윈도우에 기본제공 되고 있었음

 

위의 캡쳐화면과 같이 사용하면 되고

%path% 의 경로들만 검색하는것으로 보인다

https://marketplace.visualstudio.com/items?itemName=humao.rest-client

 

REST Client - Visual Studio Marketplace

REST Client REST Client allows you to send HTTP request and view the response in Visual Studio Code directly. Main Features Send/Cancel/Rerun HTTP request in editor and view response in a separate pane with syntax highlight Send CURL command in editor and

marketplace.visualstudio.com

vscode extension 에서 "rest client" 라고 검색하면 나온다

 

기존 postman 과 비슷한 기능을 하는것 같은데 나는 postman 보다 이놈을 먼저 접했음

 

사용법은 *.http 형식으로 아무 이름이나 붙은 파일을 만든다음

아래와 같은 형식으로 사용하면 된다

 

api 호출 하나씩 "###" 으로 구분하며

 

앞의 "GET" , "POST" 로 get 과 post 를 설정할 수 있다

header 의 parameter 는 get, post 바로 밑줄에 붙여서 쓰면 되고

 

body 는 한줄 띄우면 body 로 인식한다

 

get, post 위에 생기는 "Send Request" 문자를 클릭하면 

우측에 rest api 호출에 대한 결과 response 를 표시해준다.

 

현재까지 잘 쓰고있는 개발툴이며 나름 편하다.

 

 

추가 사용예제 :

 

 

저자님이 무료로 공개하셨음

시간날때 봐봐야겠다.

 

https://github.com/keesun/study/tree/master/book

 

keesun/study

Learn, Share and Grow. Contribute to keesun/study development by creating an account on GitHub.

github.com

 

자바웹개발 인쇄_2쇄.pdf
8.68MB

 

 

 

 

'개발공부 history' 카테고리의 다른 글

리눅스 커맨드라인 사용법  (0) 2021.06.30
오토핫키 관련  (0) 2019.04.19
생활코딩  (0) 2019.04.16
TCPSchool  (0) 2019.04.16
이클립스 eclipse 단축키  (0) 2019.04.16

 

app build 를 하다보면 git 의 어느 commit 에서 빌드를 했는지 알아야할 필요가 있을때가 있다

검색해보니 아래와 같은 참고링크가 있음

 

https://stackoverflow.com/questions/28498688/gradle-script-to-autoversion-and-include-the-commit-hash-in-android

 

Gradle script to autoversion and include the commit hash in Android

I need to write a gradle script to auto version my application on every commit. I need to also include the commit hash as a reference in the application for testers. I am confused how auto version...

stackoverflow.com

build gradle 파일 위쪽에 아래 함수를 선언해주고

def getGitHash = { ->
    def stdout = new ByteArrayOutputStream()
    exec {
        commandLine 'git', 'rev-parse', '--short', 'HEAD'
        standardOutput = stdout
    }
    return stdout.toString().trim()
}

 

defaultConfig 영역에 아래와 같이 buildConfigField 넣어주고서 빌드하면

buildConfigField "String", "GitHash", "\"${getGitHash()}\""

생성되는 BuildConfig.java  에 아래와 같이 git hash 값이 저장된다.

// Fields from default config.
public static final String GitHash = "e61af97";

 

해당 git 에서 수정이 추가로 이루어졌는지 아닌지 여부도 판단할 수 있는 로직이 더 들어갈 수 있을 것 같은데

일단은 여기까지....

 

+ Recent posts