Title: WPRestApiExtensions
Author: larjen
Published: <strong>10. Novembra 2015.</strong>
Last modified: 10. Novembra 2015.

---

Pretražite dodatke

Ovaj dodatak **nije testiran s najnovija 3 glavna izdanja WordPress-a**. Možda se
više ne održava ili se ne podržava i može imati problema sa kompatibilnošću kada
se koristi sa novijim verzijama WordPress-a.

![](https://s.w.org/plugins/geopattern-icon/wprestapiextensions.svg)

# WPRestApiExtensions

 Od [larjen](https://profiles.wordpress.org/larjen/)

[Skini](https://downloads.wordpress.org/plugin/wprestapiextensions.zip)

 * [Detalji](https://bs.wordpress.org/plugins/wprestapiextensions/#description)
 * [Recenzije](https://bs.wordpress.org/plugins/wprestapiextensions/#reviews)
 *  [Instalacija](https://bs.wordpress.org/plugins/wprestapiextensions/#installation)
 * [Razvoj](https://bs.wordpress.org/plugins/wprestapiextensions/#developers)

 [Podrška](https://wordpress.org/support/plugin/wprestapiextensions/)

## Opis

Extends the WP-REST API with custom read only endpoints.

If you have a WordPress blog at http://www.example.com you can reach the read only
REST API by requesting these endpoints:

    ```
    http://www.example.com/wp-json/wprestapiextensions/v1/posts?page=1&per_page=12&search=query&tags=tag1+tag2 http://www.example.com/wp-json/wprestapiextensions/v1/tag?tag_name=tag1 http://www.example.com/wp-json/wprestapiextensions/v1/post 
    ```

The above endpoints does read from database whenever they are requested, and are
thus very slow to react.

From within the plugin, there is an option to deploy a cache in front of this REST
API. When you deploy it, be warned that the folder “rest-api” will be created in
the root of your webserver.

You can then request the REST-API like this:

    ```
    http://www.example.com/rest-api/v1/posts?page=1&per_page=12&search=query&tags=tag1+tag2 http://www.example.com/rest-api/v1/tag/?_jsonp=angular.callbacks._1&tag_name=tag1 
    ```

Since these requests are infinitely cached, you can schedule an optional wipe of
the cache which will occur 5 minutes after last post alteration.

## Instalacija

 1. Download to your WordPress plugin folder and unzip.
 2. Activate plugin.

## ČPP

#### Do I use this at my own risk?

Yes.

## Recenzije

Nema recenzija za ovaj dodatak.

## Saradnici i programeri

“WPRestApiExtensions” is open source software. The following people have contributed
to this plugin.

Doprinositelji

 *   [ larjen ](https://profiles.wordpress.org/larjen/)

[Prevedi “WPRestApiExtensions” na vaš jezik.](https://translate.wordpress.org/projects/wp-plugins/wprestapiextensions)

### Zainteresirani za razvoj?

[Pregledajte kôd](https://plugins.trac.wordpress.org/browser/wprestapiextensions/),
pogledajte [SVN spremište](https://plugins.svn.wordpress.org/wprestapiextensions/)
ili se pretplatite na [dnevnik razvoja](https://plugins.trac.wordpress.org/log/wprestapiextensions/)
od [RSS](https://plugins.trac.wordpress.org/log/wprestapiextensions/?limit=100&mode=stop_on_copy&format=rss).

## Zapis promijena

#### 1.0.6

 * Refactoring plugin for better performance.
 * Adding an infinite cache for faster rest-api requests.
 * Deploy cache mechanism from control panel.
 * Optional wipe cache functionality when posts have been altered.

#### 1.0.5

 * Added search capability.
 * Added simple pagination.
 * Added a five minute caching.

#### 1.0.4

 * Added new endpoints for posts.
 * Wrapping responses

#### 1.0.3

 * If you request a tag with spaces in the name, before failing it will also try
   searching for a tag where spaces has been replaces with ‘-‘ tags.

#### 1.0.2

 * Added endpoint so you can get a tag.

#### 1.0.1

 * Added categories to response for posts.

#### 1.0.0

 * Uploaded plugin.

## Meta

 *  Version **1.0.6**
 *  Last updated **prije 11 godina**
 *  Active installations **Manje od 10**
 *  WordPress version ** 4.3.1 ili viša **
 *  Tested up to **4.3.34**
 *  Language
 * [English (US)](https://wordpress.org/plugins/wprestapiextensions/)
 * Tag
 * [toggle](https://bs.wordpress.org/plugins/tags/toggle/)
 *  [Napredni pogled](https://bs.wordpress.org/plugins/wprestapiextensions/advanced/)

## Ocjene

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/wprestapiextensions/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wprestapiextensions/reviews/)

## Doprinositelji

 *   [ larjen ](https://profiles.wordpress.org/larjen/)

## Podrška

Imate nešto za reći? Trebate pomoć?

 [Pogledaj forum podrške](https://wordpress.org/support/plugin/wprestapiextensions/)

## Pokloni

Da li bi ste željeli da podržite napredovanje ovog proširenja?

 [ Pokloni ovom proširenju ](http://exenova.dk/)