It allows you to perform CRUD operations (Create, Read, Update, Delete) on notices with ease.
- Create new notices.
- Retrieve details of existing notices.
- Update information for a specific notice.
- Delete a notice from the system.
To run this project, you will need to add the following environment variables to your .env file
PORT = 3000
DATABASE_URL = "postgresql://nameofPostgrsql:password@localhost:5432/nameofDB?schema=public"
Install my-project with npm
npm install
Start the project
npm run dev api/notice| Parameter | Type | Description |
|---|---|---|
api_key |
string |
Required. Your API key |
api/notice/:id| Parameter | Type | Description |
|---|---|---|
id |
string |
Required. Id of notice to fetch |
api/notice/search?q=name| Parameter | Type | Description |
|---|---|---|
name |
string |
Required. name of what you what to search |
api/notice| Parameter | Type | Description |
|---|---|---|
title |
string |
Required. The title of your notice. |
event |
string |
The type of event. |
imageUrl |
string |
The URL of the image associated with the notice. |
description |
string |
Required. A detailed description of the notice. |
link |
string |
A link related to the notice. |
api/notice/:id| Parameter | Type | Description |
|---|---|---|
title |
string |
The updated title of the notice. |
event |
string |
The updated type of event for the notice. |
imageUrl |
string |
The updated URL of the image associated with the notice. |
description |
string |
The updated detailed description of the notice. |
link |
string |
The updated link related to the notice |
api/notice/:id| Parameter | Type | Description |
|---|---|---|
id |
string |
Required. The unique identifier of the notice to be deleted. |