Be a crypto hero in the market by logging in

Don't you have an account? Sign in

Token price

  • BTC

    8,959,689.0KRW

    -0.6%

  • ETH

    178,473.3KRW

    0.0%

  • XRP

    271.7KRW

    -1.0%

  • USDT

    1,192.9KRW

    -0.5%

  • BCH

    253,424.4KRW

    -0.4%

  • LTC

    54,759.1KRW

    -0.5%

  • EOS

    3,249.7KRW

    -0.6%

  • BNB

    18,641.2KRW

    -0.2%

  • BSV

    114,415.8KRW

    -0.6%

  • XLM

    66.4KRW

    -0.0%

  • XTZ

    1,922.7KRW

    3.5%

  • ADA

    45.6KRW

    -1.3%

  • TRX

    17.3KRW

    -0.7%

  • XMR

    64,111.0KRW

    -1.7%

  • HT

    3,367.2KRW

    0.2%

  • NEO

    10,687.9KRW

    -1.0%

  • MKR

    603,357.9KRW

    0.6%

  • DASH

    62,502.9KRW

    0.6%

  • USDC

    1,192.5KRW

    -0.5%

  • ETC

    4,647.9KRW

    -0.6%

  • ONT

    759.0KRW

    -0.4%

  • VET

    8.5KRW

    2.3%

  • XEM

    43.1KRW

    -1.1%

  • DOGE

    2.6KRW

    -0.9%

  • BAT

    228.8KRW

    0.6%

  • ZEC

    37,530.3KRW

    6.1%

  • PAX

    1,192.7KRW

    -0.5%

  • DCR

    24,237.2KRW

    -2.9%

  • INB

    636.3KRW

    -1.0%

  • QTUM

    2,105.7KRW

    0.3%

  • TUSD

    1,191.5KRW

    -0.6%

  • RVN

    37.7KRW

    -4.2%

  • LINK

    485.1KRW

    2.0%

  • ZRX

    280.4KRW

    -1.3%

  • REP

    12,326.2KRW

    -1.9%

  • NANO

    990.2KRW

    0.2%

  • CNX

    2,329.2KRW

    -0.3%

  • OMG

    903.7KRW

    0.9%

  • BTG

    7,113.9KRW

    -1.7%

  • XIN

    257,692.8KRW

    0.1%

  • XIN

    257,692.8KRW

    0.1%

  • LSK

    820.6KRW

    0.5%

  • DGB

    7.8KRW

    -0.6%

  • XVG

    6.0KRW

    4.6%

  • KCS

    1,141.9KRW

    -1.7%

  • BTM

    93.5KRW

    -1.8%

  • BTM

    93.5KRW

    -1.8%

  • KMD

    786.2KRW

    -0.8%

  • THETA

    105.3KRW

    7.8%

  • IOST

    7.4KRW

    2.0%

  • BCD

    447.0KRW

    -1.1%

  • ICX

    162.6KRW

    0.5%

  • ENJ

    103.7KRW

    -7.7%

  • MCO

    5,011.0KRW

    0.6%

  • BCN

    0.4KRW

    15.4%

  • SC

    1.8KRW

    3.0%

  • ZIL

    7.8KRW

    -3.4%

  • MONA

    1,087.0KRW

    0.3%

  • WAVES

    690.6KRW

    -0.4%

  • QNT

    5,653.7KRW

    1.3%

  • DAI

    1,187.1KRW

    -0.5%

  • BTS

    24.1KRW

    -0.6%

  • HC

    1,459.6KRW

    -1.9%

  • NEXO

    113.5KRW

    -1.9%

  • MAID

    136.7KRW

    0.2%

  • ARDR

    57.3KRW

    -0.0%

  • AE

    194.4KRW

    0.3%

  • STEEM

    146.2KRW

    0.4%

  • ETN

    4.5KRW

    -2.5%

  • SNT

    12.8KRW

    -1.8%

  • NPXS

    0.2KRW

    0.1%

  • GNT

    44.1KRW

    -0.3%

  • ELF

    74.3KRW

    -1.0%

  • AOA

    5.9KRW

    2.0%

  • XZC

    4,257.8KRW

    -0.3%

  • STRAT

    358.7KRW

    -0.2%

  • FCT

    3,795.3KRW

    2.4%

  • PPT

    633.4KRW

    0.3%

  • ELA

    1,916.1KRW

    -0.5%

  • AION

    77.3KRW

    -1.8%

  • LRC

    29.9KRW

    1.3%

  • WTC

    627.2KRW

    -2.4%

  • ARK

    226.7KRW

    1.0%

  • LOOM

    25.6KRW

    -6.5%

  • R

    50.0KRW

    -0.6%

  • RDD

    0.8KRW

    6.0%

  • WAX

    24.0KRW

    -3.1%

  • POWR

    50.4KRW

    5.9%

  • PAI

    14.3KRW

    -0.5%

  • PAI

    14.3KRW

    -0.5%

  • BNT

    323.2KRW

    0.9%

  • MOAC

    325.8KRW

    0.8%

  • ANT

    637.6KRW

    -0.3%

  • DENT

    0.2KRW

    3.4%

  • PIVX

    276.0KRW

    1.7%

  • ODE

    71.2KRW

    -0.2%

  • POLY

    29.6KRW

    8.5%

  • TTC

    33.2KRW

    -4.9%

  • MBL

    2.5KRW

    27.8%

  • PAY

    67.0KRW

    -2.5%

  • BAAS

    1.8KRW

    0.2%

  • EOSC

    7.8KRW

    8.5%

  • APIX

    0.7KRW

    16.3%

  • BORA

    9.1KRW

    0.7%

  • CPT

    1.9KRW

    0.4%

  • REPO

    50.3KRW

    -4.6%

  • GUSD

    1,190.5KRW

    -0.6%

  • FNB

    4.4KRW

    -17.0%

  • COSM

    7.1KRW

    -1.7%

  • HUM

    9.1KRW

    7.7%

  • AERGO

    41.3KRW

    11.4%

  • FLETA

    9.3KRW

    -1.5%

  • UPP

    12.2KRW

    -1.0%

  • VRA

    1.1KRW

    -0.3%

  • MVL

    0.4KRW

    -3.7%

  • DCC

    0.9KRW

    0.4%

  • LKY

    51.0KRW

    2.3%

  • eDEL

    2.4KRW

    -0.7%

  • RBG

    1.3KRW

    14.4%

  • MEETONE

    1.1KRW

    -0.1%

  • TEMCO

    0.6KRW

    -8.0%

  • ABL

    5.6KRW

    -34.0%

  • AKRO

    1.7KRW

    -11.2%

  • AMON

    2.3KRW

    40.2%

  • AID

    2.5KRW

    -6.0%

  • PTON

    0.1KRW

    9.6%

  • WET

    5.6KRW

    -0.9%

  • PXL

    20.4KRW

    -2.4%

  • CLB

    1.6KRW

    -0.9%

  • KARMA

    0.1KRW

    0.6%

  • XRA

    4.8KRW

    -7.7%

  • RBTC

    8,714,469.7KRW

    -1.6%

  • WIKEN

    1.5KRW

    -25.9%

  • SEAL

    0.8KRW

    -0.0%

  • NEWS

    1.2KRW

    -1.3%

  • PUB

    0.2KRW

    2.1%

  • NPER

    3.5KRW

    0.4%

  • HORUS

    0.2KRW

    0.0%

  • CCH

    0.1KRW

    --%

  • PUT

    1.1KRW

    -8.1%

  • KNT

    0.0KRW

    37.6%

  • IQ

    3.1KRW

    -3.9%

  • BLACK

    0.9KRW

    27.5%

  • CET

    17.8KRW

    -2.0%

  • RCD

    3.0KRW

    --%

  • MCC

    0.4KRW

    0.4%

  • INC

    0.2KRW

    -11.2%

  • BZKY

    0.1KRW

    -78.8%

  • CRE

    2.0KRW

    9.8%

