![]() Parser. Parser.add_argument('locationId', required=True, type=int) From the dynamic content list, select the flat file content that you want to encode. If you take a look on listv2 documentation, can be seen that parameters have to be in JSON format. My request looks like users_path = './data/users.json' In the action's Content property, provide the output from the trigger or a previous action that you want to decode by following these steps: Click inside the Content box so that the dynamic content list appears. json files (since that's where the error was coming from). I've tried submitting requests through both Postman and Insomnia and have been met with the same error each time. However, whenever I go to post I'm hit with a 400 Bad Request error and a verbose message stating "Failed to decode JSON object: Expecting value: line 1 column 1 (char 0)". I got to the point where I'm defining the POST method, and I've done so here. ![]() I'm following a tutorial to learn to build an API with Flask.
0 Comments
Leave a Reply. |