Be a crypto hero in the market by logging in
Don't you have an account? Sign in
Market trends report
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:
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.
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.
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.
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.
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.
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.
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.
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.
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.
By extending the BaseController, it is developed in a way that at the Controller, only the responseAPI needs to be justified and transferred.
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.
Below is the result value of the “Get” method. It is showing the example with the parameter.
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!
서비스 이용에 불편을 드려 죄송합니다. 현재 전화상담은 진행하고 있지 않아서 가입하신 메일 주소로 답변을 보내드렸으니 메일을 확인해 주시기 바랍니다.
Community | 3단계 휴대폰 인증버튼 안 눌림
제가 알기론 신청 후 4일간 락업되고 그 이후엔 본인이 원하실때 해지하시면 될 겁니다. 그럼 신청 시 렉스 비율과 해지시 렉스 비율에 따라 이오스 수익금이 계산되어 들어올 겁니다.
Community | [중요] 이오스 렉스 참여방법 (EOS 입금부터 수익금 확인방법까지)
12/12일 신청한것 대여기간이 언제 까지 인지 궁금합니다
Community | [중요] 이오스 렉스 참여방법 (EOS 입금부터 수익금 확인방법까지)
Community | 고객센터 연락처 문의
하려는 친구들이 많아야 미래가 밝다고 할 수 있겠죠.
Community | 인하대에서 인천 중·고생에게 블록체인 교육 실시한다네요
Write a post
Are you sure you want to delete this post?
Are you sure you want to delete this comment?
Purchase has been completed.
닉네임을 설정 후 작성해주세요.