Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 871 Bytes

README.md

File metadata and controls

42 lines (31 loc) · 871 Bytes

Wander Wisely API

This API provides endpoints to retrieve data for the Wander Wisely application.

Endpoints

Get All Data

  • Method: GET
  • Endpoint: /api/v1/alls
  • Description: Retrieve all data.
  • Parameters:
    • page (optional): The page number of the data to retrieve (default: 1).
    • size (optional): The number of items per page (default: 5).
  • Response: JSON object containing all the data.

Get Data by ID

  • Method: GET
  • Endpoint: /api/v1/alls/{id}
  • Description: Retrieve data by ID.
  • Parameters:
    • id (required): The ID of the data to retrieve.
  • Response: JSON object containing the data with the specified ID.

Usage

  1. Clone the repository:
git clone https://github.com/roniragilimankhoirul/WanderWisely-API
  1. Install dependencies:
npm install
  1. Start the server:
npm run start