yourhead / s3

public info about s3
8 stars 7 forks source link

add an api to get data from other pages #759

Open yourhead opened 7 years ago

joeworkman commented 7 years ago

Oh, hello!

yourhead commented 7 years ago

@yabdab asked, so i added the feature request.

to be honest, there was already code for doing this in Stacks 3.1 (for the plus kit upgrade that got canned when everyone hated on it) -- but i had to remove it last year when the lazy loading stuff came in RW 7.1 -- it caused all the pages to load on the main thread and beach balled everything.

so... i'm not certain this is feasible anymore. but if it is i'll add it back.

i think basically the idea is that a cartloom page or a rapid cart page could send some of the data over to stacks -- and stacks could use that to fill in template variables -- or something along those lines.

yourhead commented 5 years ago

see: https://github.com/yourhead/s4/issues/34

jrondorf commented 5 years ago

🔥

yourhead commented 5 years ago

this feature has been in stacks for YEARS -- but no one has been interested in enough to care.

if you do care, please let me know what you would need this to do, how it might work best for you, etc

the current functionality was built for stacks cloud. i was going to rip it out just for simplicity and because i could never find anyone that had a real world application.

yabdab commented 5 years ago

Can you give an example of what we would be able to do if this was an available feature?

yourhead commented 5 years ago

@yabdab

Having an existing REST api to test with and list what things you'd like me to fetch/send to api is probably the minimum.

it would be very helpful to have a curl script, or ruby script that performed the actions so that i could test to make sure that my implementation did the same thing.

if you need something specific for security, please be detailed and say what you need: e.g.: if you need to store an encrypted key or other security details inside of the stack you should probably let me know. if the user will be granted some sort of signin cookie then please let me know how that should work and you expect some part of that to be stored securely.