Valpi :: API that returns value
๐Ÿ”„

Valpi :: API that returns value

Created
Jul 15, 2020 07:58 PM
Tags
ย 
์ผ๋ฐ˜์ ์œผ๋กœ ๋‚˜๋Š” Static-web ๊ฐœ๋ฐœ ์‹œ yml์„ ํŒŒ์‹ฑํ•˜์—ฌ ๊ตฌ์„ฑํ•˜๊ณค ํ•œ๋‹ค.
ย 
ย 
์ด๋Ÿฌํ•œ ๋ฐฉ๋ฒ•์€ ๋น„๊ต์ ์œผ๋กœ ์•ˆ์ „ํ•˜๊ฒŒ ์ฝ˜ํ…์ธ ๋ฅผ ์—…๋ฐ์ดํŠธํ•  ์ˆ˜ ์žˆ๋‹ค๋Š” ์žฅ์ ์ด ์žˆ์„ ๋ฟ ์•„๋‹ˆ๋ผ, ์ „์ฒด์ ์ธ ๋‚ด์šฉ ๋˜ํ•œ ๋น ๋ฅด๊ฒŒ ํŒŒ์•…์ด ๊ฐ€๋Šฅํ•˜๋‹ค๋Š” ์žฅ์ ์ด ์žˆ๋‹ค.
ย 
๊ทธ๋Ÿฌ๋‚˜ ์ด๋ฅผ ์œ„ํ•ด์„œ๋Š” ์–ด๋”˜๊ฐ€์—์„œ yml ํŒŒ์ผ์„ ์ง€์†์ ์œผ๋กœ publishing ํ•ด์ค˜์•ผ ํ•ด์ค˜์•ผ๋งŒ ํ•˜๊ณ , ๋˜ํ•œ ์ธ๊ฐ€๋œ ์‚ฌ์šฉ์ž๋งŒ์ด ์ˆ˜์ •ํ•  ์ˆ˜ ์žˆ๋„๋ก ํ•ด์ค˜์•ผ ํ•œ๋‹ค.
ย 
GitHub์„ ์‚ฌ์šฉํ–ˆ์œผ๋‚˜, ์ด๋งˆ์ €๋„ ๊ท€์ฐฎ์•˜๋˜ ๋‚˜๋Š” ์ด๋ฅผ ํƒ€๊ฒŸ์œผ๋กœ ์ž‘์€ serverless CRUD application์„ ๋งŒ๋“ค์–ด๋ณด์•˜๋‹ค. ๋ฌผ๋ก  ํด๋ผ์šฐ๋“œ๋Š” AWS๋ฅผ ์‚ฌ์šฉ.
ย 
notion image
ย 
์ •๋ง ๊ธฐ๋ณธ์ ์ธ CRUD์ด๋ฉฐ, ์‚ฌ์šฉ๋ฒ• ๋˜ํ•œ ๊ฐ„๋‹จํ•˜๋‹ค.
์ž์„ธํ•œ๊ฑด README ๋˜๋Š” ์•„๋ž˜ ๋‚ด์šฉ์„ ์ฐธ๊ณ ํ•˜์ž.
ย 

Usage


ย 
https://api.valpi.cc/:name
ย 
APIs
method
path
response
description
/:name
<value>
get value
/:name?value=<value>
<key>
create vlaue
/:name?value=<value>&key=<key>
<value>
update value
/:name?key=<key>
String
delete value
ย 
ERRORs
name
status code
message
200
value created :: private key (for update/delete) =>ย { key }
200
{ data }
400
wrong parameters (please checkย https://git.io/JJs5T)
400
wrong request body type (please use application/json format)
403
already exists name (change your value name)
403
value not exists (change your value name)
403
wrong private key
500
internal server error, sorry :(
ย 

NoSQL scheme

{
	"name": "value set name",
	"key": "private key",
	"value": "expect to return value"
}
ย 
ย 

+

ํ˜„์žฌ(21๋…„ 6์›”) ๋น„์šฉ์œผ๋กœ ์ธํ•ด ์„œ๋น„์Šค๋ฅผ ์ค‘์ง€ํ•œ ์ƒํƒœ
ย 

Loading Comments...