Community

GUHADA Update: Response Status Code development

TEMCO | 03.26| 311

Welcome back again this week for another GUHADA development update!

At this time, we would like to explain what is “Restful API” and the development of the “response” code of GUHADA platform.

Please take your time reading through, since this may be an important aspect of GUHADA that you might want to know.

First, let's find out about the “Restful” API before getting into the “Response Code”.

So, what is “REST”?
The REST is described as below:

Representational State Transfer (REST)

REST is a software architectural style that defines a set of constraints to be used for creating Web services. Web services that conform to the REST architectural style, termed RESTful Web services (RWS), provide interoperability between computer systems on the Internet. RESTful Web services allow the requesting systems to access and manipulate textual representations of Web resources by using a uniform and predefined set of stateless operations. Other kinds of Web services, such as SOAP Web services, expose their own arbitrary sets of operations.

source: https://en.wikipedia.org/wiki/Representational_state_transfer

The REST is used accordingly for certain resources, to perform an operation of CRUD (Create, Read, Update, Delete), requesting to URI resource using the method, and the resources needed for the request is formed as Representation of Resource.

The specialty of the REST

Uniform interface

As long as it follows the HTTP standard, the interface can be used in android or iOS platforms that are not limited to specific language or coding, it is an architecture style that allows the manipulation of the URI designated resource.

