mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Improve documentation
This commit is contained in:
@@ -8,3 +8,5 @@ Basically, it allows an OFN user linked to an enterprise:
|
||||
* to be authenticated thanks to an Access Token from DFC Authorization server (using an OIDC implementation)
|
||||
|
||||
The API endpoint for the catalog is `/api/dfc_provider/enterprise/prodcuts.json` and you need to pass the token inside an authentication header (`Authentication: Bearer 123mytoken456`).
|
||||
|
||||
This feature is still under active development.
|
||||
@@ -1,6 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
# Controller used to provide the API products for the DFC application
|
||||
# CatalogItems are items that are being sold by the entreprise.
|
||||
module DfcProvider
|
||||
module Api
|
||||
class CatalogItemsController < DfcProvider::Api::BaseController
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
# Controller used to provide the SuppliedProducts API for the DFC application
|
||||
# SuppliedProducts are products that are managed by an entrerprise.
|
||||
module DfcProvider
|
||||
module Api
|
||||
class SuppliedProductsController < DfcProvider::Api::BaseController
|
||||
|
||||
Reference in New Issue
Block a user