REST API about fish.
Path | Method | Description | Example |
---|---|---|---|
\fishes |
GET |
Get all fishes | http://localhost:3000/fishes |
\fishes\:id |
GET |
Get fish by ID | http://localhost:3000/fishes/550e8400-e29b-41d4-a716-446655440000 |
\fishes |
POST |
Create new fish | http://localhost:3000/fishes |
\fishes\:id |
DELETE |
Delete fish by ID | http://localhost:3000/fishes/550e8400-e29b-41d4-a716-446655440000 |
\fishes\:id |
PUT |
Update fish by ID | http://localhost:3000/fishes/550e8400-e29b-41d4-a716-446655440000 |
\fishes\:id |
PATCH |
Update fish by ID, create if not exist | http://localhost:3000/fishes/550e8400-e29b-41d4-a716-446655440000 |
\fishes\search |
GET |
Search fish by query | http://localhost:3000/fishes/search?q=ikan-tongkol |
To install dependencies:
bun install
To run:
bun run dev
Made with ❤️ by haloapping