웹개발/혼자하는 개발 공부
APIs
데브리
2023. 3. 13. 17:23
반응형
APIs
: Application Programming Interfaces is a set of commands, functions, protocols, and objects that programmers can use to create software or interact with an external system.
ex) Facebook, Police data
Endpoint 주소
Paths 주소/this part (category)
Parameters ? this & this= this & this. # like settings or the configuration of an HTTP request
Authentication 인증
JSON
: JavaScript Object Notation
const express = require("express");
const app = express();
app.get("/", function(req, res){
res.send("Server is up and running.")
})
app.listen(3000, function(){
console.log("Server is running on port 3000.");
})
JSON.parse() 한줄 코드가 여러줄로
JSON.stringify() 여러줄 코드가 한줄로
반응형
--------
res.write() can send multiple lines
res.send() only one line, but can be used after multiple res.write()
---------
반응형