Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
381 lines (381 sloc) 7.01 KB
{
"info": {
"_postman_id": "bc0bebf6-0b92-4c78-9728-997152035098",
"name": "JerseyFilms",
"description": "All requests for testing RESI API exposed by the JerseyFilms Project.\n",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "actuators",
"description": null,
"item": [
{
"name": "GET status",
"request": {
"method": "GET",
"header": [],
"body": {},
"url": {
"raw": "http://localhost:8080/admin/status",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"admin",
"status"
]
}
},
"response": []
},
{
"name": "GET metrics",
"request": {
"method": "GET",
"header": [],
"body": {},
"url": {
"raw": "http://localhost:8080/admin/metrics",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"admin",
"metrics"
]
}
},
"response": []
},
{
"name": "GET metrics/filmsdb.size",
"request": {
"method": "GET",
"header": [],
"body": {},
"url": {
"raw": "http://localhost:8080/admin/metrics/filmsdb.size",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"admin",
"metrics",
"filmsdb.size"
]
}
},
"response": []
},
{
"name": "GET metrics/filmsdb.adds",
"request": {
"method": "GET",
"header": [],
"body": {},
"url": {
"raw": "http://localhost:8080/admin/metrics/filmsdb.adds",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"admin",
"metrics",
"filmsdb.adds"
]
}
},
"response": []
},
{
"name": "GET metrics/filmsdb.mods",
"request": {
"method": "GET",
"header": [],
"body": {},
"url": {
"raw": "http://localhost:8080/admin/metrics/filmsdb.mods",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"admin",
"metrics",
"filmsdb.mods"
]
}
},
"response": []
},
{
"name": "GET metrics/filmsdb.deletes",
"request": {
"method": "GET",
"header": [],
"body": {},
"url": {
"raw": "http://localhost:8080/admin/metrics/filmsdb.deletes",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"admin",
"metrics",
"filmsdb.deletes"
]
}
},
"response": []
},
{
"name": "GET genre",
"request": {
"method": "GET",
"header": [],
"body": {},
"url": {
"raw": "http://localhost:8080/admin/genre",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"admin",
"genre"
]
}
},
"response": []
}
]
},
{
"name": "All Films",
"request": {
"method": "GET",
"header": [],
"body": {},
"url": {
"raw": "http://localhost:8080/films",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"films"
]
}
},
"response": []
},
{
"name": "POST Erin B",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Erin Brockovich\",\n \"year\": \"2000\",\n \"genre\": \"DRAMA\"\n}\n"
},
"url": {
"raw": "http://localhost:8080/films",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"films"
]
}
},
"response": []
},
{
"name": "GET /films/1",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"id\": \"2\",\n \"name\": \"Pulp Fiction\",\n \"year\": \"1994\",\n \"genre\": \"ACTION\"\n}"
},
"url": {
"raw": "http://localhost:8080/films/1",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"films",
"1"
]
}
},
"response": []
},
{
"name": "POST ID Pulp Fiction",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"id\": 999,\n \"name\": \"Pulp Fiction\",\n \"year\": \"1994\",\n \"genre\": \"CRIME\"\n}\n"
},
"url": {
"raw": "http://localhost:8080/films",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"films"
]
}
},
"response": []
},
{
"name": "POST Man on the Moon",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Man on the Moon\",\n \"year\": \"1999\",\n \"genre\": \"COMEDY\"\n}\n"
},
"url": {
"raw": "http://localhost:8080/films",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"films"
]
}
},
"response": []
},
{
"name": "POST Matilda",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Matilda\",\n \"year\": \"1996\",\n \"genre\": \"COMEDY\"\n}\n"
},
"url": {
"raw": "http://localhost:8080/films",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"films"
]
}
},
"response": []
},
{
"name": "Modify MoTM",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"id\": 3,\n \"name\": \"Man on the Moon\",\n \"year\": \"1999\",\n \"genre\": \"BIOGRAPHY\"\n}\n"
},
"url": {
"raw": "http://localhost:8080/films/3",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"films",
"3"
]
}
},
"response": []
},
{
"name": "Delete Pulp Fiction",
"request": {
"method": "DELETE",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8080/films/999",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"films",
"999"
]
}
},
"response": []
}
]
}