Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Locked thread
Breakfast All Day
Oct 21, 2004

code:
data: {  
  “type”: “articles”,
  “id”: “1”,
  “attributes”: {
    “title”: “Rails is Omakase”
  },
  “relationships”: {
    “author”: {
      “links”: {
        “self”: “/articles/1/relationships/author”,
        “related”: “/articles/1/author”
      },
      “data”: { “type”: “people”, “id”: “9” }
    }
  },
  “included”: [{
    “type”: “people”,
    “id”: “9”,
    “attributes”: {
      “first-name”: “Dan”,
      “last-name”: “Gebhardt”,
      “twitter”: “dgeb”
    },
    “links”: {
      “self”: “[url]http://example.com/people/9”[/url]
    }
  }
}

quote:

Suppose we have two endpoints:
PUT /patients/1/:

...
PUT doctors/3/:

...
The endpoint info encoded on the url is redundant. So we could have just one single entry point and the backend will do the rest.
PUT /

http://blog.redradix.com/future-json-apis/

everything is wearisome, more than one can say. what has been will be again, what has been done will be done again. there is nothing new under the api

Adbot
ADBOT LOVES YOU

Breakfast All Day
Oct 21, 2004

maybe one day well finally have an api model that can solve the ancient puzzle of representing author-publisher-book relationships. im glad all these 21 year olds are hard at work on it

Shaggar
Apr 26, 2006

Breakfast All Day posted:

code:
data: {  
  “type”: “articles”,
  “id”: “1”,
  “attributes”: {
    “title”: “Rails is Omakase”
  },
  “relationships”: {
    “author”: {
      “links”: {
        “self”: “/articles/1/relationships/author”,
        “related”: “/articles/1/author”
      },
      “data”: { “type”: “people”, “id”: “9” }
    }
  },
  “included”: [{
    “type”: “people”,
    “id”: “9”,
    “attributes”: {
      “first-name”: “Dan”,
      “last-name”: “Gebhardt”,
      “twitter”: “dgeb”
    },
    “links”: {
      “self”: “[url]http://example.com/people/9”[/url]
    }
  }
}
http://blog.redradix.com/future-json-apis/

everything is wearisome, more than one can say. what has been will be again, what has been done will be done again. there is nothing new under the api

lol

Valeyard
Mar 30, 2012


Grimey Drawer
thats retarded

The Management
Jan 2, 2010

sup, bitch?

Breakfast All Day posted:

maybe one day well finally have an api model that can solve the ancient puzzle of representing author-publisher-book relationships. im glad all these 21 year olds are hard at work on it

we only hire 9's and 10's, we're inventing new poo poo here that old people don't even get

Shaggar
Apr 26, 2006
Reinventing SOAP/XML/WS-* is something all new devs go through.

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
ugggh

NoneMoreNegative
Jul 20, 2000
GOTH FASCISTIC
PAIN
MASTER




shit wizard dad

title looks like a scifi short story

pram
Jun 10, 2001
lol so is the controller like a giant pile of if statements

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

pram posted:

lol so is the controller like a giant pile of if statements

no, you have a router that routes to a controller based on the json payload rather than the URL

Baxate
Feb 1, 2011

i didn't read any of this, op

Skarp
Sep 27, 2013

this is extremely fail

Shaggar
Apr 26, 2006

MALE SHOEGAZE posted:

no, you have a router that routes to a controller based on the json payload rather than the URL

yeah it reads the SOAPAction header type field to determine where to send it.

pram
Jun 10, 2001

MALE SHOEGAZE posted:

no, you have a router that routes to a controller based on the json payload rather than the URL

ah that isnt bad.. i guess. but all your get controllers still need specific routes so whats the point

Shaggar
Apr 26, 2006
well if we define the message structure and actions in the wsdl then we can have the computer do all the work for us

pram
Jun 10, 2001
enterprise grade solutions

Shaggar
Apr 26, 2006
rest is really bad compared to soap but you have to use rest cause of javascript which is also really bad.

pram
Jun 10, 2001
lol. can you even use xmlhttprequest for soap. ive literally never seen anything but some ancient oracle poo poo use wsdl

Shaggar
Apr 26, 2006
sure, but you'd have to handle all the parsing in javascript and javascript is bad.

pram
Jun 10, 2001
sigh

Skarp
Sep 27, 2013

is it jay-son or j-sun

Shaggar
Apr 26, 2006
jason

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

pram posted:

ah that isnt bad.. i guess. but all your get controllers still need specific routes so whats the point

you can include a body in your gets.

;)

DONT THREAD ON ME fucked around with this message at 17:53 on Aug 7, 2015

NoneMoreNegative
Jul 20, 2000
GOTH FASCISTIC
PAIN
MASTER




shit wizard dad

Shaggar posted:

Jason A. Badass

Valeyard
Mar 30, 2012


Grimey Drawer
json ftw

cors ftl

pram
Jun 10, 2001

MALE SHOEGAZE posted:

you can include a body in your gets.

;)

yeah you can include query parameters too. doesnt make it not retarded


