Shortest path algorithm, tests and Postman
- Added algorithm and endpoint to find the shortest path between two topics; - Added respective test; - Added a JSON collection with API calls that can be imported into Postman for the convenience of the user.
This commit is contained in:
parent
f1170341fb
commit
d7748229ef
9 changed files with 419 additions and 118 deletions
|
@ -53,49 +53,3 @@ export const topicMocks: Topic[] = [
|
|||
"parentTopicId": 1743738900320
|
||||
}
|
||||
];
|
||||
|
||||
export const treeMock = [
|
||||
{
|
||||
id: 1743738847018,
|
||||
name: 'First topic',
|
||||
content: 'Topic content',
|
||||
createdAt: 'Fri Apr 04 2025 00:54:07 GMT-0300 (Brasilia Standard Time)',
|
||||
updatedAt: 'Fri Apr 04 2025 00:54:07 GMT-0300 (Brasilia Standard Time)',
|
||||
version: 1
|
||||
},
|
||||
{
|
||||
id: 1743738900320,
|
||||
name: 'Second topic',
|
||||
content: 'Topic content',
|
||||
createdAt: 'Fri Apr 04 2025 00:55:00 GMT-0300 (Brasilia Standard Time)',
|
||||
updatedAt: 'Fri Apr 04 2025 00:55:00 GMT-0300 (Brasilia Standard Time)',
|
||||
version: 1
|
||||
},
|
||||
{
|
||||
id: 1743738900599,
|
||||
name: 'Third topic',
|
||||
content: 'Topic content',
|
||||
createdAt: 'Fri Apr 04 2025 00:55:00 GMT-0300 (Brasilia Standard Time)',
|
||||
updatedAt: 'Fri Apr 04 2025 00:55:00 GMT-0300 (Brasilia Standard Time)',
|
||||
version: 1,
|
||||
parentTopicId: 1743738900320
|
||||
},
|
||||
{
|
||||
id: 1743738900800,
|
||||
name: 'Fourth topic',
|
||||
content: 'Topic content',
|
||||
createdAt: 'Fri Apr 04 2025 00:55:00 GMT-0300 (Brasilia Standard Time)',
|
||||
updatedAt: 'Fri Apr 04 2025 00:55:00 GMT-0300 (Brasilia Standard Time)',
|
||||
version: 1,
|
||||
parentTopicId: 1743738900599
|
||||
},
|
||||
{
|
||||
id: 1743739100103,
|
||||
name: 'Fifth topic',
|
||||
content: 'Topic content',
|
||||
createdAt: 'Fri Apr 04 2025 00:55:00 GMT-0300 (Brasilia Standard Time)',
|
||||
updatedAt: 'Fri Apr 04 2025 00:55:00 GMT-0300 (Brasilia Standard Time)',
|
||||
version: 1,
|
||||
parentTopicId: 1743738900320
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue