add authorization across all methods within the API
add the "Bearer" right before the key, with a space
Service
Build one ServiceAction1 per service
you pass one in, one out
note to self, API Key exposure if we export the code
Step 1: Need to pass Authorization Header for all REST API Methods
Go to LOGIC
double click on "list" REST API Method
Headers and Authentication - Authorization
Test
in Auhorization type "Bearer" and then your token
Do this for all REST API Methods
Step 2: Need to assign too all Methods
Step 3: grab the CID
Test the CID in Method URL > Test
after testing, click "Copy Response to Body" and Finish
Manage Dependencies
NFT Storage
Create a public Server Action
name it
make it public
Assign
Output Parameter
Folder - Server Actions
Create a Server Action?
Interface > Fetch Data from Other Sources
Output Parameter
Manage Dependencies
Create Service Action called Glist, bc i need to expose this to my other app
The only way to expose this is a Service Action
call the server action, drag drop into action
match 1:1
call the api
Questions:
Where are the images stored? How do we grab the images. Where are the binaries of the files stored. How do we get the binaries to access this API?
where are files actually stored?
The keys on https://nft.storage/api-docs/
is not matching my keys
resources
does MongoDB is able to store binary objects?