Simple system for tracking internship
First clone the project, then run:
composer install
Run db/database.sql query, then:
cp .env.example .env
in .env enter you db credentials, then run:
vendor/bin/phinx seed:run
Now you can start the server and test endpoints
- /api/mentors/1
- /api/interns/1
- /api/groups/1
- /api/groups?limit=5&page=2&sort=id&order=desc
Parameters | Description |
---|---|
limit | Records per page |
page | Current page |
sort | Sorted by |
order | Ordered by |
- /api/mentors
- /api/interns
Parameters |
---|
first_name |
last_name |
group_id |
- /api/groups
Parameters |
---|
name |
- /api/comments
Parameters |
---|
body |
mentor_id |
intern_id |
- /api/mentors/1
- /api/interns/1
- /api/groups/1
- /api/mentors/1
- /api/interns/1
- /api/groups/1