This documentation provides information and examples for using the Jejaknesia API.
The base URL for all API endpoints is:
https://jejaknesia-capstoneproject.et.r.appspot.com/apisample data:
[
{
"place_id": "C001",
"place_name": "Benteng Rotterdam",
"city": "Sulawesi Selatan",
"address": "Bulo Gading, Kec. Ujung Pandang, Kota Makassar",
"Lon": 119.406,
"Lat": -5.13564,
"desc_place": "Fort Rotterdam atau Benteng Ujung Pandang adalah sebuah benteng peninggalan Kerajaan Gowa-Tallo.",
"price": 0,
"category_1": "Seni & Budaya",
"category_2": "Tempat Bersejarah",
"category_3": "Museum",
"category_4": "",
"category_5": "",
"category_6": "",
"category_7": "",
"combine_category": "Seni & Budaya, Tempat Bersejarah, Museum"
}
]To access protected endpoints, you need to include the authentication token in the request headers.
Endpoint: /register
Method: POST
Description: Register a new user.
Example:
{
"email": "adity123a@gmail.com",
"password": "120120",
"name": "Sujarwo",
"id_itinerary": 1
}Endpoint: /login
Method: POST
Description: Authenticate and log in a user.
Example:
{
"email": "adity123a@gmail.com",
"password": "120120"
}Endpoint: api/blogs
Method: GET
Description: blogs
Endpoint: api/blogs/{id}
Method: GET
Description: replace {id} with blog_id for example
Endpoint: api/predict
Method: POST
Description: This endpoint allows you to make predictions using the prediction model.
{
"data":"Museum"
}