Welcome to the Syncloud documentation! This guide provides details on how to use the API endpoints.
-
Clone the repository:
git clone https://github.com/ikyawthetpaing/syncloud.git
-
Install dependencies:
cd syncloud && npm install
-
Run the API:
npm start
-
Explore API endpoints at http://localhost:3000
-
Endpoint:
/api/v1/countries
-
Method: GET
-
Retrieve a list of countries. You can include a comma-separated list of fields to filter the response.
Query Parameters:
fields
: Comma-separated list of fields to include in the response.
Example Requests:
GET /api/v1/countries
GET /api/v1/countries?fields=name,iso2,flag,states.name,states.state_code,states.cities.name
-
Endpoint:
/api/v1/countries/:code
-
Method: GET
-
Retrieve information about a specific country based on its ISO2 code.
Path Parameter:
code
: ISO2 code of the country.
Query Parameters:
fields
: Comma-separated list of fields to include in the response.
Example Requests:
GET /api/v1/countries/US
GET /api/v1/countries/US?fields=name,iso2,flag,states.name,states.state_code,states.cities.name
We welcome contributions from the community! Please follow our Contribution Guidelines if you'd like to contribute to Syncloud.
If you have questions or need assistance, contact us.
This project is licensed under the MIT License.