diff --git a/app/Http/Controllers/Api/V1/ApiShopsController.php b/app/Http/Controllers/Api/V1/ApiShopsController.php index 85598e12..3cc8d839 100644 --- a/app/Http/Controllers/Api/V1/ApiShopsController.php +++ b/app/Http/Controllers/Api/V1/ApiShopsController.php @@ -32,15 +32,9 @@ class ApiShopsController extends Controller public static array $searchableFields = [ ]; - #[Endpoint( - title: 'GET /', - authenticated: true - )] - #[Authenticated] - #[Response( - status: 403, - description: 'Method Not Allowed', - )] + /** + * @hideFromAPIDocumentation + */ public function index(): JsonResponse { $this->responseCode = 403; @@ -99,7 +93,7 @@ public function store(): JsonResponse $shopTeam = Team::where('name', $shopName)->first(); - if (is_null($shopTeam)) { + if (!$shopTeam) { $shopTeam = new Team(); $shopTeam->name = $shopName; $shopTeam->save(); @@ -112,7 +106,7 @@ public function store(): JsonResponse $shopUser = User::where('email', $userEmail)->first(); - if (is_null($shopUser)) { + if (!$shopUser) { $shopUser = new User(); $shopUser->email = $userEmail; $shopUser->password = $userEmail; @@ -126,7 +120,7 @@ public function store(): JsonResponse */ $shopTeamUser = TeamUser::where('team_id', $shopTeam->id)->where('user_id', $shopUser->id)->first(); - if (is_null($shopTeamUser)) { + if (!$shopTeamUser) { $shopTeamUser = new TeamUser(); $shopTeamUser->user_id = $shopUser->id; $shopTeamUser->team_id = $shopTeam->id; @@ -142,7 +136,9 @@ public function store(): JsonResponse ); $this->message = ApiResponse::RESPONSE_SAVED->value . '. Here is the API Token for the user linked to this new team. It will only be displayed ONCE, so please store it in a secure manner.'; - $this->data = $token->plainTextToken; + $this->data = [ + 'token' => $token->plainTextToken + ]; } catch (Exception $e) { @@ -155,16 +151,9 @@ public function store(): JsonResponse return $this->respond(); } - #[Endpoint( - title: 'GET /{id}', - description: 'Get shop with ID {id}', - authenticated: true - )] - #[Authenticated] - #[Response( - status: 403, - description: 'Method Not Allowed', - )] + /** + * @hideFromAPIDocumentation + */ public function show(int $id) { $this->responseCode = 403; @@ -173,16 +162,9 @@ public function show(int $id) return $this->respond(); } - #[Endpoint( - title: 'PUT /{id}', - description: 'Update shop with ID {id}.', - authenticated: true - )] - #[Authenticated] - #[Response( - status: 403, - description: 'Method Not Allowed', - )] + /** + * @hideFromAPIDocumentation + */ public function update(string $id) { $this->responseCode = 403; @@ -191,16 +173,9 @@ public function update(string $id) return $this->respond(); } - #[Endpoint( - title: 'DELETE /', - description: 'DELETE shop with ID {id}.', - authenticated: true - )] - #[Authenticated] - #[Response( - status: 403, - description: 'Method Not Allowed', - )] + /** + * @hideFromAPIDocumentation + */ public function destroy(string $id) { $this->responseCode = 403; diff --git a/resources/views/scribe/index.blade.php b/resources/views/scribe/index.blade.php index 8c13c63d..634dc4de 100644 --- a/resources/views/scribe/index.blade.php +++ b/resources/views/scribe/index.blade.php @@ -4,7 +4,7 @@ - Open Food Foundation VINE - API Documentation + Open Food Network Vine Platform - API Documentation @@ -143,7 +143,7 @@ function highlightSidebarItem(evt = null) { style="width: calc((100% - 1800px) / 2 + 300px); padding-left: calc((100% - 1800px) / 2); min-width: 300px; max-height: 100vh">

- Open Food Foundation VINE - API Documentation + Open Food Network Vine Platform - API Documentation

@@ -268,54 +268,6 @@ class="svg-inline--fa fa-chevron-right fa-fw sl-icon sl-text-muted" - - - - - @@ -507,7 +459,7 @@ class="svg-inline--fa fa-chevron-right fa-fw sl-icon sl-text-muted"

- Open Food Foundation VINE - API Documentation + Open Food Network Vine Platform - API Documentation

@@ -521,9 +473,9 @@ class="svg-inline--fa fa-chevron-right fa-fw sl-icon sl-text-muted"

Introduction

-

The API documentation for Open Food Foundation VINE.

+

The API documentation for Open Food Network Vine Platform.

This documentation aims to provide all the information you need to work with our API.

-
http://vine.test
+ class="sl-overflow-x-hidden sl-truncate sl-text-muted">https://vine.openfoodnetwork.org.au
/api/v1/my-team-vouchers
@@ -860,7 +812,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
curl --request GET \
-    --get "http://vine.test/api/v1/my-team-vouchers?cached=1&page=1&limit=50&fields=id%2Ccreated_at&orderBy=orderBy%3Did%2Cdesc&orderBy%5B%5D=orderBy%5B%5D%3Did%2Cdesc%26orderBy%5B%5D%3Dcreated_at%2Casc&where=where%3Did%2Clike%2C%2A550e%2A&where%5B%5D=where%5B%5D%3Did%2Clike%2C%2A550e%2A%26where%5B%5D%3Dcreated_at%2C%3E%3D%2C2024-01-01" \
+    --get "https://vine.openfoodnetwork.org.au/api/v1/my-team-vouchers?cached=1&page=1&limit=50&fields=id%2Ccreated_at&orderBy=orderBy%3Did%2Cdesc&orderBy%5B%5D=orderBy%5B%5D%3Did%2Cdesc%26orderBy%5B%5D%3Dcreated_at%2Casc&where=where%3Did%2Clike%2C%2A550e%2A&where%5B%5D=where%5B%5D%3Did%2Clike%2C%2A550e%2A%26where%5B%5D%3Dcreated_at%2C%3E%3D%2C2024-01-01" \
     --header "Authorization: Bearer {YOUR_API_TOKEN}" \
     --header "Content-Type: application/json" \
     --header "Accept: application/json"
