An open API service indexing awesome lists of open source software.

https://github.com/zgramming/relevant-api

Rest API Tugas Akhir Teknologi Web Service Semester 5 Universitas Bina Sarana Informatika
https://github.com/zgramming/relevant-api

Last synced: 8 months ago
JSON representation

Rest API Tugas Akhir Teknologi Web Service Semester 5 Universitas Bina Sarana Informatika

Awesome Lists containing this project

README

          

# API Relevant

Rest API untuk menampilkan daftar event-event yang dapat diikuti relawan, selain itu dapat juga membuat event dengan ketentuan harus berupa organisasi.

# Konfigurasi

- Ketikkan pada terminal `composer update`
- Ketikkan pada terminal `php artisan storage:link`
- Ketikkan pada terminal `php artisan migrate:fresh --seed`
- Terakhir, ketikkan pada terminal `php artisan serve --host=0.0.0.0`

# Testing

API Category

- Get Category

(GET) http://127.0.0.1:8000/api/category

```json
{
"message": "Success Get Data",
"data": [
{
"id": 9,
"name": "Kesehatan",
"description": "Event berkaitan dengan Kesehatan",
"created_at": "2021-10-03T14:30:46.000000Z",
"updated_at": "2021-10-03T14:30:46.000000Z"
},
{
"id": 10,
"name": "Pendidikan",
"description": "Event berkaitan dengan Pendidikan",
"created_at": "2021-10-03T14:30:59.000000Z",
"updated_at": "2021-10-03T14:30:59.000000Z"
},
{
"id": 13,
"name": "TEST",
"description": "tEST",
"created_at": "2021-10-03T14:50:11.000000Z",
"updated_at": "2021-10-03T14:50:11.000000Z"
}
]
}
```


- Get Category (id)

(GET) http://127.0.0.1:8000/api/category/9

```json
{
"message": "Success Get Data",
"data": {
"id": 9,
"name": "Kesehatan",
"description": "Event berkaitan dengan Kesehatan",
"created_at": "2021-10-03T14:30:46.000000Z",
"updated_at": "2021-10-03T14:30:46.000000Z"
}
}

```


- Create

(POST) http://127.0.0.1:8000/api/category

```json
{
"message": "Create Success",
"data": {
"name": "TEST",
"description": "tEST",
"updated_at": "2021-10-03T15:53:19.000000Z",
"created_at": "2021-10-03T15:53:19.000000Z",
"id": 14
}
}

```


- Update

(PUT) http://127.0.0.1:8000/api/category

```json
{
"message": "Update Success",
"data": {
"id": 9,
"name": "Olahraga",
"description": "Olahraga",
"created_at": "2021-10-03T14:30:46.000000Z",
"updated_at": "2021-10-03T15:56:30.000000Z"
}
}

```


- Delete


(DELETE) http://127.0.0.1:8000/api/category

```json
{
"message": "Delete Success",
"data": {
"id": 9,
"name": "Olahraga",
"description": "Olahraga",
"created_at": "2021-10-03T14:30:46.000000Z",
"updated_at": "2021-10-03T15:56:30.000000Z"
}
}

```


# Issues

Please file any issues, bugs or feature request as an issue on Github

# Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.