Giter Club home page Giter Club logo

restfull-lib's Introduction

Java Restfull-MicroService Library

WARNING ⚠️⚠️⚠️

⚠️ Please Don't use the Library Now 🥺 ☹️ , it still under Development, Bugs 🐞 may happened and the Algorithm is not ready Yet 😰

Introduction

We're going to use this Library to build MicroServices and restfull apis

  • how to Create Object
  • how to Call the Service
  • how to Create MicroService processes.

Test the Api

perform an Api Call

@ApiAttributes(url = "https://misafir.app/api/v1/users/show_users/")
	private static void doApiConnection(){
		ApiClientResponse response= ApiClient.apiClientBuilder()
				.url()
				.inti()
				.perform()
				.retrieve();

		System.out.println(response.getMessage());

	}

you Can implement the Api Client using the Following method.

  • create an Object of the Api Interface like so:
ApiClientBuilder builder = ApiClientBuilder.buildWithDefaults();

two ways are available, either call the Default implementation using the embedded method

ApiClientBuilder.buildWithDefaults();

or create your own instance and implementation using:

ApiClientBuilder.builder(ApiClient.class);

passing the implementation Class name to the Method.

usage

builder.inti()
	   .perform()
	   .retrieve();

getting the response

ApiClientBuilder builder = ApiClientBuilder.buildWithDefaults();
		ApiClientResponse clientResponse =builder.inti()
				.perform()
				.retrieve();
		System.out.println(clientResponse.isStatus());

Create the Object

MicroServices.

public class className{
        private MicroService<String> microService;
    	private MicroServicesProducerImpl producer;
    	private MicroServiceFactory factory;

    public void method{
        producer = new MicroServicesProducerImpl();
        factory = producer.callMicroService("microseriveName");
        microService = factory.createMicroServiceMethods();
        microService.getFromMicroService();
    }
}

Call the Mehtods:

Service Object

services.getFromMicroService();

Contribution:

Contribution is Always Welcomed, Please contact : [email protected]

notes

stay Tuned, a lot is Coming 🤤 👽 💪

License


2020 YafaTek® Solutions. https://yafatek.dev , https://misafir.app

restfull-lib's People

Contributors

ferasawadi avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

feras-ngss

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.