curl 명령 서버 측 테스트 api 인터페이스
1029 단어 linux
1. curl 테스트 Get 형식 api 가 nginx 에서 테스트 하면 여기 localhost: 80 은 ng 의 주소 포트 입 니 다. 응용 서버 에 있 으 면 서버 의 주소 와 응용 설정 을 응용 하 는 감청 포트 입 니 다. - v 파 라 메 터 를 추가 하면 자세 한 정 보 를 볼 수 있 습 니 다.
curl localhost:80/api/test
2. curl 테스트 게시 물 형식 api
@RequestParam
curl localhost:80/api/test -X POST -d "title=comewords&content=articleContent"
@RequestBody
curl localhost:80/api/test -X POST -H "Content-Type:application/json" -d '"title":"comewords","content":"articleContent"'
post 요청 한 인자 도 다음 과 같이 쓸 수 있 습 니 다 – data 의 형식:
curl localhost:80/api/test -X POST -H "Content-Type:application/json" --data '{"title":"comewords","content":"articleContent"}'
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
용감한 바로 가기 및 우분투 응용 프로그램안녕하세요 여러분, 이 기사에서는 모든 사이트에서 pwa를 생성하고 실행기 응용 프로그램으로 추가하는 방법을 설명하고 싶습니다. 일부 웹사이트는 PWA로 설치를 허용하지 않지만 유사한 애플리케이션을 원합니다. 1. ...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.