Links

The API System

API Testing is fundamentally intended to reveal bugs in a single application. If not, the user can mess things up. This is one of the most challenging parts of QA Testing to assure that your application runs smoothly and properly across devices and browsers. Here is our API system which is a manual test to walk through to test theme functionality and how the theme responds to the content and settings.
To use the Traveler Rest API plugin, you need to install the JWT Authentication for WP REST API plugin
Notice:
1-To enable this option you’ll need to edit your .htaccess file adding the follow:
RewriteEngine on
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]
2-To add the secret key edit your wp-config.php file and add a new constant called JWT_AUTH_SECRET_KEY
define('JWT_AUTH_SECRET_KEY', 'your-top-secret-key');
define('JWT_AUTH_CORS_ENABLE', true);
For account admin: Please go to Theme Options > Other options > Traveler Rest API Key, then please enter the key (the key you create yourself)
post
https://domain.com/
wp-json/jwt-auth/v1/token
Login
post
https://domain.com/
wp-json/wp/v2/users/me
Information user
get
https://domain.com/
wp-json/traveler/services/tours
List Service of Tours
get
https://domain.com/
wp-json/traveler/services/hotel
List Service of Hotel
get
https://domain.com/
wp-json/traveler/services/activity
List Service of Activity
get
https://domain.com/
wp-json/traveler/services/rental
List Service of Rental
get
https://domain.com/
wp-json/traveler/services/cars
List Service of Car
get
https://domain.com/
wp-json/traveler/services/tours/{id}
Tour details
get
https://domain.com/
wp-json/traveler/services/activity/{id}
Activity details
get
https://domain.com/
wp-json/traveler/services/hotel/{id}
Hotel details
get
https://domain.com/
wp-json/traveler/services/rental/{id}
Rental details
get
https://domain.com/
wp-json/traveler/services/cars/{id}
Car details
post
https://domain.com/
wp-json/traveler/tour-add-to-cart
Tour add to cart
post
https://domain.com/
wp-json/traveler/hotel-add-to-cart
Hotel add to cart
post
https://domain.com
/wp-json/traveler/rental-add-to-cart
Rental add to cart
post
https://domain.com/
wp-json/traveler/cars-add-to-cart
Car add to cart
post
https://domain.com/
wp-json/traveler/cars-add-to-cart
Acitivity add to cart
post
https://domain.com/
wp-json/traveler/checkout
Checkout
post
https://domain.com/
/wp-json/traveler/order/list-all
Order list all
post
https://domain.com
/wp-json/traveler/order/list-all
Order list all for account admin
get
https://domain.com/
/wp-json/traveler/order/{order-id}
Order detail