Giter Club home page Giter Club logo

apitester_for_notion's Introduction

apitester_for_notion's People

Contributors

rkskekzzz avatar skyrich2000 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

apitester_for_notion's Issues

์š”์ฒญ์— body ๊ฐ€ json์ด ์•„๋‹Œ๊ฒฝ์šฐ, javascript ์—๋Ÿฌ ๋ฉ”์„ธ์ง€ ๋…ธ์ถœ

ํ˜„์žฌ ์ƒํ™ฉ

์š”์ฒญ์‹œ, body๊ฐ€ ๋‚ด์šฉ์ด ์—†๊ฑฐ๋‚˜ json์ด ์•„๋‹Œ๊ฒฝ์šฐ, ๊ฒฐ๊ณผ ์ฐฝ์ด ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ถœ๋ ฅ๋ฉ๋‹ˆ๋‹ค.

แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2022-01-03 แ„‹แ…ฉแ„’แ…ฎ 5 48 43

<ReactJson src={response} />์ด๋ ‡๊ฒŒ ๋˜์–ด์žˆ์–ด์„œ response ๊ฐ€ json ์ด ์•„๋‹ˆ๋ฉด ์ €๋ ‡๊ฒŒ ๋œจ๋Š”๊ฑฐ๊ฐ™์•„์š”

์š”๊ตฌ ์‚ฌํ•ญ

json ์ด ์•„๋‹Œ๊ฒฝ์šฐ์—๋Š” ๋ฌธ์ž์—ด๋กœ ์ถœ๋ ฅํ•˜๊ฒŒ ํ•ด์•ผํ• ๊ฑฐ๊ฐ™์Šต๋‹ˆ๋‹ค

์š”์ฒญ ๊ฒฐ๊ณผ ํŽ˜์ด์ง€์— HTTP ์ƒํƒœ ์ถœ๋ ฅ

ํ˜„์žฌ ์ƒํ™ฉ

์š”์ฒญ ๊ฒฐ๊ณผ ํŽ˜์ด์ง€์— HTTP ์ƒํƒœ๊ฐ€ ์ถœ๋ ฅ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.
์˜ˆ)
แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2022-01-03 แ„‹แ…ฉแ„’แ…ฎ 5 30 07

์š”๊ตฌ์‚ฌํ•ญ

์š”์ฒญ ๊ฒฐ๊ณผ ํŽ˜์ด์ง€์—์„œ URL ์™ผ์ชฝ์— HTTP ์ƒํƒœ๊ฐ€ ์ถœ๋ ฅ๋์œผ๋ฉด ์ข‹๊ฒ ์Šต๋‹ˆ๋‹ค.
100๋ฒˆ๋Œ€๋Š” ํšŒ์ƒ‰
200๋ฒˆ๋Œ€๋Š” ์ดˆ๋ก์ƒ‰
300๋ฒˆ๋Œ€๋Š” ํŒŒ๋ž€์ƒ‰
400,500๋ฒˆ๋Œ€๋Š” ๋นจ๊ฐ„์ƒ‰์ด์˜€์œผ๋ฉด ์ข‹๊ฒ ์Šต๋‹ˆ๋‹ค.
์˜ˆ)
แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2022-01-03 แ„‹แ…ฉแ„’แ…ฎ 5 30 07

ํŽ˜์ด์ง€๊ฐ€ ์ด๋™๋˜์—ˆ๋‹ค๊ฐ€ ๋ณต๊ท€ํ–ˆ์„๊ฒฝ์šฐ, form ์ด ๋‚˜์ค‘์— ๋ฐ”๋€Œ๋Š” ํ˜„์ƒ

ํŒŒ๋ผ๋ฏธํ„ฐ๊ฐ€ ํฌํ•จ๋œ apitester ํŽ˜์ด์ง€์—์„œ ์ˆ˜์ •ํ•˜๋˜ ์™€์ค‘์—
๋’ค๋กœ๊ฐ”๋‹ค๊ฐ€ ๋‹ค์‹œ ์˜ค๊ณ , ๋‹ค์‹œ ์ˆ˜์ •ํ•˜๋ ค๊ณ  form ์„ ๋ˆ„๋ฅด๋Š”์ˆœ๊ฐ„, form ์ด ์ดˆ๊ธฐ ํŒŒ๋ผ๋ฏธํ„ฐ ๊ฐ’์œผ๋กœ ์ดˆ๊ธฐํ™” ๋ฉ๋‹ˆ๋‹ค.

