Local Hack Day : Build
Siddharth Dayalwal

Siddharth Dayalwal @siddharth_hacks

About: Community (DevRel), Storyblok 🥑 • Building Hack This Fall 🧡

Location:
India
Joined:
Sep 2, 2019

Local Hack Day : Build

Publish Date: Jan 17 '21
0 0

Local Hack Day : Build

I never thought I would come so far!

This has been a fantastic journey, I contributed a lot and learned at the same time. learning with people, building various projects, sharing ideas and views and what not.
Local Hack Day Build has given us the opportunity to open up ourselves and come ahead and make ourselves shine.
I was proud to be part of EddieHub Community! As I started, people in the community were super interactive which gave me boost, i actively took part in everything!
Attended live sessions, various workshops, mini-events and what not, it has been altogether an incredible one.

CodeLess API

Its call API Chaining and it requires a backend that uses the new api pattern

If it is properly setup, you can automatically call it from the frontend like so:

The POST post-chain would be encoded as follows:

{ 
    ...[your_data_being_sent]... 
    chain:{ 
        key:dept_id, 
        combine:'false', 
        type:'postchain', 
        order:{dept/show:company_id,company/update:return} 
    } 
} 
Enter fullscreen mode Exit fullscreen mode

And then call via Curl(or via javascript) as follows:

curl -v -H "Content-Type: application/json" -H "Authorization: Bearer [access token]" -X POST -d "{'chain':{'key':'dept_id','combine':'false','type':'postchain','order':{'dept/show':'company_id','company/update':'return'}}}" "http://localhost:8080/v0.1/person/show/1" 
Enter fullscreen mode Exit fullscreen mode

If you need to send Max/Offset variables, do so as follows:

curl -v -H "Content-Type: application/json" -H "Authorization: Bearer [access token]" -X POST -d "{'chain':{'key':'dept_id','combine':'false','type':'postchain','order':{'dept/show':'company_id','company/update':'return'}}}" "http://localhost:8080/v0.1/person/show/1?max=1,1,1&offset=0,0,0" 
Enter fullscreen mode Exit fullscreen mode

Thanks for reading!

Comments 0 total

    Add comment