API RESTful Challenge

Overview

developer-challenge

API RESTful Challenge

API feita com java e hospedada no Heroku

#Adicionar país
Metodo: [POST]
https://challenge-rest-api.herokuapp.com/add-country

Exemplo:

{
    "name" : "Brazil",
    "capital" : "Brasília",
    "region" : "America do Sul",
    "subRegion" : "...",
    "area" : "8.516 million km quadrados"
}

Resposta:

{
    "mensagem": "País adicionado com sucesso."
}

#Listar países
Metodo: [GET]
https://challenge-rest-api.herokuapp.com/get-countries

Resposta:

[
    {
        "area": "801 537 km²",
        "capital": "Maputo",
        "subRegion": "...",
        "name": "Mozambique",
        "id": "SomIDGenCounTrY1kEy1886693",
        "region": "Sul"
    },
    {
        "area": "801 800 km²",
        "capital": "Berlim",
        "subRegion": "...",
        "name": "Alemanha",
        "id": "SomIDGenCounTrY3kEy374658",
        "region": "Sudoeste"
    }
]

#Actualizar o país
Metodo: [PUT]
https://challenge-rest-api.herokuapp.com/update-country

Exemplo:

{
        "area": "1000 100 km²",
        "capital": "Kerlim Mil",
        "subRegion": "... Mil",
        "name": "Alemanha",
        "region": "Sudoeste Mil",
        "id":"SomIDGenCounTrY3kEy374658"
}

Nota: não é obrigatorio mandar todos campos, pode amndar somente os que precisa actualizar.

Resposta:

{
    "mensagem": "País actualizado com sucesso."
}

#Eliminar um país
Metodo: [DELETE]
https://challenge-rest-api.herokuapp.com/delete-country

Exemplo:

{
    "id": "SomIDGenCounTrY3kEy374658"
}

Resposta:

{
    "mensagem": "País eliminado com sucesso com sucesso."
}

#Ordenar a lista dos países por qualquer uma das suas propriedades
Metodo: [GET]
https://challenge-rest-api.herokuapp.com/get-countries

É so acrescentar o parametro (order) e o valor respectivo à propriedade pela qual pretende ordenar os paises

Exemplo:
https://challenge-rest-api.herokuapp.com/get-countries?order=region
https://challenge-rest-api.herokuapp.com/get-countries?order=name
ou https://challenge-rest-api.herokuapp.com/get-countries?order=region

Resposta:

[
    {
        "area": "801 537 km²",
        "capital": "Maputo",
        "subRegion": "...",
        "name": "Mozambique",
        "id": "SomIDGenCounTrY1kEy1886693",
        "region": "Sul"
    },
    {
        "area": "801 800 km²",
        "capital": "Berlim",
        "subRegion": "...",
        "name": "Alemanha",
        "id": "SomIDGenCounTrY3kEy374658",
        "region": "Sudoeste"
    }
]
You might also like...

API de Clientes - Java+Quarkus

com.clientes.api Project This project uses Quarkus, the Supersonic Subatomic Java Framework. If you want to learn more about Quarkus, please visit its

Oct 12, 2021

An easy to use api to interact with many versions of minecraft in a version independent environment.

Glass - API An easy to use api to interact with many versions of minecraft in a version independent environment. Setup Instructions should be relative

Jan 25, 2022

API - Aprendizagem por Projetos Integrados

API - Aprendizagem por Projetos Integrados Participantes Nome Função GitHub Everton Ricardo Wanderley da Rocha Product Owner Gustavo Konflanz Mezzomo

Apr 15, 2022

RESTEasy is a JBoss project that provides various frameworks to help you build RESTful Web Services and RESTful Java applications

RESTEasy RESTEasy is a JBoss.org project aimed at providing productivity frameworks for developing client and server RESTful applications and services

Dec 23, 2022

Desafio Alura Challenge para backend. Criando uma API REST de controle de orçamento utilizando JAVA.

Desafio Alura Challenge para backend. Criando uma API REST de controle de orçamento utilizando JAVA.

Jun 16, 2022

A distributed event bus that implements a RESTful API abstraction on top of Kafka-like queues

A distributed event bus that implements a RESTful API abstraction on top of Kafka-like queues

Nakadi Event Broker Nakadi is a distributed event bus broker that implements a RESTful API abstraction on top of Kafka-like queues, which can be used

Dec 21, 2022

能将对API的调用转化为对手机的操作,软件自身提供 restful API,运行于安卓,一切操作与获取信息均由软件完成。

能将对API的调用转化为对手机的操作,软件自身提供 restful API,运行于安卓,一切操作与获取信息均由软件完成。

文档地址:https://www.lookcos.cn/docs/hermit Hermit简介 Hermit,是一款用于Android自动化测试的软件,运行于安卓,通过接收restful API请求,进而转化为对设备的操作。 支持快速的点击、滑动、读取与设置剪切板(支持中文)、模拟输入、寻找控件并

Dec 13, 2022

GithubReleases4J - GitHub Releases for Java , based on GitHub RESTful API .

GithubReleases4J - GitHub Releases for Java , based on GitHub RESTful API .

Jun 27, 2022

Database with Java Swing UI that stores consumables (food & drink) using RESTful API to send commands via HTTP

