Talker Manager is a CRUD API developed in my studies at Trybe. Talkers are managed in ./talker.json
- Create new talker
- List talkers
- Edit talkers
- Delete talkers
GET /talker
GET /talker/${id}
Parameter | Type | Description |
---|---|---|
id |
string |
Required. Talker ID |
POST /login
Request body | Type | Description |
---|---|---|
email |
string |
Required. Valid email |
password |
string |
Required. Min 6 characters |
POST /talker
Request body | Type | Description |
---|---|---|
name |
string |
Required. Min 3 characters |
age |
number |
Required. At least 18 years old |
talker |
object |
Required. Must have watchedAt and rate |
talker.watchedAt |
string |
Required. Must be a valid date dd/mm/yyyy |
talker.rate |
number |
Required Between 1 and 5 |
PUT /talker/${id}
Request body | Type | Description |
---|---|---|
name |
string |
Required. Min 3 characters |
age |
number |
Required. At least 18 years old |
talker |
object |
Required. Must have watchedAt and rate |
talker.watchedAt |
string |
Required. Must be a valid date dd/mm/yyyy |
talker.rate |
number |
Required Between 1 and 5 |
DELETE /talker/${id}
Must have valid token in request headers.authorization
Parameter | Type | Description |
---|---|---|
id |
string |
Required. Talker ID |
GET /talker/search?q=${name}
Parameter | Type | Description |
---|---|---|
name |
string |
Required |
Clone the project
git clone [email protected]:tostesdaniel/talker-manager.git
Go to the project directory
cd talker-manager
Install dependencies
npm install
Start the server
npm start
👤 Daniel Tostes
- Github: @tostesdaniel
- LinkedIn: @danieltostes
- Node.js
- Express