Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "info": {
- "_postman_id": "bcc3daf3-8c74-40aa-9471-859fb33df027",
- "name": "Express-API",
- "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
- },
- "item": [
- {
- "name": "Markers",
- "request": {
- "method": "GET",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/json"
- },
- {
- "key": "Authorization",
- "value": "{{API_TOKEN}}"
- }
- ],
- "body": {
- "mode": "raw",
- "raw": "{\n\"email\": \"tester@tester.pl\",\n\"firstName\": \"Pawet\",\n\"lastName\": \"Ssdffa\",\n\"password\": \"1tfdt5sdf6\"\n}"
- },
- "url": {
- "raw": "{{HOST}}/users",
- "host": [
- "{{HOST}}"
- ],
- "path": [
- "users"
- ]
- }
- },
- "response": []
- },
- {
- "name": "Users",
- "request": {
- "method": "GET",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/json"
- },
- {
- "key": "Authorization",
- "value": "{{API_TOKEN}}"
- }
- ],
- "body": {
- "mode": "raw",
- "raw": "{\n\"email\": \"tester@tester.pl\",\n\"firstName\": \"Pawet\",\n\"lastName\": \"Ssdffa\",\n\"password\": \"1tfdt5sdf6\"\n}"
- },
- "url": {
- "raw": "{{HOST}}/users",
- "host": [
- "{{HOST}}"
- ],
- "path": [
- "users"
- ]
- }
- },
- "response": []
- },
- {
- "name": "Users With Search",
- "request": {
- "method": "GET",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/json"
- },
- {
- "key": "Authorization",
- "value": "{{API_TOKEN}}"
- }
- ],
- "body": {
- "mode": "raw",
- "raw": "{\n\"email\": \"tester@tester.pl\",\n\"firstName\": \"Pawet\",\n\"lastName\": \"Ssdffa\",\n\"password\": \"1tfdt5sdf6\"\n}"
- },
- "url": {
- "raw": "{{HOST}}/users?search[0][key]=userName&search[0][term]=test",
- "host": [
- "{{HOST}}"
- ],
- "path": [
- "users"
- ],
- "query": [
- {
- "key": "search[0][key]",
- "value": "userName"
- },
- {
- "key": "search[0][term]",
- "value": "test"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "Users Paginated",
- "request": {
- "method": "GET",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/json"
- },
- {
- "key": "Authorization",
- "value": "{{API_TOKEN}}"
- }
- ],
- "body": {
- "mode": "raw",
- "raw": "{\n\"email\": \"tester@tester.pl\",\n\"firstName\": \"Pawet\",\n\"lastName\": \"Ssdffa\",\n\"password\": \"1tfdt5sdf6\"\n}"
- },
- "url": {
- "raw": "{{HOST}}/users?limit=1&skip=1",
- "host": [
- "{{HOST}}"
- ],
- "path": [
- "users"
- ],
- "query": [
- {
- "key": "limit",
- "value": "1"
- },
- {
- "key": "skip",
- "value": "1"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "User My Profile",
- "request": {
- "method": "GET",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/json"
- },
- {
- "key": "Authorization",
- "value": "{{API_TOKEN}}"
- }
- ],
- "body": {
- "mode": "raw",
- "raw": "{\n\"email\": \"tester@tester.pl\",\n\"firstName\": \"Pawet\",\n\"lastName\": \"Ssdffa\",\n\"password\": \"1tfdt5sdf6\"\n}"
- },
- "url": {
- "raw": "{{HOST}}/users/me",
- "host": [
- "{{HOST}}"
- ],
- "path": [
- "users",
- "me"
- ]
- }
- },
- "response": []
- },
- {
- "name": "User One",
- "request": {
- "method": "GET",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/json"
- },
- {
- "key": "Authorization",
- "value": "{{API_TOKEN}}"
- }
- ],
- "body": {
- "mode": "raw",
- "raw": "{\n\"email\": \"tester@tester.pl\",\n\"firstName\": \"Pawet\",\n\"lastName\": \"Ssdffa\",\n\"password\": \"1tfdt5sdf6\"\n}"
- },
- "url": {
- "raw": "{{HOST}}/users/1",
- "host": [
- "{{HOST}}"
- ],
- "path": [
- "users",
- "1"
- ]
- }
- },
- "response": []
- },
- {
- "name": "Login",
- "request": {
- "method": "POST",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/json"
- }
- ],
- "body": {
- "mode": "raw",
- "raw": "{\n\"user\": \"admin@admin.pl\",\n\"password\": \"123456\"\n}\n"
- },
- "url": {
- "raw": "{{HOST}}/login",
- "host": [
- "{{HOST}}"
- ],
- "path": [
- "login"
- ]
- }
- },
- "response": []
- },
- {
- "name": "Register",
- "request": {
- "method": "POST",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/json"
- }
- ],
- "body": {
- "mode": "raw",
- "raw": "{\n\"email\": \"admin@admin.pl\",\n\"userName\": \"admin\", \n\"firstName\": \"Jacek2\",\n\"lastName\": \"Administrator2\",\n\"password\": \"123456\",\n\"passwordRetyped\": \"123456\"\n\n}"
- },
- "url": {
- "raw": "{{HOST}}/register",
- "host": [
- "{{HOST}}"
- ],
- "path": [
- "register"
- ]
- }
- },
- "response": []
- },
- {
- "name": "Users",
- "request": {
- "method": "POST",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/json"
- },
- {
- "key": "Authorization",
- "value": "{{API_TOKEN}}"
- }
- ],
- "body": {
- "mode": "raw",
- "raw": "{\n\"email\": \"tester@tester.pl\",\n\"userName\": \"test\", \n\"firstName\": \"Pawet\",\n\"lastName\": \"Tester\",\n\"password\": \"123456\",\n\"passwordRetyped\": \"123456\"\n\n}"
- },
- "url": {
- "raw": "{{HOST}}/users",
- "host": [
- "{{HOST}}"
- ],
- "path": [
- "users"
- ]
- }
- },
- "response": []
- },
- {
- "name": "Users",
- "request": {
- "method": "PUT",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/json"
- },
- {
- "key": "Authorization",
- "value": "{{API_TOKEN}}"
- }
- ],
- "body": {
- "mode": "raw",
- "raw": "{\n\"email\": \"admin@tester.pl\",\n\"userName\": \"changed-user-name\",\n\"firstName\": \"dsfhgdfh\",\n\"lastName\": \"12345\",\n\"password\": \"1tfdt5sdf6\"\n}"
- },
- "url": {
- "raw": "{{HOST}}/users/3",
- "host": [
- "{{HOST}}"
- ],
- "path": [
- "users",
- "3"
- ]
- }
- },
- "response": []
- },
- {
- "name": "User",
- "request": {
- "method": "DELETE",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/json"
- },
- {
- "key": "Authorization",
- "value": "{{API_TOKEN}}"
- }
- ],
- "body": {
- "mode": "raw",
- "raw": ""
- },
- "url": {
- "raw": "{{HOST}}/users/3",
- "host": [
- "{{HOST}}"
- ],
- "path": [
- "users",
- "3"
- ]
- }
- },
- "response": []
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement