Janjiraga REST API is a web service that provides access to Janjiraga.
- Hono over Bun runtime
- Typescript
- Prisma ORM
- PostgreSQL
- Render
- Neon
Endpoint | HTTP | Description |
---|---|---|
/categories |
GET |
Get all categories |
/categories |
POST |
Add new catetory |
/categories |
DELETE |
Delete all categories |
/categories/:id |
DELETE |
Delete one category by id |
/categories/:id |
PUT |
Update one category by id |
The OpenAPI Specification for the Janjiraga API offers a detailed description of the API's services. It can be accessed at the path /api-spec
.
For a more interactive experience, you can use SwaggerUI. It provides a user-friendly interface for exploring and testing the API. You can access SwaggerUI at /ui
.
You can also access the following:
- OpenAPI Specification: https://api.janjiraga.com/api-spec
- SwaggerUI: https://api.janjiraga.com/ui
To view the latest database design in more detail, you can navigate to the following link: ERD
Set up .env
by copying from .env.example
for reference
cp .env.example .env
Install dependencies
bun install
Run DB migration
bun run migrate:dev
Then you can run
bun run dev
Afterwards, open your browser and navigate to http://localhost:3000 to start exploring the API.