|
1
|
/** |
|
2
|
* @oas [get] /admin/plugins |
|
3
|
* operationId: GetPlugins |
|
4
|
* summary: List Plugins |
|
5
|
* description: Retrieve the list of plugins installed in the Medusa application. |
|
6
|
* x-authenticated: true |
|
7
|
* security: |
|
8
|
* - api_token: [] |
|
9
|
* - cookie_auth: [] |
|
10
|
* - jwt_token: [] |
|
11
|
* x-codeSamples: |
|
12
|
* - lang: JavaScript |
|
13
|
* label: JS SDK |
|
14
|
* source: |- |
|
15
|
* import Medusa from "@medusajs/js-sdk" |
|
16
|
* |
|
17
|
* export const sdk = new Medusa({ |
|
18
|
* baseUrl: import.meta.env.VITE_BACKEND_URL || "/", |
|
19
|
* debug: import.meta.env.DEV, |
|
20
|
* auth: { |
|
21
|
* type: "session", |
|
22
|
* }, |
|
23
|
* }) |
|
24
|
* |
|
25
|
* sdk.admin.plugin.list() |
|
26
|
* .then(({ plugins }) => { |
|
27
|
* console.log(plugins) |
|
28
|
* }) |
|
29
|
* - lang: Shell |
|
30
|
* label: cURL |
|
31
|
* source: |- |
|
32
|
* curl '{backend_url}/admin/plugins' \ |
|
33
|
* -H 'Authorization: Bearer {jwt_token}' |
|
34
|
* tags: |
|
35
|
* - Plugins |
|
36
|
* responses: |
|
37
|
* "200": |
|
38
|
* description: OK |
|
39
|
* content: |
|
40
|
* application/json: |
|
41
|
* schema: |
|
42
|
* $ref: "#/components/schemas/AdminPluginsListResponse" |
|
43
|
* "400": |
|
44
|
* $ref: "#/components/responses/400_error" |
|
45
|
* "401": |
|
46
|
* $ref: "#/components/responses/unauthorized" |
|
47
|
* "404": |
|
48
|
* $ref: "#/components/responses/not_found_error" |
|
49
|
* "409": |
|
50
|
* $ref: "#/components/responses/invalid_state_error" |
|
51
|
* "422": |
|
52
|
* $ref: "#/components/responses/invalid_request_error" |
|
53
|
* "500": |
|
54
|
* $ref: "#/components/responses/500_error" |
|
55
|
* |
|
56
|
*/ |
|
57
|
|