๋งํฌ ์—ฌ๊ธฐ์„œ ํ•œ๋ฒˆ ํ…Œ์ŠคํŠธ ํ•ด๋ณด์‹œ์ฃ 

์š”์ฒญ ํŽ˜์ด์ง€์™€ ๊ฒฐ๊ณผ ํŽ˜์ด์ง€ ๋™์‹œ์— ๋ณด๋Š” ์˜ต์…˜ ์ถ”๊ฐ€

์š”์ฒญ ํŽ˜์ด์ง€์™€ ๊ฒฐ๊ณผ ํŽ˜์ด์ง€๋ฅผ ํ•œ ํŽ˜์ด์ง€์—์„œ ๊ฐ™์ด ๋ณผ์ˆ˜์žˆ๋„๋ก ํ•˜๋Š” ํ† ๊ธ€์ด ์žˆ์œผ๋ฉด ์ข‹๊ฒ ์Šต๋‹ˆ๋‹ค.

๊ตฌ์ฒด์ ์ธ ํ™”๋ฉด ์„ค๊ณ„๋Š” ์ •ํ•ด๋ด์•ผํ• ๊ฑฐ๊ฐ™์Šต๋‹ˆ๋‹ค.

header ๋‚˜ body ๊ฐ€ ์˜ฌ๋ฐ”๋ฅธ json ์ด ์•„๋‹๊ฒฝ์šฐ ์—๋Ÿฌ ์ฒ˜๋ฆฌ

ํ˜„์žฌ ์ƒํ™ฉ

header ๋‚˜ body ๊ฐ€ ์˜ฌ๋ฐ”๋ฅธ json ์ด ์•„๋‹๊ฒฝ์šฐ์— ์ „์†ก๋ฒ„ํŠผ์„ ๋ˆ„๋ฅด๋ฉด, console log ์— ์˜ค๋ฅ˜๊ฐ€ ๋œจ๋ฉด์„œ ์ „์†ก๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

์š”๊ตฌ์‚ฌํ•ญ

header๊ฐ€ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ํ˜•์‹์„ ๋ฒ—์–ด๊ฐ€๋Š” json ์ด๊ฑฐ๋‚˜, json์ด ์•„๋‹Œ๊ฐ’์ผ๊ฒฝ์šฐ ์ „์†ก๋ฒ„ํŠผ์„ ๋ˆ„๋ฅด๋ฉด header ์— ๋นจ๊ฐ„์ค„ ํšจ๊ณผ๋ฅผ ์ฃผ๋ฉด ์ข‹๊ฒ ์Šต๋‹ˆ๋‹ค.

{
  "key1": "value1",
  "key2": "value2",
}

body ๋Š” ๊ฒฝ์šฐ์— ๋”ฐ๋ผ์„œ json ์ด ์•„๋‹์ˆ˜์žˆ๊ธฐ ๋•Œ๋ฌธ์— JSON.parse ๋กœ ์˜ค๋ฅ˜๊ฐ€ ๋‚˜๋Š”๊ฒฝ์šฐ์—๋Š” ๊ทธ๋ƒฅ string ์œผ๋กœ ์ธ์‹ํ•˜์—ฌ ์ „์†ก๋์œผ๋ฉด ์ข‹๊ฒ ์Šต๋‹ˆ๋‹ค.

์ดˆ๊ธฐ์— html body ํ…Œ๋งˆ ์ ์šฉ ์•ˆ๋˜๋Š” ๋ฒ„๊ทธ

ํ˜„์žฌ ์ƒํ™ฉ

์ฒ˜์Œ ์ ‘์†ํ•œ๊ฒฝ์šฐ์—๋Š”, body ์— ํ…Œ๋งˆ๊ฐ€ ์ ์šฉ๋˜์–ด์žˆ์ง€ ์•Š์Šต๋‹ˆ๋‹ค.
ํ•œ๋ฒˆ ํ…Œ๋งˆ๋ฅผ ํ† ๊ธ€ํ•œ ์ดํ›„๋ถ€ํ„ฐ ์ ์šฉ๋ฉ๋‹ˆ๋‹ค.

์š”๊ตฌ ์‚ฌํ•ญ

ํ•œ๋ฒˆ ํ…Œ๋งˆ๋ฅผ ํ† ๊ธ€ํ•˜์ง€ ์•Š๋”๋ผ๋„ ์ดˆ๊ธฐ์—๋„ body ์— ํ…Œ๋งˆ๊ฐ€ ์ ์šฉ๋˜์–ด์žˆ์–ด์•ผํ•ฉ๋‹ˆ๋‹ค.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.