Skip to content

Back-end and ETL systems of the Cuarto de Milla application, which processes and displays national mexican gas stations information from open datasets

Notifications You must be signed in to change notification settings

jcalvarezj/CDM-Back-end

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cuarto de Milla

This is the Cuarto de Milla application's Backend, containing a Django API and an ETL module for feeding the database with current data from Datos Abiertos de Mexico

Cuarto de Milla - API

Pagination

The api provides a pagination system for make querys.

Query:

{
  allStations(first:2, after: "YXJyYXljb25uZWN0aW9uOjE=" ){
    pageInfo{
      startCursor
      endCursor
      hasNextPage
      hasPreviousPage
    }
    edges{
      cursor
      node{
        name
        register
        state
      }
    }
  }
}

Response

{
  "data": {
    "allStations": {
      "pageInfo": {
        "startCursor": "YXJyYXljb25uZWN0aW9uOjI=",
        "endCursor": "YXJyYXljb25uZWN0aW9uOjM=",
        "hasNextPage": true,
        "hasPreviousPage": false
      },
      "edges": [
        {
          "cursor": "YXJyYXljb25uZWN0aW9uOjI=",
          "node": {
            "name": "CIRCULO DOS, S.A. DE C.V.",
            "register": "PL/635/EXP/ES/2015"
          }
        },
        {
          "cursor": "YXJyYXljb25uZWN0aW9uOjM=",
          "node": {
            "name": "Becktrop Operadora SA de CV",
            "register": "PL/708/EXP/ES/2015"
          }
        }
      ]
    }
  }
}

More Information:

See the documentation here

About

Back-end and ETL systems of the Cuarto de Milla application, which processes and displays national mexican gas stations information from open datasets

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 92.6%
  • Python 7.4%