Database with Java Swing UI that stores consumables (food & drink) using RESTful API to send commands via HTTP

Database with Java Swing UI that stores consumables (food & drink) using RESTful API to send commands via HTTP.

Mar 8, 2022

Movie,actor & director RESTful API. Sample app with jpa, flyway and testcontainers

Movie,actor & director RESTful API. Sample app with jpa, flyway and testcontainers

spring-restful-jpa-flyway Movie,actor & director RESTful API. Sample app with jpa, flyway and testcontainers.

Dec 10, 2022

This is the RestFul API using SpringBoot made to integrate the frontend of this repository.

This is the RestFul API using SpringBoot made to integrate the frontend of this repository. Requirements For building and running the application you

Jan 21, 2022

DatasetCreator is a lightweight RESTFul client implementation of the Salesforce CRM Analytics External Data API.

DatasetCreator is a lightweight RESTFul client implementation of the Salesforce CRM Analytics External Data API. It has been deliberately developed with no 3rd party jars with the goal of being a lean, reliable and scalable solution.

Dec 16, 2022

Restful-booker API test automation project using Java and REST Assured.

Restful-booker API Test Automation Restful-booker API is an API playground created by Mark Winteringham for those wanting to learn more about API test

Aug 14, 2022

Algorithms Made Easy May 10 Challenge

Algorithms Made Easy May 10 Challenge

Algorithms-Made-Easy-May-Challenges Algorithms Made Easy May 10 day 30 problems Challenge Hi 👨‍🎓 , I'm Rohit Kumar Singh All Leetcode Soluton Connec

May 24, 2021

Repository for FIRST Tech Challenge team 3916 Apex Robotics for the 2021-2022 game year (Freight Frenzy)

FTC Team 3916 - Apex Robotics This is our repo for the 2020-2021 game year - Ultimate Goal Installation Clone this repo. You can do this through the w

Nov 4, 2021

This is a Bukkit-Event based AntiCheat created cause of a challenge.

XAC - XAntiCheat This is a Bukkit-Event based AntiCheat made out of a challenge with a friend of mine. Its not recommandable to use and also a bit exp

Apr 6, 2022

30 Days Coding Challenge with Arsh Goyal.

#ReviseWithArsh #6Companies30Days #ArshGoyal #ReviseWithArsh #6Companies30Days Challenge! Offical Doc:- Explore the docs » Offical Video:- Explore the

Jan 3, 2023
Owner
Albertino Augusto Marrengule
Full Stack Developer, definition of life. "Digital", Games and Electronic Music, i use programming to simplify people's lives with a few clicks.
Albertino Augusto Marrengule
A damn simple library for building production-ready RESTful web services.

Dropwizard Dropwizard is a sneaky way of making fast Java web applications. It's a little bit of opinionated glue code which bangs together a set of l

Dropwizard 8.3k Jan 5, 2023
Examples and server integrations for generating the Swagger API Specification, which enables easy access to your REST API

Swagger Core NOTE: If you're looking for Swagger Core 1.5.X and OpenAPI 2.0, please refer to 1.5 branch. NOTE: Since version 2.1.7 Swagger Core suppor

Swagger 7.1k Jan 5, 2023
A Java API wrapper for the pastemyst api

Pastemyst.java What is pastemyst.java? pastemyst.java is a pastemyst API Wrapper, written in Java. The library is in early development, and all contri

YeffyCodeGit 8 Sep 28, 2022
Dio-api-1 - Repositório com os artefatos da mentoria de API

dio-api-1 Repositório com os artefatos da mentoria de API Reference Documentation For further reference, please consider the following sections: Offic

Ricardo Lucas Chagas 5 Feb 25, 2022
API Gestor é uma API que permite a comunicação com um Banco de Dados educacionais sobre a educação brasileira.

API Gestor O projeto API Gestor é uma API que permite a comunicação de outras aplicações com os dados educacionais armazenados em um banco de dados, c

null 2 Apr 13, 2022
Leading REST API framework for Java

Restlet Framework The leading REST API framework for Java Thanks to Restlet Framework's powerful routing and filtering capabilities, unified client an

Restlet Framework 633 Dec 18, 2022
Simple JSP Servlets REST api.

Simple JSP Servlets REST api.

MisterFunny01 3 May 9, 2021
A simple API wrapper for discords.com (alias botsfordiscord.com) written in Java.

Discords.com / BotsForDiscord.com Java Library A simple API wrapper for discords.com (alias botsfordiscord.com) written in Java 8. Installation This w

Dorian 3 Aug 6, 2021
绕过安卓hidden api 限制

背景 非 SDK API 名单(谷歌官方) 随着每个 Android 版本的发布,会有更多非 SDK 接口受到限制。 我们知道这些限制会影响您的发布工作流,同时我们希望确保您拥有相关工具来检测非 SDK 接口的使用情况、有机会向我们提供反馈,并且有时间根据相应新政策做出规划和调整。 为最大程度地降低

null 67 Nov 29, 2022
Disable the 1.8x Click delay with this sleek API.

Tecknix Client Click Delay API A simple solution to remove Minecraft 1.8's click delay timer. Installation: Tecknix Click Delay API requires a Bukkit

Tecknix Client 2 Nov 16, 2021