LiveRamp / reslang

A language for describing resource-oriented APIs & turning them into Swagger or resource diagrams. Oriented around the concepts we want to expose in the APIs.
Apache License 2.0
23 stars 7 forks source link

Update reslang-docker #140

Closed cjea closed 4 years ago

cjea commented 4 years ago

Remove unnecessary logs and errors, pass user-specified options, and give it a "usage" function.

Addresses https://github.com/LiveRamp/reslang/issues/117

Tested by running the following:

$ ./reslang-docker.sh /Users/cjapel/code/api-specs/specs-draft/segment-delivery --diagram deliveries 2>/dev/null

digraph G {
        graph [fontname = "helvetica"];
        node [fontname = "helvetica"];
        edge [fontname = "helvetica"];
        node [shape=none];

"SegmentDeliveryTrigger" [label=<
                    <table border="3" cellborder="0" cellspacing="1" style='rounded'  bgcolor='#ffffcc'>
                    <tr><td><b>SegmentDeliveryTrigger        </b></td></tr><hr/><tr><td align="left">id: uuid</td></tr><tr><td align="left">segmentDeliveryConfigurationID: linked SegmentDeliveryConfiguration</td></tr><tr><td align="left">refreshMode: RefreshMode</td></tr><tr><td align="left">triggerType: TriggerType</td></tr><tr><td align="left">triggerReason: string</td></tr><tr><td align="left">createdAt: datetime (out)</td></tr><tr><td align="left">updatedAt: datetime (out)</td></tr><tr><td align="left">sort: SortType</td></tr><tr><td align="right"><font color="#0000ff" point-size="8"> GET POST MULTIGET segmentDeliveryConfigurationID triggerType sort</font></td></tr></table>>];
"SegmentDeliveryRequest" [label=<
                    <table border="3" cellborder="0" cellspacing="1" style='rounded'  bgcolor='#ffffcc'>
                    <tr><td><b>SegmentDeliveryRequest        </b></td></tr><hr/><tr><td align="left">id: uuid</td></tr><tr><td align="left">segmentDeliveryConfigurationID: linked SegmentDeliveryConfiguration (out)</td></tr><tr><td align="left">dataField: DataField</td></tr><tr><td align="left">identifierType: uuid (out)</td></tr><tr><td align="left">status: SegmentDeliveryStatus (out)</td></tr><tr><td align="left">statusReason: string</td></tr><tr><td align="left">refreshMode: RefreshMode (out)</td></tr><tr><td align="left">createdAt: datetime (out)</td></tr><tr><td align="left">updatedAt: datetime (out)</td></tr><tr><td align="left">sort: SortType</td></tr><tr><td align="right"><font color="#0000ff" point-size="8"> GET MULTIGET segmentDeliveryConfigurationID segmentDeliveryTriggerID dataField identifierType status refreshMode sort</font></td></tr></table>>];
"SegmentDeliveryAttempt" [label=<
                    <table border="3" cellborder="0" cellspacing="1" style='rounded'  bgcolor='#ffffcc'>
                    <tr><td><b>SegmentDeliveryAttempt        </b></td></tr><hr/><tr><td align="left">id: uuid</td></tr><tr><td align="left">segmentDeliveryConfigurationID: linked SegmentDeliveryConfiguration (out)</td></tr><tr><td align="left">dataField: DataField (out)</td></tr><tr><td align="left">identifierType: uuid (out)</td></tr><tr><td align="left">refreshMode: RefreshMode (out)</td></tr><tr><td align="left">status: SegmentDeliveryStatus (out)</td></tr><tr><td align="left">statusReason: string</td></tr><tr><td align="left">step: DeliveryAttemptStep (out)</td></tr><tr><td align="left">attemptStats: DeliveryAttemptStats (out)</td></tr><tr><td align="left">distributionRequestID: long (out)</td></tr><tr><td align="left">createdAt: datetime (out)</td></tr><tr><td align="left">updatedAt: datetime (out)</td></tr><tr><td align="left">sort: SortType</td></tr><tr><td align="right"><font color="#0000ff" point-size="8"> MULTIGET segmentDeliveryConfigurationID dataField identifierType refreshMode status step distributionRequestID sort</font></td></tr></table>>];
"SegmentDeliveryRequest" -> "SegmentDeliveryTrigger" [label=< <font point-size="8"> segmentDeliveryTriggerID (out)</font> > arrowhead="vee"];
"SegmentDeliveryRequest" -> "SegmentDeliveryAttempt" [label=< <font point-size="8"> segmentDeliveryAttemptID (out)</font> > arrowhead="vee"];
}
ops-github-DU4JOAWE commented 4 years ago

This change is Reviewable