Bruno CRUD lengkapnya

This commit is contained in:
Dita Aji Pratama 2025-06-07 15:19:51 +07:00
parent 80492d466c
commit 0066090a7a
5 changed files with 113 additions and 0 deletions

26
bruno/Create.bru Normal file
View File

@ -0,0 +1,26 @@
meta {
name: Create
type: http
seq: 2
}
get {
url: http://localhost:11000/api/:crud
body: json
auth: none
}
params:path {
crud: create
}
body:json {
{
"name":"Gepeng",
"phone":"7777777"
}
}
docs {
crud = add | edit | remove | list | detail
}

25
bruno/Delete.bru Normal file
View File

@ -0,0 +1,25 @@
meta {
name: Delete
type: http
seq: 5
}
get {
url: http://localhost:11000/api/:crud
body: json
auth: none
}
params:path {
crud: delete
}
body:json {
{
"key":5
}
}
docs {
crud = add | edit | remove | list | detail
}

26
bruno/Read.bru Normal file
View File

@ -0,0 +1,26 @@
meta {
name: Read
type: http
seq: 3
}
get {
url: http://localhost:11000/api/:crud
body: none
auth: none
}
params:path {
crud: read
}
body:json {
{
"name":"Gepeng",
"phone":"7777777"
}
}
docs {
crud = add | edit | remove | list | detail
}

27
bruno/Update.bru Normal file
View File

@ -0,0 +1,27 @@
meta {
name: Update
type: http
seq: 4
}
get {
url: http://localhost:11000/api/:crud
body: json
auth: none
}
params:path {
crud: update
}
body:json {
{
"key":5,
"name":"Gemblong",
"phone":"5555"
}
}
docs {
crud = add | edit | remove | list | detail
}

9
bruno/bruno.json Normal file
View File

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