Aplicação Pedra, Papel e Tesoura de exemplo do curso Let's Go!

💎 Pedra 📜 Papel ✂️ Tesoura

Objetivo

Disponibilizar, por meio uma API HTTP Rest, um jogo de "Pedra, Papel, Tesoura".

Rotas

Jogar um jogo de "Pedra, Papel, Tesoura"

Request

  • Path: /games
  • Method: POST
  • Content-Type: application/json
  • Body:
    {
    "name": "Leslie Knope",
    "move": "tesoura"
    }

Response

Success
  • Status code: 200
  • Content-Type: application/json
  • Body:
    {
      "id": "270e2928-74b6-4d2e-b333-15f77ddc2b61",
      "player_name": "Amy Santiago",
      "player_move": "pedra",
      "house_move": "tesoura",
      "result": "victory",
      "created_at": "2021-07-31T16:38:20Z"
    }
Failure
  • Status code: 400, 500
  • Content-Type: application/json
  • Body:
    {
      "reason": "invalid move"
    }

Listar todos os jogos

Request

Response

Similar Resources

EGo lets you build, debug und run Go apps on Intel SGX - as simple as conventional Go programming!

EGo lets you build, debug und run Go apps on Intel SGX - as simple as conventional Go programming!

Dec 28, 2022

rconn is a multiplatform program for creating generic reverse connections. Lets you consume services that are behind firewall or NAT without opening ports or port-forwarding.

rconn is a multiplatform program for creating generic reverse connections. Lets you consume services that are behind firewall or NAT without opening ports or port-forwarding.

rconn (r[everse] conn[ection]) is a multiplatform program for creating reverse connections. It lets you consume services that are behind NAT and/or fi

Jan 1, 2023

Parametrized JSON logging library in Golang which lets you obfuscate sensitive data and marshal any kind of content.

Parametrized JSON logging library in Golang which lets you obfuscate sensitive data and marshal any kind of content.

Noodlog Summary Noodlog is a Golang JSON parametrized and highly configurable logging library. It allows you to: print go structs as JSON messages; pr

Oct 27, 2022

Data Connector is a Google Sheets Add-on that lets you import (and export) data to/from Google Sheets

Data Connector Data Connector is a Google Sheets Add-on that lets you import (and export) data to/from Google Sheets. Our roadmap: Connect to JSON/XML

Jul 30, 2022

go mod vendor lets you check in your dependencies to git, but that's both bloaty (for developers) and tedious (remembering to update it).

go-mod-archiver Afraid of being unable to build historical versions of your Go program? go mod vendor lets you check in your dependencies to git, but

Dec 1, 2022

Chrono is a scheduler library that lets you run your task and code periodically

Chrono is a scheduler library that lets you run your task and code periodically

Chrono is a scheduler library that lets you run your tasks and code periodically. It provides different scheduling functionalities to make it easier t

Dec 26, 2022

The Fabric Smart Client is a new Fabric Client that lets you focus on the business processes and simplifies the development of Fabric-based distributed application.

Fabric Smart Client The Fabric Smart Client (FSC, for short) is a new Fabric client-side component whose objective is twofold. FSC aims to simplify th

Dec 14, 2022

The Fabric Token SDK is a set of API and services that lets developers create token-based distributed application on Hyperledger Fabric.

The Fabric Token SDK is a set of API and services that let developers create token-based distributed application on Hyperledger Fabric.

Dec 14, 2022

lets play a game

Flashbots is a research and development organization formed to mitigate the negative externalities and existential risks posed by miner-extractable value (MEV) to smart-contract blockchains.

Jul 9, 2021

yq lets you read YAML files easily on the terminal. You can find key/values easily

yq lets you read YAML files easily on the terminal. You can find key/values easily

yq yq lets you read YAML files easily on the terminal. You can find key/values easily. Motivation Reading yaml configurations for k8s file becomes ard

Nov 2, 2021

Aces is a command line utility that lets you encode any file to a character set of your choice.

Aces Any Character Encoding Set Aces is a command line utility that lets you encode any file to a character set of your choice. For example, you could

Nov 28, 2022

This web app made with Go, and database handled with GraphQL lets me decide what to watch next! I can wishlist or mark a movie watched to manage my movie watchlist. Users worldwide can suggest me anything to watch and add it to my watchlist.

This web app made with Go, and database handled with GraphQL lets me decide what to watch next! I can wishlist or mark a movie watched to manage my movie watchlist. Users worldwide can suggest me anything to watch and add it to my watchlist.

