Be a crypto hero in the market by logging in

Don't you have an account? Sign in

Token price

  • BTC

    10,104,257.8KRW

    0.6%

  • ETH

    195,289.4KRW

    1.7%

  • XRP

    275.8KRW

    2.6%

  • BCH

    400,562.8KRW

    4.2%

  • BSV

    358,144.1KRW

    13.6%

  • USDT

    1,167.2KRW

    0.7%

  • EOS

    4,247.1KRW

    2.5%

  • LTC

    54,759.1KRW

    -0.5%

  • BNB

    20,349.5KRW

    2.3%

  • XLM

    72.9KRW

    -1.0%

  • ADA

    52.9KRW

    5.9%

  • XMR

    76,197.0KRW

    2.2%

  • TRX

    19.7KRW

    2.8%

  • XTZ

    1,788.3KRW

    4.6%

  • DASH

    131,164.3KRW

    10.1%

  • ETC

    10,431.7KRW

    8.9%

  • ATOM

    5,302.4KRW

    2.0%

  • NEO

    12,983.7KRW

    0.6%

  • HT

    3,763.5KRW

    3.7%

  • HEDG

    2,854.8KRW

    10.7%

  • MKR

    553,781.2KRW

    -0.9%

  • ZEC

    61,901.7KRW

    6.5%

  • USDC

    1,168.5KRW

    0.7%

  • ONT

    767.1KRW

    2.2%

  • XEM

    44.0KRW

    1.8%

  • VET

    6.9KRW

    0.9%

  • BAT

    258.4KRW

    4.4%

  • DOGE

    2.8KRW

    -0.3%

  • PAX

    1,176.1KRW

    1.1%

  • DCR

    22,526.0KRW

    5.1%

  • BTG

    13,346.1KRW

    8.3%

  • QTUM

    2,268.8KRW

    2.4%

  • INB

    573.8KRW

    0.1%

  • REP

    16,573.4KRW

    7.1%

  • LINK

    485.1KRW

    2.0%

  • ZRX

    274.4KRW

    2.0%

  • RVN

    31.1KRW

    3.3%

  • TUSD

    1,168.7KRW

    0.8%

  • ALGO

    278.3KRW

    -0.4%

  • CNX

    2,465.3KRW

    0.5%

  • BCD

    710.8KRW

    5.1%

  • OMG

    919.2KRW

    1.7%

  • XIN

    269,905.6KRW

    2.7%

  • XIN

    269,905.6KRW

    2.7%

  • THETA

    130.2KRW

    -0.0%

  • NANO

    807.7KRW

    3.2%

  • WAVES

    1,016.9KRW

    -0.5%

  • DGB

    7.9KRW

    1.5%

  • LSK

    811.6KRW

    1.9%

  • KCS

    1,194.7KRW

    0.0%

  • MCO

    5,948.4KRW

    5.9%

  • ICX

    180.4KRW

    7.1%

  • BTM

    91.6KRW

    0.8%

  • BTM

    91.6KRW

    0.8%

  • MONA

    1,328.5KRW

    0.6%

  • KMD

    717.9KRW

    0.7%

  • IOST

    6.3KRW

    1.5%

  • SC

    1.8KRW

    3.6%

  • HC

    1,656.1KRW

    0.9%

  • STEEM

    203.6KRW

    8.5%

  • XVG

    4.5KRW

    2.7%

  • ENJ

    88.7KRW

    3.1%

  • ABBC

    123.6KRW

    0.3%

  • BCN

    0.4KRW

    4.2%

  • NEXO

    116.2KRW

    -7.7%

  • BTS

    21.8KRW

    2.7%

  • ZIL

    6.0KRW

    1.6%

  • XZC

    6,081.5KRW

    0.9%

  • AE

    187.9KRW

    3.6%

  • ARDR

    51.3KRW

    2.7%

  • MATIC

    19.7KRW

    3.4%

  • QNT

    3,848.9KRW

    4.7%

  • MAID

    99.2KRW

    11.6%

  • ETN

    4.4KRW

    0.9%

  • MANA

    41.0KRW

    -2.3%

  • SNT

    12.1KRW

    3.0%

  • STRAT

    406.1KRW

    4.8%

  • ELF

    70.7KRW

    0.4%

  • TOMO

    537.9KRW

    0.8%

  • NPXS

    0.2KRW

    2.5%

  • GNT

    37.3KRW

    -1.6%

  • DAI

    1,167.5KRW

    0.8%

  • ELA

    1,860.6KRW

    3.1%

  • AION

    82.4KRW

    1.7%

  • FET

    43.6KRW

    0.3%

  • LRC

    29.5KRW

    -2.5%

  • WTC

    538.0KRW

    -3.6%

  • TRUE

    306.2KRW

    2.1%

  • WAX

    23.9KRW

    6.3%

  • RDD

    0.8KRW

    8.6%

  • LAMB

    31.3KRW

    0.5%

  • PAI

    15.0KRW

    1.9%

  • PAI

    15.0KRW

    1.9%

  • ARK

    182.5KRW

    1.8%

  • PPT

    402.9KRW

    3.7%

  • FCT

    2,390.2KRW

    2.3%

  • ANT

    675.1KRW

    -1.5%

  • R

    43.3KRW

    6.2%

  • POWR

    48.3KRW

    1.1%

  • FTM

    11.3KRW

    2.3%

  • PIVX

    355.9KRW

    19.6%

  • LOOM

    20.7KRW

    3.4%

  • BNT

    254.5KRW

    1.2%

  • MOAC

    254.5KRW

    3.9%

  • DENT

    0.2KRW

    1.8%

  • OCEAN

    42.5KRW

    -0.7%

  • ABT

    150.4KRW

    -0.7%

  • CET

    16.8KRW

    0.9%

  • ODE

    64.8KRW

    0.3%

  • TTC

    33.4KRW

    8.3%

  • AOA

    1.8KRW

    -0.2%

  • POLY

    21.1KRW

    0.4%

  • REPO

    75.2KRW

    14.4%

  • PAY

    46.0KRW

    0.4%

  • MBL

    1.7KRW

    0.8%

  • CPT

    1.9KRW

    10.2%

  • INS

    191.4KRW

    -0.3%

  • BORA

    9.0KRW

    2.3%

  • BCV

    6.1KRW

    1.2%

  • COSM

    8.1KRW

    12.4%

  • BAAS

    1.0KRW

    -0.5%

  • UPP

    15.0KRW

    34.3%

  • GUSD

    1,156.8KRW

    0.4%

  • FLETA

    9.2KRW

    -1.8%

  • FNB

    2.3KRW

    -1.0%

  • AERGO

    33.4KRW

    15.2%

  • HUM

    6.9KRW

    5.6%

  • RBG

    1.0KRW

    6.7%

  • EOSC

    3.0KRW

    -1.2%

  • MVL

    0.4KRW

    -3.7%

  • DCC

    0.9KRW

    0.7%

  • LKY

    48.9KRW

    0.7%

  • eDEL

    2.4KRW

    -0.7%

  • VRA

    0.5KRW

    15.5%

  • ABL

    6.6KRW

    -2.5%

  • TEMCO

    0.5KRW

    0.2%

  • MEETONE

    0.7KRW

    2.9%

  • AMON

    1.8KRW

    -10.4%

  • AID

    2.3KRW

    -1.4%

  • PXL

    21.1KRW

    1.4%

  • XRA

    7.8KRW

    0.8%

  • AKRO

    0.8KRW

    -0.2%

  • CLB

    1.3KRW

    -3.2%

  • WET

    4.0KRW

    1.6%

  • RBTC

    10,135,026.3KRW

    1.1%

  • HORUS

    0.5KRW

    145.6%

  • WIKEN

    1.5KRW

    -5.6%

  • SEAL

    0.7KRW

    -0.7%

  • PTON

    0.0KRW

    41.1%

  • NEWS

    1.5KRW

    3.0%

  • NPER

    3.4KRW

    0.7%

  • PUB

    0.1KRW

    2.3%

  • KARMA

    0.0KRW

    0.6%

  • PUT

    1.5KRW

    1.3%

  • CCH

    0.0KRW

    33.3%

  • KNT

    0.0KRW

    -14.3%

  • APIX

    0.6KRW

    0.7%

  • IQ

    3.1KRW

    0.6%

  • BLACK

    0.5KRW

    9.1%

  • RCD

    3.0KRW

    --%

  • MCC

    4.4KRW

    0.7%

  • INC

    0.2KRW

    11.6%

  • BZKY

    0.3KRW

    0.7%

  • CRE

    1.4KRW

    -1.7%

Community

GUHADA Update: Response Status Code development

TEMCO | 03.26| 349

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?