Valeyard posted:

json ftw

cors ftl

whats wrong with cors lol

pram
Jun 10, 2001
im really saving time not having to declare routes for my controllers

akadajet
Sep 14, 2003

pram posted:

whats wrong with cors lol

too much work not web scale

pram
Jun 10, 2001
* makes it webscale

LP0 ON FIRE
Jan 25, 2006

beep boop
this advanced json api is ftw! strike while the iron is hot!

MrMoo
Sep 14, 2000

Ooh JSON, I know this ...
JavaScript code:
{  
   "doc":{  
      "info":{  
         "calaisRequestID":"ab9b8c16-00fe-664c-14ee-fd0392775c20",
         "id":"http:\/\/id.opencalais.com\/0fzO1t-vXxjjtpU84rPI8Q",
         "ontology":"http:\/\/10.51.57.60\/owlschema\/8.6\/onecalais.owl.allmetadata.xml",
         "docId":"http:\/\/d.opencalais.com\/dochash-1\/72f2a6a7-33df-377a-a19c-cbac99dbe0f2",
         "document":"    MANAGUA, June 9 (Reuters) - Nicaragua's banking regulator\napproved the acquisition of Banco Citibank and Cititarjetas de\nNicaragua, units of U.S.-based Citigroup <C.N>, by Honduran\nfinancial services group Ficohsa, the regulator said on Tuesday.\n    The regulator said the acquisition will not be finalized for\nseveral weeks.\n    In a statement, Ficohsa said Citi's assets in Nicaragua that\nit is buying are valued at $279 million, in addition to $225\nmillion in deposits and $166 million in loans and $45 million in\nequity, as of the end of March.\n    The acquisition will also require the approval of Panama's\nbanking regulator, where Ficohsa also operates.    \n\n (Reporting by Ivan Castro; Writing by David Alire Garcia and\nSunil Nair)\n ((david.aliregarcia@thomsonreuters.com)(+52 55 5282\n7151)(Reuters Messaging:\ndavid.aliregarcia.thomsonreuters.com@reuters.net))\n\nKeywords: NICARAGUA HONDURAS\/BANKING",
         "docTitle":"",
         "docDate":"2015-08-02 19:07:58.009"
      },
      "meta":{  
         "contentType":"text\/raw",
         "processingVer":"AllMetadata",
         "serverVersion":"OneCalais_8.6-RELEASE:371",
         "stagsVer":"OneCalais_8.6-RELEASE-b5-2015-06-17_18:45:15",
         "submissionDate":"2015-08-02 19:07:57.607",
         "submitterCode":"eae322f7-a0e9-19b1-d3db-28da26f89555",
         "signature":"digestalg-1|XJ9p4vSxmI3TWoQK6cex+iwB5ww=|Pd3GKs7gGOin7SCFIeFJgiRUSRMJKY4KbXv6A1yzL6gl+zmNH83A7w==",
         "language":"English"
      }
   },
   "http:\/\/d.opencalais.com\/dochash-1\/72f2a6a7-33df-377a-a19c-cbac99dbe0f2\/cat\/1":{  
      "_typeGroup":"topics",
      "forenduserdisplay":"false",
      "score":1,
      "name":"Business_Finance"
   },
   "http:\/\/d.opencalais.com\/dochash-1\/72f2a6a7-33df-377a-a19c-cbac99dbe0f2\/cat\/2":{  
      "_typeGroup":"topics",
      "forenduserdisplay":"false",
      "rcscode":"G:4",
      "name":"Americas",
      "score":0.652
   },
   "http:\/\/d.opencalais.com\/dochash-1\/72f2a6a7-33df-377a-a19c-cbac99dbe0f2\/cat\/3":{  
      "_typeGroup":"topics",
      "forenduserdisplay":"false",
      "rcscode":"G:AC",
      "name":"Nicaragua",
      "score":1
   },
   "http:\/\/d.opencalais.com\/dochash-1\/72f2a6a7-33df-377a-a19c-cbac99dbe0f2\/cat\/4":{  
      "_typeGroup":"topics",
      "forenduserdisplay":"false",
      "rcscode":"E:D",
      "name":"Regulation",
      "score":0.158
   },
   "http:\/\/d.opencalais.com\/dochash-1\/72f2a6a7-33df-377a-a19c-cbac99dbe0f2\/cat\/5":{  
      "_typeGroup":"topics",
      "forenduserdisplay":"false",
      "rcscode":"B:128",
      "name":"Banks (TRBC)",
      "score":0.589
   },
   "http:\/\/d.opencalais.com\/dochash-1\/72f2a6a7-33df-377a-a19c-cbac99dbe0f2\/lid\/DefaultLangId":{  
      "_typeGroup":"language",
      "language":"http:\/\/d.opencalais.com\/lid\/DefaultLangId\/English",
      "forenduserdisplay":"false",
      "permid":"505062"
   },
   "http:\/\/d.opencalais.com\/dochash-1\/72f2a6a7-33df-377a-a19c-cbac99dbe0f2\/SocialTag\/1":{  
      "_typeGroup":"socialTag",
      "id":"http:\/\/d.opencalais.com\/dochash-1\/72f2a6a7-33df-377a-a19c-cbac99dbe0f2\/SocialTag\/1",
      "socialTag":"http:\/\/d.opencalais.com\/genericHasher-1\/c9059b25-6b85-34ad-a2d2-0ad5452ab21f",
      "forenduserdisplay":"true",
      "name":"Citibank",
      "importance":"1",
      "originalValue":"Citibank"
   },
   "http:\/\/d.opencalais.com\/dochash-1\/72f2a6a7-33df-377a-a19c-cbac99dbe0f2\/SocialTag\/2":{  
      "_typeGroup":"socialTag",
      "id":"http:\/\/d.opencalais.com\/dochash-1\/72f2a6a7-33df-377a-a19c-cbac99dbe0f2\/SocialTag\/2",
      "socialTag":"http:\/\/d.opencalais.com\/genericHasher-1\/dfb834fc-2239-3034-a2f6-f5a2bb2e7847",
      "forenduserdisplay":"true",
      "name":"Citigroup",
      "importance":"1",
      "originalValue":"Citigroup"
   },
   "http:\/\/d.opencalais.com\/dochash-1\/72f2a6a7-33df-377a-a19c-cbac99dbe0f2\/SocialTag\/3":{  
      "_typeGroup":"socialTag",
      "id":"http:\/\/d.opencalais.com\/dochash-1\/72f2a6a7-33df-377a-a19c-cbac99dbe0f2\/SocialTag\/3",
      "socialTag":"http:\/\/d.opencalais.com\/genericHasher-1\/4567335c-3fd6-32a6-8902-235e21fdc2d5",
      "forenduserdisplay":"true",
      "name":"Rockefeller family",
      "importance":"1",
      "originalValue":"Rockefeller family"
   },
   "http:\/\/d.opencalais.com\/dochash-1\/72f2a6a7-33df-377a-a19c-cbac99dbe0f2\/SocialTag\/4":{  
      "_typeGroup":"socialTag",
      "id":"http:\/\/d.opencalais.com\/dochash-1\/72f2a6a7-33df-377a-a19c-cbac99dbe0f2\/SocialTag\/4",
      "socialTag":"http:\/\/d.opencalais.com\/genericHasher-1\/dd9444dd-6c01-3d2a-a4ef-c0e81cb07bf5",
      "forenduserdisplay":"true",
      "name":"Managua",
      "importance":"2",
      "originalValue":"Managua"
   },
   "http:\/\/d.opencalais.com\/dochash-1\/72f2a6a7-33df-377a-a19c-cbac99dbe0f2\/SocialTag\/5":{  
      "_typeGroup":"socialTag",
      "id":"http:\/\/d.opencalais.com\/dochash-1\/72f2a6a7-33df-377a-a19c-cbac99dbe0f2\/SocialTag\/5",
      "socialTag":"http:\/\/d.opencalais.com\/genericHasher-1\/3af035c4-8499-32f1-8938-a899d2ba9d76",
      "forenduserdisplay":"true",
      "name":"Nicaragua",
      "importance":"2",
      "originalValue":"Nicaragua"
   },
   "http:\/\/d.opencalais.com\/dochash-1\/72f2a6a7-33df-377a-a19c-cbac99dbe0f2\/ComponentVersions":{  
      "_typeGroup":"versions",
      "version":[  
         "Deals Index:201508020353:201508020353",
         "index-refineries:201508011557:201508011557",
         "config-physicalAssets-powerStations:277:277",
         "OA Index:201508021728:201508021728",
         "NextTags:OneCalais_8.6-RELEASE:125",
         "SpanishIM:OneCalais_8.6-RELEASE:209",
         "config-sca-DataPackage:34:34",
         "SECHeaderMetadataIM:OneCalais_8.6-RELEASE:209",
         "com.clearforest.infoext.dial4j.plugins-basistechconfig:OneCalais_8.6-RELEASE:232",
         "People Index:201508011228:201508011228",
         "Collector:OneCalais_8.6-RELEASE:125",
         "config-negativeSignature:277:277",
         "Dial4J:OneCalais_8.6-RELEASE:209",
         "AutocoderRuntimeIM:OneCalais_8.6-RELEASE:209",
         "OA Override:282:282",
         "People Override:277:277",
         "index-vessels:201508011538:201508011538",
         "BrokerResearchIM:OneCalais_8.6-RELEASE:209",
         "config-refineries:277:277",
         "config-cse:281:281",
         "OneCalaisIM:OneCalais_8.6-RELEASE:209",
         "config-vessels:277:277",
         "OneCalais:OneCalais_8.6-RELEASE:371",
         "Housekeeper:OneCalais_8.6-RELEASE:125",
         "WatchDog:OneCalais_8.6-RELEASE:125",
         "config-physicalAssets-mines:277:277",
         "SocialTags Index:201507242013:201507242013",
         "BlackList:277:277",
         "index-ports:201508011549:201508011549",
         "FrenchIM:OneCalais_8.6-RELEASE:209",
         "config-physicalAssets-ports:277:277",
         "config-drugs:277:277"
      ]
   },
   "http:\/\/d.opencalais.com\/comphash-1\/95a8c795-b50f-3184-83a0-eb7b83e0608e":{  
      "_typeGroup":"entities",
      "_type":"Company",
      "forenduserdisplay":"true",
      "name":"Cititarjetas de Nicaragua",
      "nationality":"Nicaraguan",
      "confidencelevel":"0.999",
      "_typeReference":"http:\/\/s.opencalais.com\/1\/type\/em\/e\/Company",
      "instances":[  
         {  
            "detection":"[the acquisition of Banco Citibank and ]Cititarjetas de\nNicaragua[, units of U.S.-based Citigroup <C.N>, by]",
            "prefix":"the acquisition of Banco Citibank and ",
            "exact":"Cititarjetas de\nNicaragua",
            "suffix":", units of U.S.-based Citigroup <C.N>, by",
            "offset":109,
            "length":25
         }
      ],
      "relevance":0.8,
      "resolutions":[  
         {  
            "permid":"5000179061",
            "score":0.075219676,
            "name":"Cititarjetas De Nicaragua  SA",
            "commonname":"Cititarjetas de",
            "id":"https:\/\/ppe.permid.org\/1-5000179061"
         }
      ],
      "confidence":{  
         "statisticalfeature":"0.999",
         "dblookup":"0.0",
         "resolution":"0.075219676",
         "aggregate":"0.999"
      }
   },
   "http:\/\/d.opencalais.com\/genericHasher-1\/3ed7c35b-1638-3cfb-8750-d15fa4c21667":{  
      "_typeGroup":"entities",
      "_type":"City",
      "forenduserdisplay":"true",
      "name":"MANAGUA",
      "resolutions":[  
         {  
            "name":"Managua,Nicaragua",
            "shortname":"Managua",
            "latitude":"12.1463888889",
            "longitude":"-86.2705555556",
            "containedbycountry":"Nicaragua",
            "rcscode":"G:11C"
         }
      ],
      "_typeReference":"http:\/\/s.opencalais.com\/1\/type\/em\/e\/City",
      "instances":[  
         {  
            "detection":"[    ]MANAGUA[, June 9 (Reuters) - Nicaragua's banking]",
            "prefix":"    ",
            "exact":"MANAGUA",
            "suffix":", June 9 (Reuters) - Nicaragua's banking",
            "offset":4,
            "length":7
         }
      ],
      "relevance":0.2
   },
   "http:\/\/d.opencalais.com\/genericHasher-1\/8bccd44d-cb5f-36bc-8eae-94bc3d4761b4":{  
      "_typeGroup":"entities",
      "_type":"Journalist",
      "forenduserdisplay":"true",
      "name":"Sunil Nair",
      "_typeReference":"http:\/\/s.opencalais.com\/1\/type\/em\/e\/Journalist",
      "instances":[  
         {  
            "detection":"[Ivan Castro; Writing by David Alire Garcia and\n]Sunil Nair[)\n ((david.aliregarcia@thomsonreuters.com)(+52 55]",
            "prefix":"Ivan Castro; Writing by David Alire Garcia and\n",
            "exact":"Sunil Nair",
            "suffix":")\n ((david.aliregarcia@thomsonreuters.com)(+52 55",
            "offset":731,
            "length":10
         }
      ],
      "relevance":0
   },
   "http:\/\/d.opencalais.com\/comphash-1\/372874bf-6d48-3511-852d-cce95a75cd21":{  
      "_typeGroup":"entities",
      "_type":"Company",
      "forenduserdisplay":"true",
      "name":"Citi",
      "nationality":"N\/A",
      "confidencelevel":"0.999",
      "resolutions":[  
         {  
            "permid":"8589934316",
            "score":1,
            "name":"Citigroup Inc",
            "commonname":"Citigroup",
            "ticker":"C",
            "primaryric":"C.N",
            "id":"https:\/\/ppe.permid.org\/1-8589934316"
         }
      ],
      "_typeReference":"http:\/\/s.opencalais.com\/1\/type\/em\/e\/Company",
      "instances":[  
         {  
            "detection":"[weeks.\n    In a statement, Ficohsa said ]Citi['s assets in Nicaragua that\nit is buying are]",
            "prefix":"weeks.\n    In a statement, Ficohsa said ",
            "exact":"Citi",
            "suffix":"'s assets in Nicaragua that\nit is buying are",
            "offset":363,
            "length":4
         }
      ],
      "relevance":0.8,
      "confidence":{  
         "statisticalfeature":"0.999",
         "dblookup":"0.0",
         "resolution":"1.0",
         "aggregate":"0.999"
      }
   },
   "http:\/\/d.opencalais.com\/genericHasher-1\/f524b1bd-20bf-35d0-a0d7-a174271f5a85":{  
      "_typeGroup":"entities",
      "_type":"Country",
      "forenduserdisplay":"true",
      "name":"Nicaragua",
      "resolutions":[  
         {  
            "name":"Nicaragua",
            "shortname":"Nicaragua",
            "latitude":"12.5968501587",
            "longitude":"-85.8794784127",
            "rcscode":"G:AC",
            "permid":"100213"
         }
      ],
      "_typeReference":"http:\/\/s.opencalais.com\/1\/type\/em\/e\/Country",
      "instances":[  
         {  
            "detection":"[    MANAGUA, June 9 (Reuters) - ]Nicaragua['s banking regulator\napproved the acquisition of]",
            "prefix":"    MANAGUA, June 9 (Reuters) - ",
            "exact":"Nicaragua",
            "suffix":"'s banking regulator\napproved the acquisition of",
            "offset":32,
            "length":9
         },
         {  
            "detection":"[    In a statement, Ficohsa said Citi's assets in ]Nicaragua[ that\nit is buying are valued at $279 million, in]",
            "prefix":"    In a statement, Ficohsa said Citi's assets in ",
            "exact":"Nicaragua",
            "suffix":" that\nit is buying are valued at $279 million, in",
            "offset":380,
            "length":9
         }
      ],
      "relevance":0.2
   },
   "http:\/\/d.opencalais.com\/comphash-1\/cc63c204-219f-3048-a639-b205660aafca":{  
      "_typeGroup":"entities",
      "_type":"Company",
      "forenduserdisplay":"false",
      "name":"Citigroup",
      "nationality":"American",
      "confidencelevel":"0.825",
      "resolutions":[  
         {  
            "permid":"8589934316",
            "score":1,
            "name":"Citigroup Inc",
            "commonname":"Citigroup",
            "ticker":"C",
            "primaryric":"C.N",
            "id":"https:\/\/ppe.permid.org\/1-8589934316"
         }
      ],
      "confidence":{  
         "statisticalfeature":"0.644",
         "dblookup":"0.0",
         "resolution":"1.0",
         "aggregate":"0.825"
      },
      "_typeReference":"http:\/\/s.opencalais.com\/1\/type\/em\/e\/Company",
      "instances":[  
         {  
            "detection":"[Cititarjetas de\nNicaragua, units of U.S.-based ]Citigroup <C.N>[, by Honduran\nfinancial services group Ficohsa,]",
            "prefix":"Cititarjetas de\nNicaragua, units of U.S.-based ",
            "exact":"Citigroup <C.N>",
            "suffix":", by Honduran\nfinancial services group Ficohsa,",
            "offset":156,
            "length":15
         }
      ],
      "relevance":0.8
   },
   "http:\/\/d.opencalais.com\/genericHasher-1\/cd77cde5-e11f-3b56-a6da-1c7aa820bb69":{  
      "_typeGroup":"entities",
      "_type":"Journalist",
      "forenduserdisplay":"true",
      "name":"David Alire Garcia",
      "_typeReference":"http:\/\/s.opencalais.com\/1\/type\/em\/e\/Journalist",
      "instances":[  
         {  
            "detection":"[   \n\n (Reporting by Ivan Castro; Writing by ]David Alire Garcia[ and\nSunil Nair)\n ((david.aliregarcia@thomsonreute]",
            "prefix":"   \n\n (Reporting by Ivan Castro; Writing by ",
            "exact":"David Alire Garcia",
            "suffix":" and\nSunil Nair)\n ((david.aliregarcia@thomsonreute",
            "offset":708,
            "length":18
         }
      ],
      "relevance":0
   },
   "http:\/\/d.opencalais.com\/genericHasher-1\/507d2797-2fc9-32a9-8e16-6161f880a954":{  
      "_typeGroup":"entities",
      "_type":"Journalist",
      "forenduserdisplay":"true",
      "name":"Ivan Castro",
      "_typeReference":"http:\/\/s.opencalais.com\/1\/type\/em\/e\/Journalist",
      "instances":[  
         {  
            "detection":"[ where Ficohsa also operates.    \n\n (Reporting by ]Ivan Castro[; Writing by David Alire Garcia and\nSunil Nair)\n]",
            "prefix":" where Ficohsa also operates.    \n\n (Reporting by ",
            "exact":"Ivan Castro",
            "suffix":"; Writing by David Alire Garcia and\nSunil Nair)\n",
            "offset":684,
            "length":11
         }
      ],
      "relevance":0
   },
   "http:\/\/d.opencalais.com\/comphash-1\/6f73a705-b845-37bc-887e-0f83bbbe97d8":{  
      "_typeGroup":"entities",
      "_type":"Company",
      "forenduserdisplay":"true",
      "name":"Banco Citibank",
      "nationality":"N\/A",
      "confidencelevel":"0.999",
      "_typeReference":"http:\/\/s.opencalais.com\/1\/type\/em\/e\/Company",
      "instances":[  
         {  
            "detection":"[banking regulator\napproved the acquisition of ]Banco Citibank[ and Cititarjetas de\nNicaragua, units of]",
            "prefix":"banking regulator\napproved the acquisition of ",
            "exact":"Banco Citibank",
            "suffix":" and Cititarjetas de\nNicaragua, units of",
            "offset":90,
            "length":14
         }
      ],
      "relevance":0.8,
      "resolutions":[  
         {  
            "permid":"4296549768",
            "score":0.2020156,
            "name":"Banco Citibank SA",
            "commonname":"Banco Citibank",
            "id":"https:\/\/ppe.permid.org\/1-4296549768"
         }
      ],
      "confidence":{  
         "statisticalfeature":"0.999",
         "dblookup":"0.0",
         "resolution":"0.2020156",
         "aggregate":"0.999"
      }
   },
   "http:\/\/d.opencalais.com\/genericHasher-1\/a54ac18b-a956-3b5c-b235-0609ca899305":{  
      "_typeGroup":"entities",
      "_type":"Country",
      "forenduserdisplay":"true",
      "name":"United States",
      "resolutions":[  
         {  
            "name":"United States",
            "shortname":"United States",
            "latitude":"40.4230003233",
            "longitude":"-98.7372244786",
            "rcscode":"G:6J",
            "permid":"100319"
         }
      ],
      "_typeReference":"http:\/\/s.opencalais.com\/1\/type\/em\/e\/Country",
      "instances":[  
         {  
            "detection":"[ Citibank and Cititarjetas de\nNicaragua, units of ]U.S.[-based Citigroup <C.N>, by Honduran\nfinancial]",
            "prefix":" Citibank and Cititarjetas de\nNicaragua, units of ",
            "exact":"U.S.",
            "suffix":"-based Citigroup <C.N>, by Honduran\nfinancial",
            "offset":145,
            "length":4
         }
      ],
      "relevance":0.2
   },
   "http:\/\/d.opencalais.com\/genericHasher-1\/3d7c45fb-891a-3950-8566-a1f5865ac80a":{  
      "_typeGroup":"entities",
      "_type":"IndustryTerm",
      "forenduserdisplay":"false",
      "name":"financial services",
      "_typeReference":"http:\/\/s.opencalais.com\/1\/type\/em\/e\/IndustryTerm",
      "instances":[  
         {  
            "detection":"[ units of U.S.-based Citigroup <C.N>, by Honduran\n]financial services group[ Ficohsa, the regulator said on Tuesday.\n    The]",
            "prefix":" units of U.S.-based Citigroup <C.N>, by Honduran\n",
            "exact":"financial services group",
            "suffix":" Ficohsa, the regulator said on Tuesday.\n    The",
            "offset":185,
            "length":24
         }
      ],
      "relevance":0.2
   },
   "http:\/\/d.opencalais.com\/comphash-1\/8825b993-1d5f-396e-a451-e3547ecff702":{  
      "_typeGroup":"entities",
      "_type":"Company",
      "forenduserdisplay":"false",
      "name":"Ficohsa",
      "nationality":"N\/A",
      "confidencelevel":"0.873",
      "confidence":{  
         "statisticalfeature":"0.936",
         "dblookup":"0.0",
         "resolution":"0.011255843",
         "aggregate":"0.873"
      },
      "_typeReference":"http:\/\/s.opencalais.com\/1\/type\/em\/e\/Company",
      "instances":[  
         {  
            "detection":"[<C.N>, by Honduran\nfinancial services group ]Ficohsa[, the regulator said on Tuesday.\n    The]",
            "prefix":"<C.N>, by Honduran\nfinancial services group ",
            "exact":"Ficohsa",
            "suffix":", the regulator said on Tuesday.\n    The",
            "offset":210,
            "length":7
         },
         {  
            "detection":"[ finalized for\nseveral weeks.\n    In a statement, ]Ficohsa[ said Citi's assets in Nicaragua that\nit is]",
            "prefix":" finalized for\nseveral weeks.\n    In a statement, ",
            "exact":"Ficohsa",
            "suffix":" said Citi's assets in Nicaragua that\nit is",
            "offset":350,
            "length":7
         },
         {  
            "detection":"[approval of Panama's\nbanking regulator, where ]Ficohsa[ also operates.    \n\n (Reporting by Ivan Castro;]",
            "prefix":"approval of Panama's\nbanking regulator, where ",
            "exact":"Ficohsa",
            "suffix":" also operates.    \n\n (Reporting by Ivan Castro;",
            "offset":641,
            "length":7
         }
      ],
      "relevance":0.8,
      "resolutions":[  
         {  
            "permid":"4296098599",
            "score":0.011255843,
            "name":"Banco Financiera Comercial Hondurena SA",
            "commonname":"Banco Financiera",
            "id":"https:\/\/ppe.permid.org\/1-4296098599"
         }
      ]
   },
   "http:\/\/d.opencalais.com\/genericHasher-1\/e65a4365-e792-3e60-93b8-9c1b31f6b3ab":{  
      "_typeGroup":"entities",
      "_type":"Country",
      "forenduserdisplay":"true",
      "name":"Panama",
      "resolutions":[  
         {  
            "name":"Panama",
            "shortname":"Panama",
            "latitude":"8.75154074074",
            "longitude":"-79.8771759259",
            "rcscode":"G:4U",
            "permid":"100236"
         }
      ],
      "_typeReference":"http:\/\/s.opencalais.com\/1\/type\/em\/e\/Country",
      "instances":[  
         {  
            "detection":"[acquisition will also require the approval of ]Panama['s\nbanking regulator, where Ficohsa also]",
            "prefix":"acquisition will also require the approval of ",
            "exact":"Panama",
            "suffix":"'s\nbanking regulator, where Ficohsa also",
            "offset":607,
            "length":6
         }
      ],
      "relevance":0.2
   },
   "http:\/\/d.opencalais.com\/comphash-1\/5c664724-83d9-3459-ae13-62518c7688f2":{  
      "_typeGroup":"relations",
      "_type":"Deal",
      "forenduserdisplay":"true",
      "confidencelevel":"0.881474",
      "_typeReference":"http:\/\/s.opencalais.com\/1\/type\/em\/r\/Deal",
      "instances":[  
         {  
            "detection":"[banking regulator\napproved the acquisition of ]Banco Citibank and Cititarjetas de\nNicaragua, units of U.S.-based Citigroup <C.N>, by Honduran\nfinancial services group Ficohsa[, the regulator said on Tuesday.\n    The]",
            "prefix":"banking regulator\napproved the acquisition of ",
            "exact":"Banco Citibank and Cititarjetas de\nNicaragua, units of U.S.-based Citigroup <C.N>, by Honduran\nfinancial services group Ficohsa",
            "suffix":", the regulator said on Tuesday.\n    The",
            "offset":90,
            "length":127
         }
      ],
      "relevance":0.95,
      "resolutions":[  
         {  
            "dealsdcnum":"2737201040",
            "permid":"154082873862"
         }
      ]
   },
   "http:\/\/d.opencalais.com\/genericHasher-1\/459713c5-0104-3cce-812d-f4961b2cb62d":{  
      "_typeGroup":"relations",
      "_type":"CompanyAffiliates",
      "forenduserdisplay":"true",
      "affiliaterelationtype":"units",
      "_typeReference":"http:\/\/s.opencalais.com\/1\/type\/em\/r\/CompanyAffiliates",
      "company_affiliate":"http:\/\/d.opencalais.com\/comphash-1\/95a8c795-b50f-3184-83a0-eb7b83e0608e",
      "company_parent":"http:\/\/d.opencalais.com\/comphash-1\/cc63c204-219f-3048-a639-b205660aafca",
      "instances":[  
         {  
            "detection":"[the acquisition of Banco Citibank and ]Cititarjetas de\nNicaragua, units of U.S.-based Citigroup <C.N>,[ by Honduran\nfinancial services group Ficohsa,]",
            "prefix":"the acquisition of Banco Citibank and ",
            "exact":"Cititarjetas de\nNicaragua, units of U.S.-based Citigroup <C.N>,",
            "suffix":" by Honduran\nfinancial services group Ficohsa,",
            "offset":109,
            "length":63
         }
      ]
   },
   "http:\/\/d.opencalais.com\/genericHasher-1\/23bd4410-ce2e-3982-8d4b-3c95c10c1c5c":{  
      "_typeGroup":"relations",
      "_type":"Quotation",
      "forenduserdisplay":"true",
      "quotation":"Citi's assets in Nicaragua that\nit is buying are valued at $279 million, in addition to $225\nmillion in deposits and $166 million in loans and $45 million in\nequity, as of the end of March",
      "quotationtype":"Paraphrase",
      "_typeReference":"http:\/\/s.opencalais.com\/1\/type\/em\/r\/Quotation",
      "speaker":"http:\/\/d.opencalais.com\/comphash-1\/8825b993-1d5f-396e-a451-e3547ecff702",
      "instances":[  
         {  
            "detection":"[will not be finalized for\nseveral weeks.\n    ]In a statement, Ficohsa said Citi's assets in Nicaragua that\nit is buying are valued at $279 million, in addition to $225\nmillion in deposits and $166 million in loans and $45 million in\nequity, as of the end of March.[\n    The acquisition will also require the]",
            "prefix":"will not be finalized for\nseveral weeks.\n    ",
            "exact":"In a statement, Ficohsa said Citi's assets in Nicaragua that\nit is buying are valued at $279 million, in addition to $225\nmillion in deposits and $166 million in loans and $45 million in\nequity, as of the end of March.",
            "suffix":"\n    The acquisition will also require the",
            "offset":334,
            "length":218
         }
      ]
   },
   "http:\/\/d.opencalais.com\/genericHasher-1\/55d15584-3c44-3b2b-9cfa-8750d50e846a":{  
      "_typeGroup":"relations",
      "_type":"ContactDetails",
      "forenduserdisplay":"true",
      "messenger":"david.aliregarcia@thomsonreuters.com",
      "_typeReference":"http:\/\/s.opencalais.com\/1\/type\/em\/r\/ContactDetails",
      "instances":[  
         {  
            "detection":"[regulator, where Ficohsa also operates.    \n\n ](Reporting by Ivan Castro; Writing by David Alire Garcia and\nSunil Nair)\n ((david.aliregarcia@thomsonreuters.com)(+52 55 5282\n7151)(Reuters Messaging:\ndavid.aliregarcia.thomsonreuters.com@reuters.net))[\n\nKeywords: NICARAGUA]",
            "prefix":"regulator, where Ficohsa also operates.    \n\n ",
            "exact":"(Reporting by Ivan Castro; Writing by David Alire Garcia and\nSunil Nair)\n ((david.aliregarcia@thomsonreuters.com)(+52 55 5282\n7151)(Reuters Messaging:\ndavid.aliregarcia.thomsonreuters.com@reuters.net))",
            "suffix":"\n\nKeywords: NICARAGUA",
            "offset":670,
            "length":201
         }
      ]
   },
   "http:\/\/d.opencalais.com\/genericHasher-1\/c8430e1d-fbe2-3b32-a095-da84962d16af":{  
      "_typeGroup":"relations",
      "_type":"CompanyLocation",
      "forenduserdisplay":"true",
      "companylocationtype":"N\/A",
      "_typeReference":"http:\/\/s.opencalais.com\/1\/type\/em\/r\/CompanyLocation",
      "company":"http:\/\/d.opencalais.com\/comphash-1\/cc63c204-219f-3048-a639-b205660aafca",
      "country":"http:\/\/d.opencalais.com\/genericHasher-1\/a54ac18b-a956-3b5c-b235-0609ca899305",
      "instances":[  
         {  
            "detection":"[ Citibank and Cititarjetas de\nNicaragua, units of ]U.S.-based Citigroup[ <C.N>, by Honduran\nfinancial services group]",
            "prefix":" Citibank and Cititarjetas de\nNicaragua, units of ",
            "exact":"U.S.-based Citigroup",
            "suffix":" <C.N>, by Honduran\nfinancial services group",
            "offset":145,
            "length":20
         }
      ]
   },
   "http:\/\/d.opencalais.com\/genericHasher-1\/1922fe1f-6e12-36e8-b52f-67224027f278":{  
      "_typeGroup":"relations",
      "_type":"Acquisition",
      "forenduserdisplay":"false",
      "status":"announced",
      "confidencelevel":"0.79",
      "_typeReference":"http:\/\/s.opencalais.com\/1\/type\/em\/r\/Acquisition",
      "company_acquirer":"http:\/\/d.opencalais.com\/comphash-1\/6f73a705-b845-37bc-887e-0f83bbbe97d8",
      "company_beingacquired":"http:\/\/d.opencalais.com\/comphash-1\/95a8c795-b50f-3184-83a0-eb7b83e0608e",
      "instances":[  
         {  
            "detection":"[ June 9 (Reuters) - Nicaragua's banking regulator\n]approved the acquisition of Banco Citibank and Cititarjetas de\nNicaragua, units of U.S.-based Citigroup <C.N>,[ by Honduran\nfinancial services group Ficohsa,]",
            "prefix":" June 9 (Reuters) - Nicaragua's banking regulator\n",
            "exact":"approved the acquisition of Banco Citibank and Cititarjetas de\nNicaragua, units of U.S.-based Citigroup <C.N>,",
            "suffix":" by Honduran\nfinancial services group Ficohsa,",
            "offset":62,
            "length":110
         }
      ]
   }
}