@@ -871,7 +823,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
const url = new URL(
-    "http://vine.test/api/v1/my-team-vouchers"
+    "https://vine.openfoodnetwork.org.au/api/v1/my-team-vouchers"
 );
 
 const params = {
@@ -904,7 +856,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
$client = new \GuzzleHttp\Client();
-$url = 'http://vine.test/api/v1/my-team-vouchers';
+$url = 'https://vine.openfoodnetwork.org.au/api/v1/my-team-vouchers';
 $response = $client->get(
     $url,
     [
@@ -936,7 +888,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
import requests
 import json
 
-url = 'http://vine.test/api/v1/my-team-vouchers'
+url = 'https://vine.openfoodnetwork.org.au/api/v1/my-team-vouchers'
 params = {
   'cached': '1',
   'page': '1',
@@ -1057,7 +1009,7 @@ class="language-json sl-overflow-x-auto sl-overflow-y-auto">{
         
-
http://vine.test
+ class="sl-overflow-x-hidden sl-truncate sl-text-muted">https://vine.openfoodnetwork.org.au
/api/v1/my-team-vouchers/{id}
@@ -1259,7 +1211,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
curl --request GET \
-    --get "http://vine.test/api/v1/my-team-vouchers/550e8400-e29b-41d4-a716-446655440000?cached=1&fields=id%2Ccreated_at" \
+    --get "https://vine.openfoodnetwork.org.au/api/v1/my-team-vouchers/550e8400-e29b-41d4-a716-446655440000?cached=1&fields=id%2Ccreated_at" \
     --header "Authorization: Bearer {YOUR_API_TOKEN}" \
     --header "Content-Type: application/json" \
     --header "Accept: application/json"
@@ -1270,7 +1222,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
const url = new URL(
-    "http://vine.test/api/v1/my-team-vouchers/550e8400-e29b-41d4-a716-446655440000"
+    "https://vine.openfoodnetwork.org.au/api/v1/my-team-vouchers/550e8400-e29b-41d4-a716-446655440000"
 );
 
 const params = {
@@ -1297,7 +1249,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
$client = new \GuzzleHttp\Client();
-$url = 'http://vine.test/api/v1/my-team-vouchers/550e8400-e29b-41d4-a716-446655440000';
+$url = 'https://vine.openfoodnetwork.org.au/api/v1/my-team-vouchers/550e8400-e29b-41d4-a716-446655440000';
 $response = $client->get(
     $url,
     [
@@ -1323,7 +1275,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
import requests
 import json
 
-url = 'http://vine.test/api/v1/my-team-vouchers/550e8400-e29b-41d4-a716-446655440000'
+url = 'https://vine.openfoodnetwork.org.au/api/v1/my-team-vouchers/550e8400-e29b-41d4-a716-446655440000'
 params = {
   'cached': '1',
   'fields': 'id,created_at',
@@ -1415,7 +1367,7 @@ class="sl-text-5xl sl-leading-tight sl-font-prose sl-text-heading"
         
-
http://vine.test
+ class="sl-overflow-x-hidden sl-truncate sl-text-muted">https://vine.openfoodnetwork.org.au
/api/v1/my-teams
@@ -1609,1380 +1561,86 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test

Order the data by a given field. Comma-separated string.

-
-
- Example: -
-
- orderBy=id,desc -
-
-
-
-
-
-
-
-
-
-
orderBy[]
- comma-separated -
-
-
-

Compound orderBy. Order the data by a given field. Comma-separated string. Can not be used in conjunction as standard orderBy.

-
-
- Example: -
-
- orderBy[]=id,desc&orderBy[]=created_at,asc -
-
-
-
-
-
-
-
-
-
-
where
- comma-separated -
-
-
-

Filter the request on a single field. Key-Value or Key-Operator-Value comma-separated string.

-
-
- Example: -
-
- where=id,like,*550e* -
-
-
-
-
-
-
-
-
-
-
where[]
- comma-separated -
-
-
-

Compound where. Use when you need to filter on multiple where's. Note only AND is possible; ORWHERE is not available.

-
-
- Example: -
-
- where[]=id,like,*550e*&where[]=created_at,>=,2024-01-01 -
-
-
-
-
-
- - - - - - - -
-
- - -
-
-
-
- Example request: - -
-
-
-
-
-
-
curl --request GET \
-    --get "http://vine.test/api/v1/my-teams?cached=1&page=1&limit=50&fields=id%2Ccreated_at&orderBy=orderBy%3Did%2Cdesc&orderBy%5B%5D=orderBy%5B%5D%3Did%2Cdesc%26orderBy%5B%5D%3Dcreated_at%2Casc&where=where%3Did%2Clike%2C%2A550e%2A&where%5B%5D=where%5B%5D%3Did%2Clike%2C%2A550e%2A%26where%5B%5D%3Dcreated_at%2C%3E%3D%2C2024-01-01" \
-    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
-    --header "Content-Type: application/json" \
-    --header "Accept: application/json"
-
-
- - - -
- -
-
-
-
-
-
Example response:
-
-
-
-
-
- -
-
-
-
{
-    "meta": {
-        "responseCode": 200,
-        "limit": 50,
-        "offset": 0,
-        "message": "",
-        "cached": false,
-        "availableRelations": []
-    },
-    "data": {
-        "current_page": 1,
-        "data": [
-            {
-                "id": 1,
-                "name": "Team A",
-                "created_at": "2024-08-16T06:54:28.000000Z",
-                "updated_at": "2024-08-16T06:54:28.000000Z",
-                "deleted_at": null
-            },
-            {
-                "id": 2,
-                "name": "Team B",
-                "created_at": "2024-08-16T06:54:29.000000Z",
-                "updated_at": "2024-08-16T06:54:29.000000Z",
-                "deleted_at": null
-            }
-        ],
-        "first_page_url": "https://vine.test/api/v1/my-teams?page=1",
-        "from": 1,
-        "last_page": 1,
-        "last_page_url": "https://vine.test/api/v1/my-teams?page=1",
-        "links": [
-            {
-                "url": null,
-                "label": "« Previous",
-                "active": false
-            },
-            {
-                "url": "https://vine.test/api/v1/my-teams?page=1",
-                "label": "1",
-                "active": true
-            },
-            {
-                "url": null,
-                "label": "Next »",
-                "active": false
-            }
-        ],
-        "next_page_url": null,
-        "path": "https://vine.test/api/v1/my-teams",
-        "per_page": 50,
-        "prev_page_url": null,
-        "to": 2,
-        "total": 2
-    }
-}
-
-
-
-
-
- - -

- /shops -

- -

API for managing shops

- -
-
-
-
-

- POST / -

-
-
- -
-
-
- POST -
-
-
http://vine.test
-
/api/v1/shops
-
- -
requires authentication -
-
-
- -

Create a new shop.

-
-
-
-
-
-
-

- Headers -

-
-
-
-
-
-
-
Authorization
-
-
-
- Example: -
-
- Bearer {YOUR_API_TOKEN} -
-
-
-
-
-
-
-
-
-
-
Content-Type
-
-
-
- Example: -
-
- application/json -
-
-
-
-
-
-
-
-
-
-
Accept
-
-
-
- Example: -
-
- application/json -
-
-
-
-
-
-
- - - - -
-

Body Parameters

- -
- - - -
-
- -
-
-
- -
-
- - -
-
-
-
- Example request: - -
-
-
-
-
-
-
curl --request POST \
-    "http://vine.test/api/v1/shops" \
-    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
-    --header "Content-Type: application/json" \
-    --header "Accept: application/json" \
-    --data "{
-    \"shop_name\": \"qui\",
-    \"user_email\": \"ppfeffer@example.net\",
-    \"user_name\": \"tenetur\"
-}"
-
-
-
- - - -
- -
-
-
-
-
-
Example response:
-
-
-
-
-
- -
-
-
-
{"meta":{"responseCode":200,"limit":50,"offset":0,"message":"Saved. Here is the API Token for the user linked to this new team. It will only be displayed ONCE, so please store it in a secure manner.","cached":false,"availableRelations":[]},"data":"{TOKEN}"
-
-
-
-
-
-
- -
-
-
-
-

- GET / -

-
-
- -
-
-
- GET -
-
-
http://vine.test
-
/api/v1/shops
-
- -
requires authentication -
-
-
- - -
-
-
-
-
-
-

- Headers -

-
-
-
-
-
-
-
Authorization
-
-
-
- Example: -
-
- Bearer {YOUR_API_TOKEN} -
-
-
-
-
-
-
-
-
-
-
Content-Type
-
-
-
- Example: -
-
- application/json -
-
-
-
-
-
-
-
-
-
-
Accept
-
-
-
- Example: -
-
- application/json -
-
-
-
-
-
-
- - - - - -
-
-
- -
-
- - -
-
-
-
- Example request: - -
-
-
-
-
-
-
curl --request GET \
-    --get "http://vine.test/api/v1/shops" \
-    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
-    --header "Content-Type: application/json" \
-    --header "Accept: application/json"
-
-
- - - -
- -
-
-
-
-
-
Example response:
-
-
-
-
-
- -
-
-
- - - - - - - Headers - - -
                                                            cache-control
-                                                            : no-cache, private
-                                                                                                                    content-type
-                                                            : application/json
-                                                                                                                    access-control-allow-origin
-                                                            : *
-                                                         
-
- -
{
-    "message": "Unauthenticated."
-}
-
-
-
-
-
null
-
-
-
-
-
-
- -
-
-
-
-

- GET /{id} -

-
-
- -
-
-
- GET -
-
-
http://vine.test
-
/api/v1/shops/{id}
-
- -
requires authentication -
-
-
- -

Get shop with ID {id}

-
-
-
-
-
-
-

- Headers -

-
-
-
-
-
-
-
Authorization
-
-
-
- Example: -
-
- Bearer {YOUR_API_TOKEN} -
-
-
-
-
-
-
-
-
-
-
Content-Type
-
-
-
- Example: -
-
- application/json -
-
-
-
-
-
-
-
-
-
-
Accept
-
-
-
- Example: -
-
- application/json -
-
-
-
-
-
-
- -
-

URL Parameters

- -
-
-
-
-
-
-
id
- string -
-
- required -
-
-

The ID of the shop.

-
-
- Example: -
-
- esse -
-
-
-
-
-
-
- - - - -
-
-
- -
-
- - -
-
-
-
- Example request: - -
-
-
-
-
-
-
curl --request GET \
-    --get "http://vine.test/api/v1/shops/esse" \
-    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
-    --header "Content-Type: application/json" \
-    --header "Accept: application/json"
-
-
- - - -
- -
-
-
-
-
-
Example response:
-
-
-
-
-
- -
-
-
- - - - - - - Headers - - -
                                                            cache-control
-                                                            : no-cache, private
-                                                                                                                    content-type
-                                                            : application/json
-                                                                                                                    access-control-allow-origin
-                                                            : *
-                                                         
-
- -
{
-    "message": "Unauthenticated."
-}
-
-
-
-
-
null
-
-
-
-
-
-
- -
-
-
-
-

- PUT /{id} -

-
-
- -
-
-
- PUT -
-
-
http://vine.test
-
/api/v1/shops/{id}
-
- -
requires authentication -
-
-
- -

Update shop with ID {id}.

-
-
-
-
-
-
-

- Headers -

-
-
-
-
-
-
-
Authorization
-
-
+
Example:
- Bearer {YOUR_API_TOKEN} + orderBy=id,desc
-
+
-
Content-Type
+
orderBy[]
+ comma-separated
+
+

Compound orderBy. Order the data by a given field. Comma-separated string. Can not be used in conjunction as standard orderBy.

+
Example:
- application/json + orderBy[]=id,desc&orderBy[]=created_at,asc
-
+
-
Accept
+
where
+ comma-separated
+
+

Filter the request on a single field. Key-Value or Key-Operator-Value comma-separated string.

+
Example:
- application/json + where=id,like,*550e*
-
-
- -
-

URL Parameters

- -
-
+
-
id
- string +
where[]
+ comma-separated
-
- required
-

The ID of the shop.

+

Compound where. Use when you need to filter on multiple where's. Note only AND is possible; ORWHERE is not available.

Example:
- est + where[]=id,like,*550e*&where[]=created_at,>=,2024-01-01
-
+
- -
@@ -3012,8 +1670,8 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
style="">
-
curl --request PUT \
-    "http://vine.test/api/v1/shops/est" \
+                                            
curl --request GET \
+    --get "https://vine.openfoodnetwork.org.au/api/v1/my-teams?cached=1&page=1&limit=50&fields=id%2Ccreated_at&orderBy=orderBy%3Did%2Cdesc&orderBy%5B%5D=orderBy%5B%5D%3Did%2Cdesc%26orderBy%5B%5D%3Dcreated_at%2Casc&where=where%3Did%2Clike%2C%2A550e%2A&where%5B%5D=where%5B%5D%3Did%2Clike%2C%2A550e%2A%26where%5B%5D%3Dcreated_at%2C%3E%3D%2C2024-01-01" \
     --header "Authorization: Bearer {YOUR_API_TOKEN}" \
     --header "Content-Type: application/json" \
     --header "Accept: application/json"
@@ -3024,9 +1682,22 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
const url = new URL(
-    "http://vine.test/api/v1/shops/est"
+    "https://vine.openfoodnetwork.org.au/api/v1/my-teams"
 );
 
+const params = {
+    "cached": "1",
+    "page": "1",
+    "limit": "50",
+    "fields": "id,created_at",
+    "orderBy": "orderBy=id,desc",
+    "orderBy[]": "orderBy[]=id,desc&orderBy[]=created_at,asc",
+    "where": "where=id,like,*550e*",
+    "where[]": "where[]=id,like,*550e*&where[]=created_at,>=,2024-01-01",
+};
+Object.keys(params)
+    .forEach(key => url.searchParams.append(key, params[key]));
+
 const headers = {
     "Authorization": "Bearer {YOUR_API_TOKEN}",
     "Content-Type": "application/json",
@@ -3034,7 +1705,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
}; fetch(url, { - method: "PUT", + method: "GET", headers, }).then(response => response.json());
@@ -3044,8 +1715,8 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
$client = new \GuzzleHttp\Client();
-$url = 'http://vine.test/api/v1/shops/est';
-$response = $client->put(
+$url = 'https://vine.openfoodnetwork.org.au/api/v1/my-teams';
+$response = $client->get(
     $url,
     [
         'headers' => [
@@ -3053,6 +1724,16 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
'Content-Type' => 'application/json', 'Accept' => 'application/json', ], + 'query' => [ + 'cached' => '1', + 'page' => '1', + 'limit' => '50', + 'fields' => 'id,created_at', + 'orderBy' => 'orderBy=id,desc', + 'orderBy[]' => 'orderBy[]=id,desc&orderBy[]=created_at,asc', + 'where' => 'where=id,like,*550e*', + 'where[]' => 'where[]=id,like,*550e*&where[]=created_at,>=,2024-01-01', + ], ] ); $body = $response->getBody(); @@ -3066,14 +1747,24 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
import requests
 import json
 
-url = 'http://vine.test/api/v1/shops/est'
+url = 'https://vine.openfoodnetwork.org.au/api/v1/my-teams'
+params = {
+  'cached': '1',
+  'page': '1',
+  'limit': '50',
+  'fields': 'id,created_at',
+  'orderBy': 'orderBy=id,desc',
+  'orderBy[]': 'orderBy[]=id,desc&orderBy[]=created_at,asc',
+  'where': 'where=id,like,*550e*',
+  'where[]': 'where[]=id,like,*550e*&where[]=created_at,>=,2024-01-01',
+}
 headers = {
   'Authorization': 'Bearer {YOUR_API_TOKEN}',
   'Content-Type': 'application/json',
   'Accept': 'application/json'
 }
 
-response = requests.request('PUT', url, headers=headers)
+response = requests.request('GET', url, headers=headers, params=params)
 response.json()
@@ -3087,10 +1778,10 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
Example response:
@@ -3107,12 +1798,67 @@ class="svg-inline--fa fa-copy fa-fw fa-sm sl-icon" role="img" -
null
+ class="language-json sl-overflow-x-auto sl-overflow-y-auto">{ + "meta": { + "responseCode": 200, + "limit": 50, + "offset": 0, + "message": "", + "cached": false, + "availableRelations": [] + }, + "data": { + "current_page": 1, + "data": [ + { + "id": 1, + "name": "Team A", + "created_at": "2024-08-16T06:54:28.000000Z", + "updated_at": "2024-08-16T06:54:28.000000Z", + "deleted_at": null + }, + { + "id": 2, + "name": "Team B", + "created_at": "2024-08-16T06:54:29.000000Z", + "updated_at": "2024-08-16T06:54:29.000000Z", + "deleted_at": null + } + ], + "first_page_url": "https://vine.test/api/v1/my-teams?page=1", + "from": 1, + "last_page": 1, + "last_page_url": "https://vine.test/api/v1/my-teams?page=1", + "links": [ + { + "url": null, + "label": "« Previous", + "active": false + }, + { + "url": "https://vine.test/api/v1/my-teams?page=1", + "label": "1", + "active": true + }, + { + "url": null, + "label": "Next »", + "active": false + } + ], + "next_page_url": null, + "path": "https://vine.test/api/v1/my-teams", + "per_page": 50, + "prev_page_url": null, + "to": 2, + "total": 2 + } +}
@@ -3120,30 +1866,38 @@ class="language-json sl-overflow-x-auto sl-overflow-y-auto">null
-
+

+ /shops +

+ +

API for managing shops

+ +

- DELETE / + id="shops-POSTapi-v1-shops"> + POST /

-
- DELETE + POST
http://vine.test
-
/api/v1/shops/{id}
+ class="sl-overflow-x-hidden sl-truncate sl-text-muted">https://vine.openfoodnetwork.org.au
+
/api/v1/shops
http://vine.test
-

DELETE shop with ID {id}.

+

Create a new shop.

@@ -3221,39 +1975,90 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
+ + +
-

URL Parameters

+

Body Parameters

-
-
+
+ + -
- - +
+ +
+
@@ -3283,11 +2088,17 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test style="">
-
curl --request DELETE \
-    "http://vine.test/api/v1/shops/in" \
+                                            
curl --request POST \
+    "https://vine.openfoodnetwork.org.au/api/v1/shops" \
     --header "Authorization: Bearer {YOUR_API_TOKEN}" \
     --header "Content-Type: application/json" \
-    --header "Accept: application/json"
+ --header "Accept: application/json" \ + --data "{ + \"shop_name\": \"velit\", + \"user_email\": \"anahi30@example.net\", + \"user_name\": \"vel\" +}" +
http://vine.test
const url = new URL(
-    "http://vine.test/api/v1/shops/in"
+    "https://vine.openfoodnetwork.org.au/api/v1/shops"
 );
 
 const headers = {
@@ -3304,9 +2115,16 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
"Accept": "application/json", }; +let body = { + "shop_name": "velit", + "user_email": "anahi30@example.net", + "user_name": "vel" +}; + fetch(url, { - method: "DELETE", + method: "POST", headers, + body: JSON.stringify(body), }).then(response => response.json());
@@ -3315,8 +2133,8 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
$client = new \GuzzleHttp\Client();
-$url = 'http://vine.test/api/v1/shops/in';
-$response = $client->delete(
+$url = 'https://vine.openfoodnetwork.org.au/api/v1/shops';
+$response = $client->post(
     $url,
     [
         'headers' => [
@@ -3324,6 +2142,11 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
'Content-Type' => 'application/json', 'Accept' => 'application/json', ], + 'json' => [ + 'shop_name' => 'velit', + 'user_email' => 'anahi30@example.net', + 'user_name' => 'vel', + ], ] ); $body = $response->getBody(); @@ -3337,14 +2160,19 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
import requests
 import json
 
-url = 'http://vine.test/api/v1/shops/in'
+url = 'https://vine.openfoodnetwork.org.au/api/v1/shops'
+payload = {
+    "shop_name": "velit",
+    "user_email": "anahi30@example.net",
+    "user_name": "vel"
+}
 headers = {
   'Authorization': 'Bearer {YOUR_API_TOKEN}',
   'Content-Type': 'application/json',
   'Accept': 'application/json'
 }
 
-response = requests.request('DELETE', url, headers=headers)
+response = requests.request('POST', url, headers=headers, json=payload)
 response.json()
@@ -3358,10 +2186,10 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
Example response:
@@ -3378,12 +2206,12 @@ class="svg-inline--fa fa-copy fa-fw fa-sm sl-icon" role="img" -
null
+ class="language-json sl-overflow-x-auto sl-overflow-y-auto">{"meta":{"responseCode":200,"limit":50,"offset":0,"message":"Saved. Here is the API Token for the user linked to this new team. It will only be displayed ONCE, so please store it in a secure manner.","cached":false,"availableRelations":[]},"data":"{TOKEN}"
@@ -3411,7 +2239,7 @@ class="sl-text-5xl sl-leading-tight sl-font-prose sl-text-heading"
-
http://vine.test
+ class="sl-overflow-x-hidden sl-truncate sl-text-muted">https://vine.openfoodnetwork.org.au
/api/v1/system-statistics
@@ -3715,7 +2543,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
curl --request GET \
-    --get "http://vine.test/api/v1/system-statistics?cached=1&page=1&limit=50&fields=id%2Csum_voucher_value_total&orderBy=orderBy%3Dsum_voucher_value_total%2Cdesc&orderBy%5B%5D=orderBy%5B%5D%3Did%2Cdesc%26orderBy%5B%5D%3Dcreated_at%2Casc&where=where%3Did%2C%3E%2C123&where%5B%5D=where%5B%5D%3Did%2Clike%2C%2A550e%2A%26where%5B%5D%3Dcreated_at%2C%3E%3D%2C2024-01-01" \
+    --get "https://vine.openfoodnetwork.org.au/api/v1/system-statistics?cached=1&page=1&limit=50&fields=id%2Csum_voucher_value_total&orderBy=orderBy%3Dsum_voucher_value_total%2Cdesc&orderBy%5B%5D=orderBy%5B%5D%3Did%2Cdesc%26orderBy%5B%5D%3Dcreated_at%2Casc&where=where%3Did%2C%3E%2C123&where%5B%5D=where%5B%5D%3Did%2Clike%2C%2A550e%2A%26where%5B%5D%3Dcreated_at%2C%3E%3D%2C2024-01-01" \
     --header "Authorization: Bearer {YOUR_API_TOKEN}" \
     --header "Content-Type: application/json" \
     --header "Accept: application/json"
@@ -3726,7 +2554,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
const url = new URL(
-    "http://vine.test/api/v1/system-statistics"
+    "https://vine.openfoodnetwork.org.au/api/v1/system-statistics"
 );
 
 const params = {
@@ -3759,7 +2587,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
$client = new \GuzzleHttp\Client();
-$url = 'http://vine.test/api/v1/system-statistics';
+$url = 'https://vine.openfoodnetwork.org.au/api/v1/system-statistics';
 $response = $client->get(
     $url,
     [
@@ -3791,7 +2619,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
import requests
 import json
 
-url = 'http://vine.test/api/v1/system-statistics'
+url = 'https://vine.openfoodnetwork.org.au/api/v1/system-statistics'
 params = {
   'cached': '1',
   'page': '1',
@@ -3912,7 +2740,7 @@ class="language-json sl-overflow-x-auto sl-overflow-y-auto">{
         
-
http://vine.test
+ class="sl-overflow-x-hidden sl-truncate sl-text-muted">https://vine.openfoodnetwork.org.au
/api/v1/system-statistics/{id}
@@ -4023,7 +2851,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
Example:
- 4 + 19
@@ -4114,7 +2942,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
curl --request GET \
-    --get "http://vine.test/api/v1/system-statistics/4?cached=1&fields=id%2Cnum_users" \
+    --get "https://vine.openfoodnetwork.org.au/api/v1/system-statistics/19?cached=1&fields=id%2Cnum_users" \
     --header "Authorization: Bearer {YOUR_API_TOKEN}" \
     --header "Content-Type: application/json" \
     --header "Accept: application/json"
@@ -4125,7 +2953,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
const url = new URL(
-    "http://vine.test/api/v1/system-statistics/4"
+    "https://vine.openfoodnetwork.org.au/api/v1/system-statistics/19"
 );
 
 const params = {
@@ -4152,7 +2980,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
$client = new \GuzzleHttp\Client();
-$url = 'http://vine.test/api/v1/system-statistics/4';
+$url = 'https://vine.openfoodnetwork.org.au/api/v1/system-statistics/19';
 $response = $client->get(
     $url,
     [
@@ -4178,7 +3006,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
import requests
 import json
 
-url = 'http://vine.test/api/v1/system-statistics/4'
+url = 'https://vine.openfoodnetwork.org.au/api/v1/system-statistics/19'
 params = {
   'cached': '1',
   'fields': 'id,num_users',
@@ -4279,7 +3107,7 @@ class="sl-text-5xl sl-leading-tight sl-font-prose sl-text-heading"
         
-
http://vine.test
+ class="sl-overflow-x-hidden sl-truncate sl-text-muted">https://vine.openfoodnetwork.org.au
/api/v1/my-team
@@ -4401,7 +3229,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
curl --request GET \
-    --get "http://vine.test/api/v1/my-team" \
+    --get "https://vine.openfoodnetwork.org.au/api/v1/my-team" \
     --header "Authorization: Bearer {YOUR_API_TOKEN}" \
     --header "Content-Type: application/json" \
     --header "Accept: application/json"
@@ -4412,7 +3240,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
const url = new URL(
-    "http://vine.test/api/v1/my-team"
+    "https://vine.openfoodnetwork.org.au/api/v1/my-team"
 );
 
 const headers = {
@@ -4432,7 +3260,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
$client = new \GuzzleHttp\Client();
-$url = 'http://vine.test/api/v1/my-team';
+$url = 'https://vine.openfoodnetwork.org.au/api/v1/my-team';
 $response = $client->get(
     $url,
     [
@@ -4454,7 +3282,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
import requests
 import json
 
-url = 'http://vine.test/api/v1/my-team'
+url = 'https://vine.openfoodnetwork.org.au/api/v1/my-team'
 headers = {
   'Authorization': 'Bearer {YOUR_API_TOKEN}',
   'Content-Type': 'application/json',
@@ -4546,7 +3374,7 @@ class="language-json sl-overflow-x-auto sl-overflow-y-auto">{
         
-
http://vine.test
+ class="sl-overflow-x-hidden sl-truncate sl-text-muted">https://vine.openfoodnetwork.org.au
/api/v1/my-team
@@ -4668,7 +3496,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
curl --request POST \
-    "http://vine.test/api/v1/my-team" \
+    "https://vine.openfoodnetwork.org.au/api/v1/my-team" \
     --header "Authorization: Bearer {YOUR_API_TOKEN}" \
     --header "Content-Type: application/json" \
     --header "Accept: application/json"
@@ -4679,7 +3507,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
const url = new URL(
-    "http://vine.test/api/v1/my-team"
+    "https://vine.openfoodnetwork.org.au/api/v1/my-team"
 );
 
 const headers = {
@@ -4699,7 +3527,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
$client = new \GuzzleHttp\Client();
-$url = 'http://vine.test/api/v1/my-team';
+$url = 'https://vine.openfoodnetwork.org.au/api/v1/my-team';
 $response = $client->post(
     $url,
     [
@@ -4721,7 +3549,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
import requests
 import json
 
-url = 'http://vine.test/api/v1/my-team'
+url = 'https://vine.openfoodnetwork.org.au/api/v1/my-team'
 headers = {
   'Authorization': 'Bearer {YOUR_API_TOKEN}',
   'Content-Type': 'application/json',
@@ -4750,7 +3578,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
-
http://vine.test
+ class="sl-overflow-x-hidden sl-truncate sl-text-muted">https://vine.openfoodnetwork.org.au
/api/v1/my-team/{id}
@@ -4861,7 +3689,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
Example:
- ullam + sit
@@ -4902,7 +3730,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
curl --request GET \
-    --get "http://vine.test/api/v1/my-team/ullam" \
+    --get "https://vine.openfoodnetwork.org.au/api/v1/my-team/sit" \
     --header "Authorization: Bearer {YOUR_API_TOKEN}" \
     --header "Content-Type: application/json" \
     --header "Accept: application/json"
@@ -4913,7 +3741,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
const url = new URL(
-    "http://vine.test/api/v1/my-team/ullam"
+    "https://vine.openfoodnetwork.org.au/api/v1/my-team/sit"
 );
 
 const headers = {
@@ -4933,7 +3761,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
$client = new \GuzzleHttp\Client();
-$url = 'http://vine.test/api/v1/my-team/ullam';
+$url = 'https://vine.openfoodnetwork.org.au/api/v1/my-team/sit';
 $response = $client->get(
     $url,
     [
@@ -4955,7 +3783,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
import requests
 import json
 
-url = 'http://vine.test/api/v1/my-team/ullam'
+url = 'https://vine.openfoodnetwork.org.au/api/v1/my-team/sit'
 headers = {
   'Authorization': 'Bearer {YOUR_API_TOKEN}',
   'Content-Type': 'application/json',
@@ -5047,7 +3875,7 @@ class="language-json sl-overflow-x-auto sl-overflow-y-auto">{
         
-
http://vine.test
+ class="sl-overflow-x-hidden sl-truncate sl-text-muted">https://vine.openfoodnetwork.org.au
/api/v1/my-team/{id}
@@ -5163,7 +3991,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
Example:
- blanditiis + qui
@@ -5204,7 +4032,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
curl --request PUT \
-    "http://vine.test/api/v1/my-team/blanditiis" \
+    "https://vine.openfoodnetwork.org.au/api/v1/my-team/qui" \
     --header "Authorization: Bearer {YOUR_API_TOKEN}" \
     --header "Content-Type: application/json" \
     --header "Accept: application/json"
@@ -5215,7 +4043,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
const url = new URL(
-    "http://vine.test/api/v1/my-team/blanditiis"
+    "https://vine.openfoodnetwork.org.au/api/v1/my-team/qui"
 );
 
 const headers = {
@@ -5235,7 +4063,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
$client = new \GuzzleHttp\Client();
-$url = 'http://vine.test/api/v1/my-team/blanditiis';
+$url = 'https://vine.openfoodnetwork.org.au/api/v1/my-team/qui';
 $response = $client->put(
     $url,
     [
@@ -5257,7 +4085,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
import requests
 import json
 
-url = 'http://vine.test/api/v1/my-team/blanditiis'
+url = 'https://vine.openfoodnetwork.org.au/api/v1/my-team/qui'
 headers = {
   'Authorization': 'Bearer {YOUR_API_TOKEN}',
   'Content-Type': 'application/json',
@@ -5286,7 +4114,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
-
http://vine.test
+ class="sl-overflow-x-hidden sl-truncate sl-text-muted">https://vine.openfoodnetwork.org.au
/api/v1/my-team/{id}
@@ -5397,7 +4225,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
Example:
- sunt + sint
@@ -5438,7 +4266,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
curl --request DELETE \
-    "http://vine.test/api/v1/my-team/sunt" \
+    "https://vine.openfoodnetwork.org.au/api/v1/my-team/sint" \
     --header "Authorization: Bearer {YOUR_API_TOKEN}" \
     --header "Content-Type: application/json" \
     --header "Accept: application/json"
@@ -5449,7 +4277,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
const url = new URL(
-    "http://vine.test/api/v1/my-team/sunt"
+    "https://vine.openfoodnetwork.org.au/api/v1/my-team/sint"
 );
 
 const headers = {
@@ -5469,7 +4297,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
$client = new \GuzzleHttp\Client();
-$url = 'http://vine.test/api/v1/my-team/sunt';
+$url = 'https://vine.openfoodnetwork.org.au/api/v1/my-team/sint';
 $response = $client->delete(
     $url,
     [
@@ -5491,7 +4319,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
import requests
 import json
 
-url = 'http://vine.test/api/v1/my-team/sunt'
+url = 'https://vine.openfoodnetwork.org.au/api/v1/my-team/sint'
 headers = {
   'Authorization': 'Bearer {YOUR_API_TOKEN}',
   'Content-Type': 'application/json',
@@ -5520,7 +4348,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
-
http://vine.test
+ class="sl-overflow-x-hidden sl-truncate sl-text-muted">https://vine.openfoodnetwork.org.au
/api/v1/my-team-audit-items
@@ -5642,7 +4470,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
curl --request POST \
-    "http://vine.test/api/v1/my-team-audit-items" \
+    "https://vine.openfoodnetwork.org.au/api/v1/my-team-audit-items" \
     --header "Authorization: Bearer {YOUR_API_TOKEN}" \
     --header "Content-Type: application/json" \
     --header "Accept: application/json"
@@ -5653,7 +4481,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
const url = new URL(
-    "http://vine.test/api/v1/my-team-audit-items"
+    "https://vine.openfoodnetwork.org.au/api/v1/my-team-audit-items"
 );
 
 const headers = {
@@ -5673,7 +4501,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
$client = new \GuzzleHttp\Client();
-$url = 'http://vine.test/api/v1/my-team-audit-items';
+$url = 'https://vine.openfoodnetwork.org.au/api/v1/my-team-audit-items';
 $response = $client->post(
     $url,
     [
@@ -5695,7 +4523,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
import requests
 import json
 
-url = 'http://vine.test/api/v1/my-team-audit-items'
+url = 'https://vine.openfoodnetwork.org.au/api/v1/my-team-audit-items'
 headers = {
   'Authorization': 'Bearer {YOUR_API_TOKEN}',
   'Content-Type': 'application/json',
@@ -5724,7 +4552,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
-
http://vine.test
+ class="sl-overflow-x-hidden sl-truncate sl-text-muted">https://vine.openfoodnetwork.org.au
/api/v1/my-team-audit-items
@@ -5846,7 +4674,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
curl --request GET \
-    --get "http://vine.test/api/v1/my-team-audit-items" \
+    --get "https://vine.openfoodnetwork.org.au/api/v1/my-team-audit-items" \
     --header "Authorization: Bearer {YOUR_API_TOKEN}" \
     --header "Content-Type: application/json" \
     --header "Accept: application/json"
@@ -5857,7 +4685,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
const url = new URL(
-    "http://vine.test/api/v1/my-team-audit-items"
+    "https://vine.openfoodnetwork.org.au/api/v1/my-team-audit-items"
 );
 
 const headers = {
@@ -5877,7 +4705,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
$client = new \GuzzleHttp\Client();
-$url = 'http://vine.test/api/v1/my-team-audit-items';
+$url = 'https://vine.openfoodnetwork.org.au/api/v1/my-team-audit-items';
 $response = $client->get(
     $url,
     [
@@ -5899,7 +4727,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
import requests
 import json
 
-url = 'http://vine.test/api/v1/my-team-audit-items'
+url = 'https://vine.openfoodnetwork.org.au/api/v1/my-team-audit-items'
 headers = {
   'Authorization': 'Bearer {YOUR_API_TOKEN}',
   'Content-Type': 'application/json',
@@ -5991,7 +4819,7 @@ class="language-json sl-overflow-x-auto sl-overflow-y-auto">{
         
-
http://vine.test
+ class="sl-overflow-x-hidden sl-truncate sl-text-muted">https://vine.openfoodnetwork.org.au
/api/v1/my-team-audit-items/{id}
@@ -6102,7 +4930,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
Example:
- voluptatem + fuga
@@ -6143,7 +4971,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
curl --request GET \
-    --get "http://vine.test/api/v1/my-team-audit-items/voluptatem" \
+    --get "https://vine.openfoodnetwork.org.au/api/v1/my-team-audit-items/fuga" \
     --header "Authorization: Bearer {YOUR_API_TOKEN}" \
     --header "Content-Type: application/json" \
     --header "Accept: application/json"
@@ -6154,7 +4982,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
const url = new URL(
-    "http://vine.test/api/v1/my-team-audit-items/voluptatem"
+    "https://vine.openfoodnetwork.org.au/api/v1/my-team-audit-items/fuga"
 );
 
 const headers = {
@@ -6174,7 +5002,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
$client = new \GuzzleHttp\Client();
-$url = 'http://vine.test/api/v1/my-team-audit-items/voluptatem';
+$url = 'https://vine.openfoodnetwork.org.au/api/v1/my-team-audit-items/fuga';
 $response = $client->get(
     $url,
     [
@@ -6196,7 +5024,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
import requests
 import json
 
-url = 'http://vine.test/api/v1/my-team-audit-items/voluptatem'
+url = 'https://vine.openfoodnetwork.org.au/api/v1/my-team-audit-items/fuga'
 headers = {
   'Authorization': 'Bearer {YOUR_API_TOKEN}',
   'Content-Type': 'application/json',
@@ -6288,7 +5116,7 @@ class="language-json sl-overflow-x-auto sl-overflow-y-auto">{
         
-
http://vine.test
+ class="sl-overflow-x-hidden sl-truncate sl-text-muted">https://vine.openfoodnetwork.org.au
/api/v1/my-team-audit-items/{id}
@@ -6399,7 +5227,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
Example:
- unde + vel
@@ -6440,7 +5268,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
curl --request DELETE \
-    "http://vine.test/api/v1/my-team-audit-items/unde" \
+    "https://vine.openfoodnetwork.org.au/api/v1/my-team-audit-items/vel" \
     --header "Authorization: Bearer {YOUR_API_TOKEN}" \
     --header "Content-Type: application/json" \
     --header "Accept: application/json"
@@ -6451,7 +5279,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
const url = new URL(
-    "http://vine.test/api/v1/my-team-audit-items/unde"
+    "https://vine.openfoodnetwork.org.au/api/v1/my-team-audit-items/vel"
 );
 
 const headers = {
@@ -6471,7 +5299,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
$client = new \GuzzleHttp\Client();
-$url = 'http://vine.test/api/v1/my-team-audit-items/unde';
+$url = 'https://vine.openfoodnetwork.org.au/api/v1/my-team-audit-items/vel';
 $response = $client->delete(
     $url,
     [
@@ -6493,7 +5321,7 @@ class="sl-overflow-x-hidden sl-truncate sl-text-muted">http://vine.test
import requests
 import json
 
-url = 'http://vine.test/api/v1/my-team-audit-items/unde'
+url = 'https://vine.openfoodnetwork.org.au/api/v1/my-team-audit-items/vel'
 headers = {
   'Authorization': 'Bearer {YOUR_API_TOKEN}',
   'Content-Type': 'application/json',