A simple ORM made in pure PHP.
In order to make this orm work just configure your database credentials in the config.php
You can make this orm work with any entity you create for your project. Here we just used as an exemple Tickets and Comments.
With this ORM, you can:
GET api/tickets
GET api/tickets/{id}
Parameter | Type | Description |
---|---|---|
id |
int |
Required. Id of item to fetch |
POST api/tickets
Body : | Parameter | Type | Description | | :-------- | :------- | :-------------------------------- | | title
| string
| Required. title of ticket| | section
| string
| Required. section of ticket| | description
| string
| Required. description of ticket|
GET api/tickets/export/{id}
GET api/comments
GET api/comments/ticket/{ticket_id}
Parameter | Type | Description |
---|---|---|
ticket_id |
Int |
Required. ticket Id of ticket to fetch |
POST api/comments/ticket/{ticket_id}
Body : | Parameter | Type | Description | | :-------- | :------- | :-------------------------------- | | ticket_id
| Int
| Required. id of ticket| | description
| string
| Required. description of ticket|