Fakultas Ilmu Komputer UI

Commit 61e3baad authored by Bimo Iman Smartadi's avatar Bimo Iman Smartadi
Browse files

[CHORES] Added closing / in several routing

parent 2b4fed41
......@@ -72,7 +72,7 @@ Make `POST` request to API endpoint `/informasi-lokasi/lokasi/add/` with the fol
* `image` : string of sourc image `.jpg`
### 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/`. <br>
It will return a json list of locations with key:
* `id` : id of location
* `name` : location name
......@@ -83,7 +83,7 @@ It will return a json list of locations with key:
* `image` : string of sourc image `.jpg`
### 6. To view a location details:
Make `GET` request to API endpoint `/informasi-lokasi/lokasi/detail/*nama_lokasi*` with the key `name`. <br>
Make `GET` request to API endpoint `/informasi-lokasi/lokasi/detail/*nama_lokasi*/`. <br>
It will return a json with key:
* `name` : location name
* `altitude` : location altitude, a float.
......@@ -93,7 +93,7 @@ It will return a json with key:
* `image` : string of source image `.jpg`
### 7. To register a facility:
Make `POST` request to API endpoint `/informasi-lokasi/lokasi/add-fasilitas/*nama-lokasi*` with the following key:
Make `POST` request to API endpoint `/informasi-lokasi/lokasi/add-fasilitas/*nama-lokasi*/` with the following key:
* `tag` : Fasility Tag
* The options are :
* KURSI_RODA = 'KR'
......@@ -111,7 +111,7 @@ Make `POST` request to API endpoint `/informasi-lokasi/lokasi/add-fasilitas/*nam
* TEMPAT_PARKIR_BIASA = 'TB'
* Put as a String separated by space
* example: "KR LF TD"
* example: `KR LF TD`
<br>
* `deskripsi` : Facility description.
......@@ -121,7 +121,7 @@ Make `POST` request to API endpoint `/informasi-lokasi/lokasi/add-fasilitas/*nam
<b>Add this to your request header. `Authorization` with value `token *your_token_from_request*`</b>
### 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*/`. <br>
It will return a json with the following key:
* `id`: id of the facility
* `nama_lokasi`: location name of the facility
......@@ -137,7 +137,7 @@ It will return a json with the following key:
### 9. To see a facility details:
Make `GET` request to API endpoint `/informasi-lokasi/lokasi/detail-fasilitas/*nama-lokasi*/id-fasilitas` with `name` key. <br>
Make `GET` request to API endpoint `/informasi-lokasi/lokasi/detail-fasilitas/*nama-lokasi*/*id-fasilitas*/`. <br>
It will return a json with the following key:
* `nama_lokasi`: location name of the facility
* `deskripsi`: the description
......
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