micro / services

Real World Micro Services
Apache License 2.0
1.26k stars 138 forks source link

feat: add movie search service #293

Closed h1z3y3 closed 2 years ago

h1z3y3 commented 2 years ago

close #183

powered by: https://developers.themoviedb.org/3/search/search-movies

call service:

micro call movie Movie.SearchMovie '{"query": "Venom", "primary_release_year": 2021}' 
asim commented 2 years ago

Thank you for the contribution, this API will appear at https://m3o.com/movie shortly.

h1z3y3 commented 2 years ago

Cool !!! And I noticed that there is a field run_check, so what's the difference if the it's true.

asim commented 2 years ago

If run_check is true then we periodically run the example to check if the API is functioning correctly. When it fails we receive an alert. Otherwise the check is disabled.

h1z3y3 commented 2 years ago

Ok, I think it's better to set it always be true. 😂

asim commented 2 years ago

Some APIs are generally quite glitchy or timeout so we don't test anything. In the long term yes that's something we want to do.

Do you have an account on the m3o platform?

h1z3y3 commented 2 years ago

I just signed up one with my google account: gmzhaoyang.at.gmail.com

I'm learning about go-micro and micro, so I want to do more contributions on these projects. So if there is anything I can help, please @me let me know. I'd be pleasure with it.

h1z3y3 commented 2 years ago

Oh, it's here: https://m3o.com/movie, I'm glad to see it getting online.

asim commented 2 years ago

We've credited your account with $10. Thanks for your contribution!

h1z3y3 commented 2 years ago

Wow, thank you very much.

I get an idea about that I can create some Alfred workflows with m3o.com APIs due to the APIs are very suitable for Alfred workflows. I don't know if it can help to get more users, but I would try it.

h1z3y3 commented 2 years ago

If I do more contribution, could I apply to join Micro Organization to make my resume shine?

asim commented 2 years ago

We welcome more contribution of APIs and will continue to provide credit for those contributions.

We are not currently adding members to the micro org but may define some sort of "creator" programme which you can then identify yourself as a Micro Creator or similar in the future.

h1z3y3 commented 2 years ago

🆒