Problem: what is API?

2023. 10. 19. 09:55Javascript Node.js/Project: Personal

We start the personal project.

Now I say the point of the matter.

 

matter:

Script by 스파르타코딩클럽

First point: Using JS syntax makes the search web page of the movie.

Second point:  The Open API in the film information uses TMDB(The Movie DB).

 

What is Open API?

Script by 스파라타코딩클럽

I think the property kind of API  has some data like a movie list and something etc.

 

Script by 스파라타코딩클럽

The image URL of the property in the Open API is composed of the base URL, file size, and file path.

 

How to grab the film image from the Open API?

Script by TMDB

The document says if you want to get some best compatibility film images you are requested PNG files in the Open API.

So, I called in Open API in the TMDB.

I checked the element by console.log();

Open API approach
OPENAPI elements

The elements at  Open API I focused on the fetch.

 

The fetch of Open API elements

The elements expected have the film_id and backdrop_path etc.

The study resulting from the OPEN API is not useful on Node js.

So, I shared it with a member of the team.

He said It was difficult to approach the properties.

if you can change the syntax of the OPEN API to async await syntax is possible.

I got a hint!

 

Script by 스파르타코딩클럽

It is basic async await syntax.

And mix of elements and studies from searching on the web page.

Should be powerful !!

(be hard)

continue...

'Javascript Node.js > Project: Personal' 카테고리의 다른 글

Reconstitution: change HTML  (0) 2023.10.31
Code review: session 2  (0) 2023.10.28
Code review: session 1  (0) 2023.10.23