0
0
Wordpressframework~5 mins

Default API endpoints in Wordpress - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the base URL for WordPress REST API default endpoints?
The base URL is /wp-json/. All default API endpoints start from this path.
Click to reveal answer
beginner
Name the default endpoint to retrieve posts in WordPress REST API.
The default endpoint to get posts is /wp-json/wp/v2/posts. It returns a list of published posts.
Click to reveal answer
beginner
What HTTP method is used to fetch data from WordPress default API endpoints?
The GET method is used to retrieve data from default API endpoints.
Click to reveal answer
intermediate
Which default endpoint would you use to get information about WordPress users?
Use /wp-json/wp/v2/users to get user data. Access may require authentication depending on permissions.
Click to reveal answer
beginner
How can you retrieve categories using WordPress default API endpoints?
You can get categories by calling /wp-json/wp/v2/categories. It returns all categories with details.
Click to reveal answer
What is the correct base path for WordPress REST API default endpoints?
A/api/
B/wp-json/
C/rest/
D/wp-api/
Which HTTP method is used to retrieve posts from the WordPress REST API?
AGET
BPOST
CPUT
DDELETE
To get a list of WordPress categories, which endpoint should you call?
A/wp-json/wp/v2/categories
B/wp-json/wp/v2/users
C/wp-json/wp/v2/tags
D/wp-json/wp/v2/posts
Which endpoint provides information about WordPress users?
A/wp-json/wp/v2/comments
B/wp-json/wp/v2/posts
C/wp-json/wp/v2/media
D/wp-json/wp/v2/users
What kind of data does the endpoint /wp-json/wp/v2/media return?
APosts
BCategories
CMedia files like images and videos
DUsers
Explain the structure and purpose of WordPress default API endpoints.
Think about how WordPress organizes its REST API paths and what data you can get.
You got /4 concepts.
    Describe how you would retrieve a list of posts and categories using WordPress default API endpoints.
    Focus on the endpoint paths and HTTP methods.
    You got /4 concepts.