amamenko / owen-wilson-wow-api Goto Github PK
View Code? Open in Web Editor NEWJSON API for actor Owen Wilson's 'wow' exclamations in movies
Home Page: https://owen-wilson-wow-api.onrender.com
License: MIT License
JSON API for actor Owen Wilson's 'wow' exclamations in movies
Home Page: https://owen-wilson-wow-api.onrender.com
License: MIT License
Describe the solution you'd like
I'd like to be able to get a list of all of the wows in a specified movie ie. wows/all?movie=cars
I'm not specifically set on the url path but would love to see this implemented. Im happy to give it a go if you accept PRs
Instead of having to refresh the entire page, it would be nice to be able to simply refresh the example output.
The project is currently missing the issue templates which help the audiences to interact with the project having some specific issues. If you would want to add them, then I would like to add a PR with some relevant issue templates.
Please let me know what you think about this.
Such a fun API. Great work!
I would love an Open API 3 specification yaml so I can really easily import this into Postman! I can already think of some great applications of this API for demoing Postman and Swagger actually.
I wanted to have a little play around and perhaps build a funny front end (React + TS), and just doing some preliminary api checks.
And am receiving this error.
If i'm not mistaken i believe on the backend side you need to enable access-control-allow-origin: *
to allow users to fetch results in their own apps.
Error below:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://owen-wilson-wow-api.herokuapp.com/wows/movies. (Reason: CORS header ‘Access-Control-Allow-Origin’ does not match ‘https://owen-wilson-wow-api.herokuapp.com’).
Please correct me if i'm wrong.
This is the code i'm running.
const getWow = (): Promise<Response> => {
return fetch('https://owen-wilson-wow-api.herokuapp.com/wows/movies')
}
const fetchWow = () => {
getWow().then((w) => {
console.log(w.json)
})}
Attached to a button onclick.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.