Fakultas Ilmu Komputer UI

Commit f0db7c81 authored by Usman Sidiq's avatar Usman Sidiq
Browse files

Merge branch 'dev-sidiq' into 'PBI-4-menambahkan_informasi_fasilitas_publik'

Masalah di db

See merge request !26
parents ec0e9173 fc6ffd2b
Pipeline #40707 passed with stages
in 18 minutes and 24 seconds
......@@ -9,7 +9,6 @@ UnitTest:
coverage: '/TOTAL\s+\d+\s+\d+\s+(\d+)%/'
before_script:
- pip install -r requirements.txt
- python manage.py makemigrations
- python manage.py migrate
- python manage.py collectstatic --no-input
when: on_success
......
......@@ -74,6 +74,7 @@ Make `POST` request to API endpoint `/informasi-lokasi/lokasi/add/` with the fol
### 5. To view a location list:
Make `GET` request to API endpoint `/informasi-lokasi/lokasi/list` with the key `name`. <br>
It will return a json list of locations with key:
* `id` : id of location
* `name` : location name
* `altitude` : location altitude, a float.
* `longitude` : location longitude, a float.
......@@ -115,12 +116,20 @@ Make `POST` request to API endpoint `/informasi-lokasi/lokasi/add-fasilitas/*nam
<b>Make sure you have token it your request header.</b>
<b>Add this to your request header. `Authorization` with value `token *your_token_from_request*`</b>
### 8. To see a facility details:
### 8. To see a facility list:
Make `GET` request to API endpoint `/informasi-lokasi/lokasi/list-fasilitas/*nama-lokasi*` with `name` key. <br>
It will return a json with the following key:
* `fasilitas_id`: id of the facility
* `fasilitas_location`: the description
* `id`: id of the facility
* `nama_lokasi`: location name of the facility
* `deskripsi`: the description
* `creator`: User's last name who registered the facility
* `date_time`: Date when the facility was made
* `like`: how many people like this facility. default is 0
* `dislike`: how many people dislike this facility. default is 0
* `rating`: rating of the facility. Default is 3
* `tag`: Facility tag
* `image`: Image for facility
* `is_verified`: Verified status
### 9. To see a facility details:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment