Retrieve the state from the API described in the server/ directory of Nuxt.
This is a preset for the fetch protocol with the request destination set to /api and the Sync option enabled.
URI | api://{**path} |
---|---|
Path | Specify the path to the ServerAPI. Please verify the runtime environment before using the ServerAPI. |
Example | api://users |
Unlike the fetch protocol, data synchronization is enabled by default.
Use the GET method to retrieve data and the PUT method to update data.
Specify the HTTP Method when calling the action.