ramenGO

Ramen GO

Java Spring

Ramen GO é uma API para uma aplicação web chamada RamenGo, uma plataforma para que o usuário possa montar um pedido de ramen, escolhendo os tipos de caldos e proteínas do prato.

Requires

Endpoints

The API offers the following endpoints:

  1. GET /broths
    • Description: List all available broths.
    • Responses:
      • 200: List of broths retrieved successfully
      • 403: Error: “x-api-key header missing”
  2. GET /proteins
    • Description: List all available proteins.
    • Responses:
      • 200: List of proteins retrieved successfully
      • 403: Error: “x-api-key header missing”
  3. POST /orders
    • Description: Create a new user with the provided user information.
    • Parameters:
      • brothId (path, required): Id of broth to be retrieved.
      • proteinId (path, required): Id of protein to be retrieved.
    • Responses:
      • 201: OK (User created successfully)
      • 400: Bad Request: “both brothId and proteinId are required”
      • 403: Forbidden: “x-api-key header missing”
      • 500: Internal Server Error: “could not place order”

        Test

Configure the x-api-key for the project.

You can use tools like curl or Postman to test the endpoints, right below are some curl examples: