Git Product home page Git Product logo

moviesapi_ir's People

Contributors

abbas-oveissi avatar ashkanrmk avatar mosi13 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

moviesapi_ir's Issues

CORS Error

I want to register a user but when I call the register API I get the following error?

Access to fetch at 'https://moviesapi.ir/api/v1/register' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

this is my code :

    const endpoint = "https://moviesapi.ir/api/v1/register"
    const data = {
      email: "[email protected]",
      password: "Ar2480014037",
      name: "abolfazl"
    }

    fetch(endpoint, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json;charset=utf-8'
      },
      body: JSON.stringify(data)
    })
      .then(resposne => resposne.json())
      .then(result => {
        console.log(result)
      })
      .catch(error => {
        console.log(error)
      })

How can I solve this problem?
Thanks in advance

Apis not working

Hi
Calling apis not working. e.g https://moviesapi.ir/api/v1/movies?page=1

Fonts not found in website

In movies list api site, Vazir font doesn't load because its css file gets 404 not found.
I find that in www.moviesapi.ir/vendor there is no Vazir font file, but there is IranSans.
So I can change the website font to IranSans and send a pull request if you want.

image

Error in movies list api

Hi , I was just trying to use this api in flutter and faced to String casting to int error
and after some debugging i found out that The api return current_page = "2" in this request response http://moviesapi.ir/api/v1/movies?page=2
like that metadata":{"current_page":"2","per_page":10,"page_count":25,"total_count":250}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.