microsoft / codetour

VS Code extension that allows you to record and play back guided tours of codebases, directly within the editor.
https://aka.ms/codetour
MIT License
4.34k stars 109 forks source link

How can I send this JSON? #214

Open synedra opened 2 years ago

synedra commented 2 years ago

This command works in the terminal, but not with >>. Can you make this work?

http POST :/rest/v2/schemas/keyspaces/workshop/tables json:='{ "name": "cavemen", "ifNotExists": false, "columnDefinitions": [ { "name": "firstname", "typeDefinition": "text", "static": false }, { "name": "lastname", "typeDefinition": "text", "static": false }, { "name": "occupation", "typeDefinition": "text" } ], "primaryKey": { "partitionKey": [ "lastname" ], "clusteringKey": [ "firstname" ] } }'

synedra commented 2 years ago

Ends up looking like this:

[http POST :/rest/v2/schemas/keyspaces/workshop/tables json:='{](command:codetour.sendTextToTerminal?%5B%22http%20POST%20%3A%2Frest%2Fv2%2Fschemas%2Fkeyspaces%2Fworkshop%2Ftables%20json%3A%3D'%7B%5C%5C%22%5D "Run "http POST :/rest/v2/schemas/keyspaces/workshop/tables json:='{\" in a terminal") "name": "cavemen", "ifNotExists": false, "columnDefinitions": [ { "name": "firstname", "typeDefinition": "text", "static": false }, { "name": "lastname", "typeDefinition": "text", "static": false }, { "name": "occupation", "typeDefinition": "text" } ], "primaryKey": { "partitionKey": [ "lastname" ], "clusteringKey": [ "firstname" ] } }'