Skip to content

Jejaknesia/jejaknesia-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jejaknesia API Documentation

This documentation provides information and examples for using the Jejaknesia API.

Base URL

The base URL for all API endpoints is:

https://jejaknesia-capstoneproject.et.r.appspot.com/api

sample 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"
}
]

Authentication

To access protected endpoints, you need to include the authentication token in the request headers.

Register

Endpoint: /register
Method: POST
Description: Register a new user.
Example:

{
  "email": "adity123a@gmail.com",
  "password": "120120",
  "name": "Sujarwo",
  "id_itinerary": 1
}

Login

Endpoint: /login
Method: POST
Description: Authenticate and log in a user.
Example:

{
  "email": "adity123a@gmail.com",
  "password": "120120"
}

Blogs

Endpoint: api/blogs
Method: GET
Description: blogs

Get Blog By Id

Endpoint: api/blogs/{id}
Method: GET
Description: replace {id} with blog_id for example

Predict

Endpoint: api/predict
Method: POST
Description: This endpoint allows you to make predictions using the prediction model.

{
  "data":"Museum"
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •