initial commit
This commit is contained in:
26
api/.bruno/Create Comment.bru
Normal file
26
api/.bruno/Create Comment.bru
Normal 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
|
||||
}
|
||||
23
api/.bruno/Create Post.bru
Normal file
23
api/.bruno/Create Post.bru
Normal 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
|
||||
}
|
||||
21
api/.bruno/Delete Comment.bru
Normal file
21
api/.bruno/Delete Comment.bru
Normal 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
|
||||
}
|
||||
20
api/.bruno/Delete Post.bru
Normal file
20
api/.bruno/Delete Post.bru
Normal 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
|
||||
}
|
||||
20
api/.bruno/Get Comments.bru
Normal file
20
api/.bruno/Get Comments.bru
Normal 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
20
api/.bruno/Get Post.bru
Normal 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
16
api/.bruno/Get Posts.bru
Normal 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
|
||||
}
|
||||
20
api/.bruno/Upload File.bru
Normal file
20
api/.bruno/Upload File.bru
Normal 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
9
api/.bruno/bruno.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"version": "1",
|
||||
"name": "Spark",
|
||||
"type": "collection",
|
||||
"ignore": [
|
||||
"node_modules",
|
||||
".git"
|
||||
]
|
||||
}
|
||||
7
api/.bruno/collection.bru
Normal file
7
api/.bruno/collection.bru
Normal file
@@ -0,0 +1,7 @@
|
||||
headers {
|
||||
Authorization: {{TOKEN}}
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: none
|
||||
}
|
||||
3
api/.bruno/environments/env.bru
Normal file
3
api/.bruno/environments/env.bru
Normal file
@@ -0,0 +1,3 @@
|
||||
vars:secret [
|
||||
TOKEN
|
||||
]
|
||||
Reference in New Issue
Block a user