pram
Jun 10, 2001
:chloe:

Doc Block
Apr 15, 2003
Fun Shoe
LOL web developers

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

pram posted:

yeah you can include query parameters too. doesnt make it not retarded

i don't think there's anything wrong with sending data about the thing you're getting when you make a get request.

there's plenty of other problems with this thing

pram
Jun 10, 2001
yes, i agree. imagine the data you send with a get request is in the endpoint path. starting with the key, and ending with an arbitrary number of values. its almost crazy enough to work

pram
Jun 10, 2001
not to mention the obvious thing the web 3.0 engineer here is missing. controller endpoints with unique paths are self documenting. a magical hole you dump requests into isnt. vaery naice

Last Chance
Dec 31, 2004

ugh

Max Facetime
Apr 18, 2009

MrMoo posted:

Ooh JSON, I know this ...

i'm digging all the

JavaScript code:
      "confidence":{  
      "resolutions":[  
      "relevance":0

Triglav
Jun 2, 2007

IT IS HARAAM TO SEND SMILEY FACES THROUGH THE INTERNET
javascript is a simple and powerful language

it is the future

and it is open view source

Adbot
ADBOT LOVES YOU

Valeyard
Mar 30, 2012


Grimey Drawer

pram posted:

yeah you can include query parameters too. doesnt make it not retarded


whats wrong with cors lol

its just bad and doesnt work!!! smp""""""

  • Locked thread