Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sgrillon14/flags-rest-service
This REST Web service contains 241 countries complies with ISO 3166-1. - Spring Boot application.
https://github.com/sgrillon14/flags-rest-service
Last synced: 26 days ago
JSON representation
This REST Web service contains 241 countries complies with ISO 3166-1. - Spring Boot application.
- Host: GitHub
- URL: https://github.com/sgrillon14/flags-rest-service
- Owner: sgrillon14
- License: agpl-3.0
- Created: 2016-05-01T16:57:48.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-07T20:12:36.000Z (about 7 years ago)
- Last Synced: 2024-06-05T14:33:43.038Z (5 months ago)
- Language: Java
- Homepage:
- Size: 26.8 MB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# flags-rest-service
This REST Web service contains 241 countries complies with ISO 3166-1. The country name is available in seven languages (French, English, ...). The Web service also included the 3 digit code of the country, the 2-letter code (used in many applications, including monetary applications ) and the 3-letter code.
For information, the information for country France , will be the following
* Code ISO 3166-1 numérique : 250
* Code ISO 3166-1 alpha2 : FR
* Code ISO 3166-1 alpha3 : FRA# Supported languages
These are the currently supported languages
* Czech
* German
* English
* Spanish
* French
* Italian
* Dutch
Does flags-rest-service not support your language? Please help us with a PR!# Travis CI status
[![Build Status](https://travis-ci.org/sgrillon14/flags-rest-service.svg?branch=master)](https://travis-ci.org/sgrillon14/flags-rest-service)
# Gitter chat
[![Join the chat at https://gitter.im/sgrillon14/flags-rest-service](https://badges.gitter.im/sgrillon14/flags-rest-service.svg)](https://gitter.im/sgrillon14/flags-rest-service?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)# Technology
* HTML
* CSS
* AngularJS 1
* AngularJS 2 in progress...
* Spring Boot
* Spring Web
* Spring Actuator
* SVG
* TestNG
* Travis CI# Run Anywhere
![RunAnywhere](/screenshots/plateforme.png)Flags REST Service apps run anywhere the JVM does. Deploy standalone, in an app server, on a Cloud or all of the above.
# Production URL (Example)
UX (AngularJS 1):
* http://localhost:8084/angular1/views/index.html![sampleAngularjs1](/screenshots/sampleAngularjs1.png)
use cases:
* http://localhost:8084/flags/api/countries return a list of countries (in English)
* http://localhost:8084/flags/api/countries?lang=en return a list of countries (in English)
* http://localhost:8084/flags/api/countries?lang=fr return a list of countries (in French)
* http://localhost:8084/flags/api/fr return 200 OK and svg (French flag)
* http://localhost:8084/flags/api/fr/40/40 return 200 OK and png (French flag)Errors cases:
* http://localhost:8084/flags/api/countries?lang=fakecode return a list of countries (in English)
* http://localhost:8084/flags/api/fakecode return 204 No Content
* http://localhost:8084/flags/api/fakecode/40/40 return 204 No ContentUX (sample CORS with public_client in 8085 server):
* http://localhost:8085![CORSOK](/screenshots/CORS_OK.png)
UX (sample CORS with public_client out 8085 server):
* http://localhost:xxxx![CORSKO](/screenshots/CORS_KO.png)
# JSON response (Example)
[...,{"num":250,"alpha2":"FR","alpha3":"FRA","label":"France"},...]
# Spring Boot Actuator
* http://localhost:8088/health (CAUTION: login/password) return {"status":"UP"}
# License
[![license](https://img.shields.io/github/license/sgrillon14/flags-rest-service.svg)](https://github.com/sgrillon14/flags-rest-service/blob/master/LICENSE), See LICENSE for details
# Contributing
The [issue tracker](https://github.com/sgrillon14/flags-rest-service/issues) is the preferred channel for bug reports, features requests and submitting pull requests.
For pull requests, editor preferences are available in the [editor config](.editorconfig) for easy use in common text editors. Read more and download plugins at .