Next-watch website - Next watch Introduction This web app made with Go, and database handled with GraphQL lets me decide what to watch next! I can wis

Oct 1, 2021

Wormhole-gui is a cross-platform application that lets you easily share files, folders and text between devices.

Wormhole-gui is a cross-platform application that lets you easily share files, folders and text between devices.

Cross-platform application for easy encrypted sharing of files, folders, and text between devices.

Dec 30, 2022

A compute service that lets you run code without provisioning or managing servers

AWS Lambda for Go Lambda is a compute service that lets you run code without provisioning or managing servers. Lambda runs your code on a high-availab

Oct 13, 2021

A fork of k3sup that lets you quickly deploy RKE2 clusters via the CLI.

k2sup This is an awful hack of a fork of Alex Ellis' k3sup - a light-weight utility to get from zero to KUBECONFIG, originally with K3s but now with R

Dec 12, 2022

The Tailscale Resource Provider lets you manage Tailscale resources

Tailscale Resource Provider The Tailscale Resource Provider lets you manage Tailscale resources. Installing This package is available in many language

Nov 2, 2022

ls Xtended : A command line utility which lets you navigate through terminal like a pro 😎.

ls Xtended : A command line utility which lets you navigate through terminal like a pro 😎.

Navigate through terminal like a pro 😎 💻 Demo • ⚗️ Installation • 🐜 Contribution • ❗ Known Issues ❓ Why? It's a pain to cd and ls multiple times to

Dec 14, 2022

go-sche is a golang library that lets you schedule your task to be executed later.

go-sche is a golang library that lets you schedule your task to be executed later.

Dec 24, 2022

qclean lets you to clean up search query in japanese.

qclean qclean lets you to clean up search query in japanese. This is mainly used to remove wasted space. Quick Start package main var cleaner *qclean

Jan 4, 2022
CLI criada no curso Aprenda Golang do Zero! Desenvolva uma APLICAÇÃO COMPLETA!

go-cli CLI criada no curso Aprenda Golang do Zero! Desenvolva uma APLICAÇÃO COMPLETA! Este projeto utiliza o pacote Urfave CLI. Para utiliza-lo basta

Jan 10, 2022
Simples exemplo de CRUD para armazenar em memoria os dados vindo do JSON.

API Growth Este repositório foi criado para colocarmos projetos em diversas linguagens com intúito totalmente didático para colaborar com a comunidade

Dec 14, 2022
Placeholder for the future project (lets-go-chat)Placeholder for the future project (lets-go-chat)

Placeholder for the future project (lets-go-chat)Placeholder for the future project (lets-go-chat)

Jan 10, 2022
Requser - Aplicação responsável por solicitar ao concierge, listas de permissões, inclusão de permissão, exclusão de permissão para o ambiente.

requser ⚠ Atenção ⚠ ?? Esta área está em desenvolvimento ?? Aplicação responsável por solicitar ao https://github.com/Pinablink/concierge, listas de p

Dec 31, 2021
Alura Challenge Backend 3 - Desenvolva uma aplicação web para analisar e investigar transações financeiras

alura-challenge-backend Descrição Aplicação para upload e análise de transações financeiras. Suporte arquivos .csv com os campos abaixo (não utilizar

Aug 17, 2022
Curso Docker desde cero

Curso Docker desde cero Según la última encuesta realizada por Stack OverFlow, publicada en febrero de 2020, Docker se posiciona en la casilla número

Aug 29, 2022
Projeto base de estudo da GoLang - Curso Alura

Go Projeto desenvolvido durante o curso de Go da Alura. Esse curso tem como objetivo conhecer os princípios básicos da linguagem Go. Requisitos Ter o

Jan 19, 2022
Repositório do curso introdutório da linguagem Go

curso-go Repositório do curso introdutório da linguagem Go Inicializando o módulo cd curso-go/ go mod init github.com/eminetto/curso-go Executando go

Jul 20, 2022
gproxy is a tiny service/library for creating lets-encrypt/acme secured gRPC and http reverse proxies
gproxy is a tiny service/library for creating lets-encrypt/acme secured gRPC and http reverse proxies

gproxy is a reverse proxy service AND library for creating flexible, expression-based, lets-encrypt/acme secured gRPC/http reverse proxies GProxy as a

Sep 11, 2022
EGo lets you build, debug und run Go apps on Intel SGX - as simple as conventional Go programming!

EGo is a framework for building confidential apps in Go. Confidential apps run in always-encrypted and verifiable enclaves on Intel SGX-enabled ha

Dec 28, 2022