Skip to content

Instantly share code, notes, and snippets.

@itsjuanmatus
Created July 3, 2022 20:56
Show Gist options
  • Save itsjuanmatus/d61c8221ee45f20b8c8683bdf1fad938 to your computer and use it in GitHub Desktop.
Save itsjuanmatus/d61c8221ee45f20b8c8683bdf1fad938 to your computer and use it in GitHub Desktop.
{
"info": {
"_postman_id": "8464f69f-c81e-4ec9-b702-a1069579f3e6",
"name": "Notes",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Create a note",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"title\": \"First Note\",\n \"content\": \"This is the first note\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:3000/notes",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"notes"
]
}
},
"response": []
},
{
"name": "Get all notes",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:3000/notes",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"notes"
]
}
},
"response": []
},
{
"name": "Get a note",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:3000/notes/62c1ffa6faa891fe62a2ae5b",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"notes",
"62c1ffa6faa891fe62a2ae5b"
]
}
},
"response": []
},
{
"name": "Update a note",
"request": {
"method": "PATCH",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"title\": \"first note edited\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:3000/notes/62c1ffa6faa891fe62a2ae5b",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"notes",
"62c1ffa6faa891fe62a2ae5b"
]
}
},
"response": []
},
{
"name": "Delete a note",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "http://localhost:3000/notes/62c1ffa6faa891fe62a2ae5b",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"notes",
"62c1ffa6faa891fe62a2ae5b"
]
}
},
"response": []
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment