I'm trying to get the api v2 http for service/show to work (the v1 works fine). OpenLP 3.0.1. Can someone either share or point me to a working example of json in the v2 API? I'm sending a POST to http://192.168.1.118:4316/api/v2/service/show with a body of {"id": "5051046b-95bb-11ed-84c1-2cf05d9aeb80"} This seems like it should work based on https://gitlab.com/openlp/wiki/-/wikis/Documentation/HTTP-API . The get using the v2 api to get service items works fine. I don't know if I'm looking at the right api guide or if there's another with examples? Any help greatly appreciated.
Comments
Hi, your json is OK, but you need to POST with proper header "Content-type: application/json" so your json is not interpretted as form-encoded...
Thanks @jednou that was it.