Lists all restaurants

POST /restaurants
application/x-www-form-urlencoded

Body Required

USP request body for authentication

  • hash string Required

Responses

  • 200 application/json

    Default response

    Hide response attributes Show response attributes object
    • name string
    • restaurants array[object]
      Hide restaurants attributes Show restaurants attributes object
      • alias string
      • address string
      • name string
      • phones string
      • id string
      • latitude string
      • longitude string
      • photourl string
      • workinghours object
        Hide workinghours attributes Show workinghours attributes object
        • sunday object
          Hide sunday attributes Show sunday attributes object
          • lunch string
          • dinner string
          • breakfast string
        • saturday object
          Hide saturday attributes Show saturday attributes object
          • lunch string
          • dinner string
          • breakfast string
        • weekdays object
          Hide weekdays attributes Show weekdays attributes object
          • lunch string
          • dinner string
          • breakfast string
      • cashiers array[object]
        Hide cashiers attributes Show cashiers attributes object
        • address string
        • prices object
          Hide prices attributes Show prices attributes object
          • special object
            Hide special attributes Show special attributes object
            • lunch string
            • dinner string
            • breakfast string
          • students object
            Hide students attributes Show students attributes object
            • lunch string
            • dinner string
            • breakfast string
          • visiting object
            Hide visiting attributes Show visiting attributes object
            • lunch string
            • dinner string
            • breakfast string
          • employees object
            Hide employees attributes Show employees attributes object
            • lunch string
            • dinner string
            • breakfast string
        • longitude string
        • latitude string
        • workinghours string
      • hasCashier string
  • 500

    Error if a bad hash was passed on request

  • 400

    Something was missing in the request

POST /restaurants
curl \
 -X POST https://uspdigital.usp.br/rucard/servicos/restaurants \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'hash=string'
Request example
{
  "hash": "string"
}
Response examples (200)
{
  "name": "Cidade Universitária",
  "restaurants": [
    {
      "alias": "Central - Campus Butantã",
      "address": "Praça do Relógio Solar, travessa 8, no 300, Campus Butantã, São Paulo - SP",
      "name": "Central - Campus Butantã",
      "phones": "(11) 3091-3318",
      "id": "6",
      "latitude": "-23.5602110",
      "longitude": "-46.7218170",
      "photourl": "https://uspdigital.usp.br/comumwebdev/imagens/cardapio/central.jpg",
      "workinghours": {
        "sunday": {
          "lunch": "",
          "breakfast": "",
          "dinner": ""
        },
        "saturday": {
          "lunch": "11:15 às 14:15",
          "breakfast": "07:30 às 09:00",
          "dinner": ""
        },
        "weekdays": {
          "lunch": "11:15 às 14:15",
          "breakfast": "07:00 às 08:30",
          "dinner": "17:30 às 19:45"
        }
      },
      "cashiers": [
        {
          "address": "Rua do Anfiteatro, nº 295 - Cidade Universitária - São Paulo - CEP 05508-060",
          "prices": {
            "special": {
              "dinner": "10,00",
              "lunch": "10,00",
              "breakfast": ""
            },
            "students": {
              "dinner": "2,00",
              "lunch": "2,00",
              "breakfast": ""
            },
            "visiting": {
              "dinner": "15,00",
              "lunch": "15,00",
              "breakfast": ""
            },
            "employees": {
              "dinner": "15,00",
              "lunch": "15,00",
              "breakfast": ""
            }
          },
          "longitude": "-46.7216980",
          "latitude": "-23.5594340",
          "workinghours": "Segunda à Sexta - 7h as 19h45"
        }
      ],
      "hasCashier": "false"
    }
  ]
}