Skip to content

Commit

Permalink
http: update request example
Browse files Browse the repository at this point in the history
  • Loading branch information
josephjclark committed Jan 12, 2024
1 parent 64debfe commit 7094b2e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions packages/http/src/Adaptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,14 @@ export function execute(...operations) {
* Make a HTTP request
* @public
* @example
* get('/myEndpoint', {
* query: {foo: 'bar', a: 1},
* headers: {'content-type': 'application/json'},
* })
* request(
* 'GET',
* '/myEndpoint',
* {
* query: {foo: 'bar', a: 1},
* headers: {'content-type': 'application/json'},
* }
* )
* @function
* @param {string} method - The HTTP method to use
* @param {string} path - Path to resource
Expand Down

0 comments on commit 7094b2e

Please sign in to comment.