Feathers frontend client for BestBuy/api-playground
You need to fork BestBuy/api-playground. Follow its instructions to start the Best Buy API server. Note the URL its listening to since it will be used for the API client.
npm install -g http-server
installs a HTTP server to serve the static files in this repo.
Fork this repo, feathersjs/api-playground-client, into its own folder.
Change file serverUrl.js
to point to the API server
if that's not listening to localhost:3030
.
cd public
and http-server
starts our static file server using to/the/repo/public
as root.
Note the URL its listening to.
This usually includes localhost:8080
.
Point to localhost:8080/rest.html
to run the client version which communicates with the
API server using REST HTTP protocals.
Point to localhost:8080/socket.html
for the version which communicates using web sockets.
Select the Best Buy service you want to call.
Select the call method. Methods will have some of these parameters:
id
The identifier for the resource. A resource is the data identified by a unique id. A string must be quoted, a number not.data
The resource data as a JavaScript object, e.g.{ name: 'GiftIdeas' }
.query
The query selector as a JavaScript object, e.g.{ type: 'HardGood' }
.
Server responses appear in the Results
section.
You can refer to the Feathers docs for more information.
Help is available. You may find Feathersjs Slack convenient.
Copyright (c) 2016
Licensed under the MIT license.