Method and apparatus for processing media type in rest software architecture
Abstract:
Embodiments of the present disclosure provide a method and apparatus for processing a media type in representational state transfer (REST) software architecture, comprising: extracting, in a request from a client, a first media type for the request, the request including a message sent to a server; in response to determining that a first media type processor supporting the first media type exists, converting, by the first media type processor, the message into an instance of a first data model; and sending the instance of the first data model to the server. Embodiments of the present disclosure can add support to a new media type without a need of changing the existing data model, thereby enhancing development efficiency of web applications.
Information query
Patent Agency Ranking
0/0