[MAJOR][FIRSTCOMMIT] Added basic routes, controllers, repos to kanban service (no postgres yet)
This commit is contained in:
142
Aragon-Kanban-API.postman_collection.json
Normal file
142
Aragon-Kanban-API.postman_collection.json
Normal file
@@ -0,0 +1,142 @@
|
||||
{
|
||||
"info": {
|
||||
"name": "Aragon Kanban API",
|
||||
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
|
||||
"description": "Postman collection for Users, Boards, and Tasks API"
|
||||
},
|
||||
"item": [
|
||||
{
|
||||
"name": "Users",
|
||||
"item": [
|
||||
{
|
||||
"name": "Get All Users",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [{"key": "Authorization", "value": "Bearer testtoken"}],
|
||||
"url": { "raw": "{{baseUrl}}/users", "host": ["{{baseUrl}}"], "path": ["users"] }
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Add User",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Authorization", "value": "Bearer testtoken"}],
|
||||
"body": { "mode": "raw", "raw": "{\n \"user\": {\n \"id\": 1,\n \"name\": \"John Doe\",\n \"email\": \"john@example.com\"\n }\n}" },
|
||||
"url": { "raw": "{{baseUrl}}/users", "host": ["{{baseUrl}}"], "path": ["users"] }
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Update User",
|
||||
"request": {
|
||||
"method": "PUT",
|
||||
"header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Authorization", "value": "Bearer testtoken"}],
|
||||
"body": { "mode": "raw", "raw": "{\n \"user\": {\n \"id\": 1,\n \"name\": \"Jane Doe\",\n \"email\": \"jane@example.com\"\n }\n}" },
|
||||
"url": { "raw": "{{baseUrl}}/users", "host": ["{{baseUrl}}"], "path": ["users"] }
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Delete User",
|
||||
"request": {
|
||||
"method": "DELETE",
|
||||
"header": [{"key": "Authorization", "value": "Bearer testtoken"}],
|
||||
"url": { "raw": "{{baseUrl}}/users/1", "host": ["{{baseUrl}}"], "path": ["users", "1"] }
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Boards",
|
||||
"item": [
|
||||
{
|
||||
"name": "Get All Boards for User",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [{"key": "Authorization", "value": "Bearer testtoken"}],
|
||||
"url": { "raw": "{{baseUrl}}/boards/user/1", "host": ["{{baseUrl}}"], "path": ["boards", "user", "1"] }
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Get Board by ID",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [{"key": "Authorization", "value": "Bearer testtoken"}],
|
||||
"url": { "raw": "{{baseUrl}}/boards/user/1/123", "host": ["{{baseUrl}}"], "path": ["boards", "user", "1", "123"] }
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Add Board",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Authorization", "value": "Bearer testtoken"}],
|
||||
"body": { "mode": "raw", "raw": "{\n \"name\": \"Project Board\"\n}" },
|
||||
"url": { "raw": "{{baseUrl}}/boards/user/1", "host": ["{{baseUrl}}"], "path": ["boards", "user", "1"] }
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Update Board",
|
||||
"request": {
|
||||
"method": "PUT",
|
||||
"header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Authorization", "value": "Bearer testtoken"}],
|
||||
"body": { "mode": "raw", "raw": "{\n \"name\": \"Updated Board Name\"\n}" },
|
||||
"url": { "raw": "{{baseUrl}}/boards/user/1/123", "host": ["{{baseUrl}}"], "path": ["boards", "user", "1", "123"] }
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Delete Board",
|
||||
"request": {
|
||||
"method": "DELETE",
|
||||
"header": [{"key": "Authorization", "value": "Bearer testtoken"}],
|
||||
"url": { "raw": "{{baseUrl}}/boards/user/1/123", "host": ["{{baseUrl}}"], "path": ["boards", "user", "1", "123"] }
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Tasks",
|
||||
"item": [
|
||||
{
|
||||
"name": "Get All Tasks for Board",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [{"key": "Authorization", "value": "Bearer testtoken"}],
|
||||
"url": { "raw": "{{baseUrl}}/tasks/board/123", "host": ["{{baseUrl}}"], "path": ["tasks", "board", "123"] }
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Get Task by ID",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [{"key": "Authorization", "value": "Bearer testtoken"}],
|
||||
"url": { "raw": "{{baseUrl}}/tasks/board/123/456", "host": ["{{baseUrl}}"], "path": ["tasks", "board", "123", "456"] }
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Add Task",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Authorization", "value": "Bearer testtoken"}],
|
||||
"body": { "mode": "raw", "raw": "{\n \"title\": \"New Task\",\n \"description\": \"Task details\",\n \"status\": \"todo\"\n}" },
|
||||
"url": { "raw": "{{baseUrl}}/tasks/board/123", "host": ["{{baseUrl}}"], "path": ["tasks", "board", "123"] }
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Update Task",
|
||||
"request": {
|
||||
"method": "PUT",
|
||||
"header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Authorization", "value": "Bearer testtoken"}],
|
||||
"body": { "mode": "raw", "raw": "{\n \"title\": \"Updated Task\",\n \"description\": \"Updated details\",\n \"status\": \"done\"\n}" },
|
||||
"url": { "raw": "{{baseUrl}}/tasks/board/123/456", "host": ["{{baseUrl}}"], "path": ["tasks", "board", "123", "456"] }
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Delete Task",
|
||||
"request": {
|
||||
"method": "DELETE",
|
||||
"header": [{"key": "Authorization", "value": "Bearer testtoken"}],
|
||||
"url": { "raw": "{{baseUrl}}/tasks/board/123/456", "host": ["{{baseUrl}}"], "path": ["tasks", "board", "123", "456"] }
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user