Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ppl-fasilkom-ui
2020
PPL-C
DTB-Layanan Fasilitas Publik Penyandang Disabilitas
PoiPoLeGan-PPLapanganTembak-DTB Layanan Fasilitas Publik Penyandang Disabilitas-BE
Commits
45cfbeda
Commit
45cfbeda
authored
Apr 17, 2020
by
Usman Sidiq
Committed by
BIMO IMAN SMARTADI
Apr 17, 2020
Browse files
Fix database register
parent
70afab1b
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
45cfbeda
...
@@ -9,7 +9,6 @@ UnitTest:
...
@@ -9,7 +9,6 @@ UnitTest:
coverage
:
'
/TOTAL\s+\d+\s+\d+\s+(\d+)%/'
coverage
:
'
/TOTAL\s+\d+\s+\d+\s+(\d+)%/'
before_script
:
before_script
:
-
pip install -r requirements.txt
-
pip install -r requirements.txt
-
python manage.py makemigrations
-
python manage.py migrate
-
python manage.py migrate
-
python manage.py collectstatic --no-input
-
python manage.py collectstatic --no-input
when
:
on_success
when
:
on_success
...
...
README.md
View file @
45cfbeda
...
@@ -74,6 +74,7 @@ Make `POST` request to API endpoint `/informasi-lokasi/lokasi/add/` with the fol
...
@@ -74,6 +74,7 @@ Make `POST` request to API endpoint `/informasi-lokasi/lokasi/add/` with the fol
### 5. To view a location list:
### 5. To view a location list:
Make
`GET`
request to API endpoint
`/informasi-lokasi/lokasi/list`
with the key
`name`
.
<br>
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:
It will return a json list of locations with key:
*
`id`
: id of location
*
`name`
: location name
*
`name`
: location name
*
`altitude`
: location altitude, a float.
*
`altitude`
: location altitude, a float.
*
`longitude`
: location longitude, a float.
*
`longitude`
: location longitude, a float.
...
@@ -115,12 +116,20 @@ Make `POST` request to API endpoint `/informasi-lokasi/lokasi/add-fasilitas/*nam
...
@@ -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>
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>
<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>
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:
It will return a json with the following key:
*
`fasilitas_id`
: id of the facility
*
`id`
: id of the facility
*
`fasilitas_location`
: the description
*
`nama_lokasi`
: location name of the facility
*
`deskripsi`
: the description
*
`creator`
: User's last name who registered the facility
*
`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:
### 9. To see a facility details:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment