test: change user to account
This commit is contained in:
@@ -1,13 +1,13 @@
|
|||||||
{
|
{
|
||||||
"info": {
|
"info": {
|
||||||
"name": "FeedSystem User API",
|
"name": "FeedSystem Account API",
|
||||||
"_postman_id": "d5b2888b-1a7d-4c38-9f6b-13ab3e8ffb51",
|
"_postman_id": "d5b2888b-1a7d-4c38-9f6b-13ab3e8ffb51",
|
||||||
"description": "Basic user endpoints for feedsystem_video_go",
|
"description": "Basic user endpoints for feedsystem_video_go",
|
||||||
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
|
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
|
||||||
},
|
},
|
||||||
"item": [
|
"item": [
|
||||||
{
|
{
|
||||||
"name": "Register User",
|
"name": "Register Account",
|
||||||
"request": {
|
"request": {
|
||||||
"method": "POST",
|
"method": "POST",
|
||||||
"header": [
|
"header": [
|
||||||
@@ -18,14 +18,14 @@
|
|||||||
"raw": "{\n \"username\": \"alice\",\n \"password\": \"pass123\"\n}"
|
"raw": "{\n \"username\": \"alice\",\n \"password\": \"pass123\"\n}"
|
||||||
},
|
},
|
||||||
"url": {
|
"url": {
|
||||||
"raw": "{{host}}/user/register",
|
"raw": "{{host}}/account/register",
|
||||||
"host": ["{{host}}"],
|
"host": ["{{host}}"],
|
||||||
"path": ["user", "register"]
|
"path": ["account", "register"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Rename User",
|
"name": "Rename Account",
|
||||||
"request": {
|
"request": {
|
||||||
"method": "POST",
|
"method": "POST",
|
||||||
"header": [
|
"header": [
|
||||||
@@ -36,9 +36,9 @@
|
|||||||
"raw": "{\n \"id\": 1,\n \"new_username\": \"alice_new\"\n}"
|
"raw": "{\n \"id\": 1,\n \"new_username\": \"alice_new\"\n}"
|
||||||
},
|
},
|
||||||
"url": {
|
"url": {
|
||||||
"raw": "{{host}}/user/rename",
|
"raw": "{{host}}/account/rename",
|
||||||
"host": ["{{host}}"],
|
"host": ["{{host}}"],
|
||||||
"path": ["user", "rename"]
|
"path": ["account", "rename"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -51,17 +51,17 @@
|
|||||||
],
|
],
|
||||||
"body": {
|
"body": {
|
||||||
"mode": "raw",
|
"mode": "raw",
|
||||||
"raw": "{\n \"id\": 1,\n \"new_password\": \"newpass456\"\n}"
|
"raw": "{\n \"username\": \"alice\",\n \"old_password\": \"pass123\",\n \"new_password\": \"newpass456\"\n}"
|
||||||
},
|
},
|
||||||
"url": {
|
"url": {
|
||||||
"raw": "{{host}}/user/changePassword",
|
"raw": "{{host}}/account/changePassword",
|
||||||
"host": ["{{host}}"],
|
"host": ["{{host}}"],
|
||||||
"path": ["user", "changePassword"]
|
"path": ["account", "changePassword"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Find User By ID",
|
"name": "Find Account By ID",
|
||||||
"request": {
|
"request": {
|
||||||
"method": "POST",
|
"method": "POST",
|
||||||
"header": [
|
"header": [
|
||||||
@@ -72,14 +72,14 @@
|
|||||||
"raw": "{\n \"id\": 1\n}"
|
"raw": "{\n \"id\": 1\n}"
|
||||||
},
|
},
|
||||||
"url": {
|
"url": {
|
||||||
"raw": "{{host}}/user/findByID",
|
"raw": "{{host}}/account/findByID",
|
||||||
"host": ["{{host}}"],
|
"host": ["{{host}}"],
|
||||||
"path": ["user", "findByID"]
|
"path": ["account", "findByID"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Find User By Username",
|
"name": "Find Account By Username",
|
||||||
"request": {
|
"request": {
|
||||||
"method": "POST",
|
"method": "POST",
|
||||||
"header": [
|
"header": [
|
||||||
@@ -90,9 +90,9 @@
|
|||||||
"raw": "{\n \"username\": \"alice_new\"\n}"
|
"raw": "{\n \"username\": \"alice_new\"\n}"
|
||||||
},
|
},
|
||||||
"url": {
|
"url": {
|
||||||
"raw": "{{host}}/user/findByUsername",
|
"raw": "{{host}}/account/findByUsername",
|
||||||
"host": ["{{host}}"],
|
"host": ["{{host}}"],
|
||||||
"path": ["user", "findByUsername"]
|
"path": ["account", "findByUsername"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -88,7 +88,7 @@
|
|||||||
],
|
],
|
||||||
"body": {
|
"body": {
|
||||||
"mode": "raw",
|
"mode": "raw",
|
||||||
"raw": "{\n \"id\": {{userId}}\n}"
|
"raw": "{\n \"id\": {{accountId}}\n}"
|
||||||
},
|
},
|
||||||
"url": {
|
"url": {
|
||||||
"raw": "{{baseUrl}}/auth/logout",
|
"raw": "{{baseUrl}}/auth/logout",
|
||||||
@@ -117,7 +117,7 @@
|
|||||||
"value": "demo123"
|
"value": "demo123"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "userId",
|
"key": "accountId",
|
||||||
"value": "1"
|
"value": "1"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user