Stateless

The server recognizes each request separately, and the previous one can not be the next request. So, the REST does not manage or save status information through cookies or session data. Due to the stateless nature of the REST, it has high service freedom, the development of it, is simple, since it does not manage the unnecessary information. This kind of statelessness grants aligning of the server processing method and reduces the burden on the server.

Cacheable

The REST uses HTTP which is a previous web standard, so it can use the web’s existing infrastructure. Accordingly, caching function can be applied in REST, and it is possible to use Last-modified or E-tag which is used in HTTP protocol standard to define caching, allowing efficient processing of a large number of requests.

Client-Server Architecture

While the REST supplies API, the client directly manages the user verification (session, login information etc.) and the role is specifically defined, so what needs to be developed is clearly distinguished and dependency of each other is reduced.

Self-Descriptiveness

REST is developed in a way that it can easily understand the nature of the request just by looking at the message. It is set up in such a way that Verb (Method) + Noun (URI), so it can define at which method is performing which activity.

Hierarchal Structure

API server purely executes the business logic, and beforehand, there is cryptographed user verification(ssl), load balancing etc. for setting up the hierarchy, producing flexibility of the structure. To simply put, through HA Proxy or Apache’s Reverse Proxy, the hierarchal structure goes further to create Micro Service Architecture through API gateway.

Response Development

Several images below show the programming structure of GUHADA’s API development.

The response is set up with GuhadaApiResult enum object and “Java Generic” (T). The java generic (T), sets up the class that will be used from the outside of the class. It is a programming method that creates general coding for reuse of diverse object types. The generic collection is used often for libraries.

Did not signal right away at the controller but justified by creating a BaseController. We have justified the framework by creating ExtendsBaseAbstractController, so that the developer can focus on content development.

The use at the Controller (Example)

By extending the BaseController, it is developed in a way that at the Controller, only the responseAPI needs to be justified and transferred.

The Result value (example)

Below shows the results of the post method call. First is without the parameter and the second is with the parameter. It is set up so that there is no need for the specific method to process at the client, by matching with response.

Post Method Example 1 (w/o Parameter)
Post Method Example 2 (w. Parameter)

Below is the result value of the “Get” method. It is showing the example with the parameter.

Get Method Example

We are continuously working to provide you with the updates and detail development process as we approach the launch of GUHADA in the second half of this year.

For next week, we will be back with the update, regarding “Error module”.

Please stay tuned for next week’s update!

Thank you for supporting TEMCO!

TEMCO: Innovative Supply Chain Data and E-Commerce Solution through Blockchain and Smart Contract technology.

Please visit us to learn more about the blockchain and smart contract based supply chain data/e-commerce platform!

▶TEMCO Chatroom: https://t.me/temcolabs
▶TEMCO Official Website: https://temco.io


GUHADA Update: Response Status Code development was originally published in TEMCO on Medium, where people are continuing the conversation by highlighting and responding to this story.

Comment 0

delete

Are you sure you want to delete this post?