Giter VIP home page Giter VIP logo

api-platform-pole-emploi's Introduction

API Platform with Pole-Emploi API

Show how keep the hydra result and pagination an external API using PaginatorInterface and IteratorAggregate

Install

Create .env.local file from template .env file

To get your Api's keys go to https://pole-emploi.io/

Set POLE_EMPLOI_SECRET_KEY and POLE_EMPLOI_ID_KEY variables

composer install

Launch

symfony serve --no-tls

Usae

/api/pole_emplois?page=1&q=job_name

Result example

{
    "@context": "/api/contexts/PoleEmploi",
    "@id": "/api/pole_emplois",
    "@type": "hydra:Collection",
    "hydra:member": [
        {
            "@id": "/api/pole_emplois/10944",
            "@type": "PoleEmploi",
            "code": "10944",
            "libelle": "Analyste développeur / développeuse",
            "libelleCourt": "Analyste développeur / développeuse",
            "particulier": false
        },
        {
            "@id": "/api/pole_emplois/14155",
            "@type": "PoleEmploi",
            "code": "14155",
            "libelle": "Développeur / Développeuse multimédia",
            "libelleCourt": "Développeur / Développeuse multimédia",
            "particulier": false
        }...
    ],
    "hydra:totalItems": 100,
    "hydra:view": {
        "@id": "/api/pole_emplois?q=dev&page=1",
        "@type": "hydra:PartialCollectionView",
        "hydra:first": "/api/pole_emplois?q=dev&page=1",
        "hydra:last": "/api/pole_emplois?q=dev&page=4",
        "hydra:next": "/api/pole_emplois?q=dev&page=2"
    }
}

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.