initial commit

This commit is contained in:
2026-01-28 21:18:51 -05:00
commit e284a6c409
24 changed files with 948 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
meta {
name: Create Comment
type: http
seq: 7
}
post {
url: http://localhost:3000/posts/:post_id/comments
body: json
auth: inherit
}
params:path {
post_id:
}
body:json {
{
"text": "hey!!"
}
}
settings {
encodeUrl: true
timeout: 0
}

View File

@@ -0,0 +1,23 @@
meta {
name: Create Post
type: http
seq: 3
}
post {
url: http://localhost:3000/posts
body: json
auth: inherit
}
body:json {
{
"description": "",
"file_id": ""
}
}
settings {
encodeUrl: true
timeout: 0
}

View File

@@ -0,0 +1,21 @@
meta {
name: Delete Comment
type: http
seq: 9
}
delete {
url: http://localhost:3000/posts/:post_id/comments/:comment_id
body: none
auth: inherit
}
params:path {
comment_id:
post_id:
}
settings {
encodeUrl: true
timeout: 0
}

View File

@@ -0,0 +1,20 @@
meta {
name: Delete Post
type: http
seq: 6
}
delete {
url: http://localhost:3000/posts/:id
body: none
auth: inherit
}
params:path {
id:
}
settings {
encodeUrl: true
timeout: 0
}

View File

@@ -0,0 +1,20 @@
meta {
name: Get Comments
type: http
seq: 8
}
get {
url: http://localhost:3000/posts/:post_id/comments
body: none
auth: inherit
}
params:path {
post_id:
}
settings {
encodeUrl: true
timeout: 0
}

20
api/.bruno/Get Post.bru Normal file
View File

@@ -0,0 +1,20 @@
meta {
name: Get Post
type: http
seq: 4
}
get {
url: http://localhost:3000/posts/:id
body: none
auth: inherit
}
params:path {
id:
}
settings {
encodeUrl: true
timeout: 0
}

16
api/.bruno/Get Posts.bru Normal file
View File

@@ -0,0 +1,16 @@
meta {
name: Get Posts
type: http
seq: 2
}
get {
url: http://localhost:3000/posts
body: none
auth: inherit
}
settings {
encodeUrl: true
timeout: 0
}

View File

@@ -0,0 +1,20 @@
meta {
name: Upload File
type: http
seq: 3
}
post {
url: http://localhost:3000/posts/file
body: multipartForm
auth: inherit
}
body:multipart-form {
image:
}
settings {
encodeUrl: true
timeout: 0
}

9
api/.bruno/bruno.json Normal file
View File

@@ -0,0 +1,9 @@
{
"version": "1",
"name": "Spark",
"type": "collection",
"ignore": [
"node_modules",
".git"
]
}

View File

@@ -0,0 +1,7 @@
headers {
Authorization: {{TOKEN}}
}
auth {
mode: none
}

View File

@@ -0,0 +1,3 @@
vars:secret [
TOKEN
]