feathers-plus / api-playground-client

Feathers frontend client for BestBuy/api-playground

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

api-playground-client

Dependency Status Download Status

Feathers frontend client for BestBuy/api-playground

Install the API server

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.

Installing and starting the Feathers 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.

Running the client

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

Help is available. You may find Feathersjs Slack convenient.

License

Copyright (c) 2016

Licensed under the MIT license.

About

Feathers frontend client for BestBuy/api-playground

License:MIT License


Languages

Language:HTML 53.4%Language:JavaScript 46.6%