Trouble with connecting with an Api Rest - json

I am trying to connect with an Api Rest, this is the link: https://movie-database-alternative.p.rapidapi.com/?s=Avengers+Endgame&r=json&page=1 , the problem is that i have never work with JSON and i don't know what to do. This link makes a get to the movies named "Avengers endgame", but I need it to be a specific link to be able to make the connection to the rest api. (This api is public, I'm working with data virtualization).
I tried to make some connections but i dont quite understand the syntaxis of JSON. It is not my field :( Coud somebody help me? Thanks!

Related

Flurl deserialization issues when calling .NET Web API

Currently creating a Xamarin Mobile App which uses an ASP.NET Web API, however, I'm having issues de-serializing the data on the app side.
I've tried a multitude of ways none of which I can get to work. Flurl GetStringAsync & GetAsync work as they should, however, these too show the same issue when trying to serialize the data afterward with GetJsonAsync and don't give any issues on where the problem might be.
https://i.stack.imgur.com/ZFbwV.png
I've checked the data with insomnia and know the API is outputting the correct data.
https://i.stack.imgur.com/WgoxP.png
Currently have the code as shown however as noted above this doesn't work.
https://i.stack.imgur.com/bOAhF.png
Any help would be much appreciated
After searching for hours through youtube videos i fixed the issue by changing the data type to a list, with the 'patientdata' object beneath it.
https://i.stack.imgur.com/nfQdy.png

How to find how many json endpoints an api has

I’m in the middle of making an Express app. It’s just a learning project.
I’m getting some info from an Anime api called jikan.me, it provides info about different Anime series like a picture url and synopsis.
For example one is at https://api.jikan.me/anime/16 .
Now, the jikan api might have a json endpoint at anime/1 but there's nothing at anime/2.
I want to find a list of all the numbers (https://api.jikan.me/anime/[numbers]) that actually contain endpoints.
I've tried simply going to https://api.jikan.me/anime but it returns error: No ID/Path Given.
I'm expecting there is likely no absolute answer to this problem but that I might learn something about server-side code along the way.
Where would I begin to look to find this info?
This is a bit late but, Jikan is an unofficial REST API for MyAnimeList. The IDs are respective to the IDs on MAL. For example; https://myanimelist.net/anime/1 can be parsed through https://api.jikan.moe/anime/1 but the ID 2 does not exist on MAL. It's a 404, hence that error.
To initially get some IDs, you can try the search endpoint.
Furthermore, I'll be releasing REST 2.2 quite soon (this month) which will give you the ability to parse from pages like these and thus you'll get another endpoint that provides a handful of IDs to get their data from.
Source: I'm the developer of Jikan
If it's not in the documentation it's probably information not available to you... a REST api needs to be specifically configured to offer certain endpoints, that number at the end might just be an ID that's searched for in an internal database and there's no way for the application to know if there's gonna be something there; all they can do is return an error message for you to handle as is the case here.

Incomplete Json - Behance API

I'm working with the Behance API to build a plugin. I got the API key and built the URL to get my project list data in JSON format.
The weird thing is that, the JSON is not complete at all, there are many project missing, 14 missing to be specific.
Does someone have any idea?
Thanks in advance.
Found the solution here: https://help.behance.net/hc/en-us/community/posts/202357274-Number-of-Behance-API-request-results-limited-to-25-
It seems that by default the number of items is limited to 25. To get more you need to paginate adding a query get after the URL.
ex: http://www.behance.net/v2/users/gokhanaltinigne/projects?api_key=##&per_page=25&page=2

WSo2 API Manager 1.8.0 - JSON parsing issue

I am new to wso2 API Manager, trying to set it up expose my plain HTTP POST back end calls as a REST API. I am sure this is not a new pattern that I am trying to achieve here. The requirement is to convert the JSON data coming in (has array structures) into the HTTP URL query string parameters.
After some research through the documentation and other posts on this forum, decided to go with the script mediator that would parse the JSON data and convert it to a string that can be appended to the endpoint URL. Some how I am not able to achieve this.
I have followed the following post that seems to be very straight forward. As the original poster suggested, I am also not able to use getPayloadJSON() method. Even have trouble using the work around suggested there due to JSON.parse() not working.
Link
Also, this approach of editing the service bus configuration from source view does not sound like the correct option. Is there another elegant solution to achieve this? Thanks for the help in advance.
I was able to get both methods working by using an external script instead of the inline java script. Thanks

Security when getting data from MySQL/PHP via JSON in XCode

I’m making a company pricelist app for the iPhone.
Most of my application is finished, except for the “security” part.
I use PHP to extract from the SQL database, and encode it as JSON.
All this is fine, except….
I would like to protect my pricelist data from others not accessing the URL request from a browser.
I’m not a great web / php programmer and I’m not sure how to implement this on the serverside.
For now I have just made a user/password in the URLRequest like
www.hopepage.com/searchDB?User=Jack&Pass=Jones&Comp=iPhone%
In the PHP I have then made something like
IF user and pass in user database then
Select * from components where comp like &Comp
However, this request shows my login in the URL string, an what is somebody sniffs this string ? I guess this is fairly easily possible ?
I have read a bit about SSL and HTTPS, but I’m not sure how to implement it on the serverside.
Anybody knows about good documentation, or can lead me in the right direction ?
Maybe a tutorial hidden somewhere on the net (I have searched, but maybe not used the correct words).
Anybody