Skip to content

Commit

Permalink
Replace wrong ` by ' in JS snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramna Sidharta committed Oct 5, 2020
1 parent 750341d commit e766aca
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions docs/field_boundaries_endpoints.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ A JSON array containing Fields.
const TOKEN = 'YOUR_TOKEN'

const endpoint ='https://api.withleaf.io/services/fields/api/fields'
const headers = { 'Authorization': `Bearer ${TOKEN}` }
const headers = { 'Authorization': 'Bearer ${TOKEN}' }

axios.get(endpoint, { headers })
.then(res => console.log(res.data))
Expand Down Expand Up @@ -269,7 +269,7 @@ A single Field as a JSON object.
const TOKEN = 'YOUR_TOKEN'
const endpoint = 'https://api.withleaf.io/services/fields/api/users/{leafUserId}/fields/{id}'
const headers = { 'Authorization': `Bearer ${TOKEN}` }
const headers = { 'Authorization': 'Bearer ${TOKEN}' }
axios.get(endpoint, { headers })
.then(res => console.log(res.data))
Expand Down Expand Up @@ -327,7 +327,7 @@ A JSON list of Fields.
const TOKEN = 'YOUR_TOKEN'
const endpoint ='https://api.withleaf.io/services/fields/api/fields/before'
const headers = { 'Authorization': `Bearer ${TOKEN}` }
const headers = { 'Authorization': 'Bearer ${TOKEN}' }
const param = {instant: 'END TIME'}
Expand Down Expand Up @@ -388,7 +388,7 @@ A JSON list of Fields.
const TOKEN = 'YOUR_TOKEN'
const endpoint ='https://api.withleaf.io/services/fields/api/fields/after'
const headers = { 'Authorization': `Bearer ${TOKEN}` }
const headers = { 'Authorization': 'Bearer ${TOKEN}' }
const param = {instant: 'START TIME'}
Expand Down Expand Up @@ -451,7 +451,7 @@ A JSON list of Fields.
const TOKEN = 'YOUR_TOKEN'
const endpoint ='https://api.withleaf.io/services/fields/api/fields/between'
const headers = { 'Authorization': `Bearer ${TOKEN}` }
const headers = { 'Authorization': 'Bearer ${TOKEN}' }
const interval = {
start: 'START TIME',
Expand Down Expand Up @@ -547,7 +547,7 @@ A Field as a JSON object.
const TOKEN = 'YOUR_TOKEN'
const endpoint ='https://api.withleaf.io/services/fields/api/users/{leafUserId}/fields/{id}'
const headers = { 'Authorization': `Bearer ${TOKEN}` }
const headers = { 'Authorization': 'Bearer ${TOKEN}' }
const data = {
geometry: {
Expand Down Expand Up @@ -654,7 +654,7 @@ A JSON list of Fields.
const TOKEN = 'YOUR_TOKEN'
const endpoint ='https://api.withleaf.io/services/fields/api/fields/query/intersects'
const headers = { 'Authorization': `Bearer ${TOKEN}` }
const headers = { 'Authorization': 'Bearer ${TOKEN}' }
const data = {
geometry: {
Expand Down Expand Up @@ -844,7 +844,7 @@ A single Farm as a JSON object.
const TOKEN = 'YOUR_TOKEN'
const endpoint = 'https://api.withleaf.io/services/fields/api/users/{leafUserId}/farms/{id}'
const headers = { 'Authorization': `Bearer ${TOKEN}` }
const headers = { 'Authorization': 'Bearer ${TOKEN}' }
axios.get(endpoint, { headers })
.then(res => console.log(res.data))
Expand Down Expand Up @@ -912,7 +912,7 @@ Deletes the farm with the given id.
const TOKEN = 'YOUR_TOKEN'
const endpoint ='https://api.withleaf.io/services/fields/api/users/{leafUserId}/farms/{id}'
const headers = { 'Authorization': `Bearer ${TOKEN}` }
const headers = { 'Authorization': 'Bearer ${TOKEN}' }
axios.delete(endpoint, { headers })
.then(res => console.log(res.data))
Expand Down Expand Up @@ -981,7 +981,7 @@ The created Farm as a JSON object.
const TOKEN = 'YOUR_TOKEN'
const endpoint ='https://api.withleaf.io/services/fields/api/users/{leafUserId}/farms'
const headers = { 'Authorization': `Bearer ${TOKEN}` }
const headers = { 'Authorization': 'Bearer ${TOKEN}' }

const data = {
name: "name",
Expand Down Expand Up @@ -1062,7 +1062,7 @@ The updated Farm as a JSON object.
const TOKEN = 'YOUR_TOKEN'
const endpoint ='https://api.withleaf.io/services/fields/api/users/{leafUserId}/farms'
const headers = { 'Authorization': `Bearer ${TOKEN}` }
const headers = { 'Authorization': 'Bearer ${TOKEN}' }
const data = {
id: 123,
Expand Down Expand Up @@ -1149,7 +1149,7 @@ A JSON array of Files.
const TOKEN = 'YOUR_TOKEN'
const endpoint ='https://api.withleaf.io/services/fields/api/users/{userId}/fields/{fieldId}/operations'
const headers = { 'Authorization': `Bearer ${TOKEN}` }
const headers = { 'Authorization': 'Bearer ${TOKEN}' }
axios.get(endpoint, { headers })
.then(res => console.log(res.data))
Expand Down Expand Up @@ -1206,7 +1206,7 @@ A single Operation File.
const TOKEN = 'YOUR_TOKEN'
const endpoint = 'https://api.withleaf.io/services/fields/api/users/{leafUserId}/fields/{fieldId}/operations/{id}'
const headers = { 'Authorization': `Bearer ${TOKEN}` }
const headers = { 'Authorization': 'Bearer ${TOKEN}' }
axios.get(endpoint, { headers })
.then(res => console.log(res.data))
Expand Down Expand Up @@ -1264,7 +1264,7 @@ A JSON array containing Growers.
const TOKEN = 'YOUR_TOKEN'
const endpoint ='https://api.withleaf.io/services/fields/api/growers'
const headers = { 'Authorization': `Bearer ${TOKEN}` }
const headers = { 'Authorization': 'Bearer ${TOKEN}` }

axios.get(endpoint, { headers })
.then(res => console.log(res.data))
Expand Down Expand Up @@ -1340,7 +1340,7 @@ A single Grower as a JSON object.
const TOKEN = 'YOUR_TOKEN'
const endpoint = 'https://api.withleaf.io/services/fields/api/growers/{id}'
const headers = { 'Authorization': `Bearer ${TOKEN}` }
const headers = { 'Authorization': 'Bearer ${TOKEN}' }
axios.get(endpoint, { headers })
.then(res => console.log(res.data))
Expand Down

0 comments on commit e766aca

Please sign in to comment.