Skip to content

REST Utils #28

@martindsouza

Description

@martindsouza

Create a new REST package.

Things to add:

  • error: This will pass in a record table object which then loops over the errors, generates the proper JSON object (use APEX 4.2 apex_javascript for this) and then calls the owa_util:
    owa_util.status_line(nstatus => 400, creason => '',  bclose_header => false);
    owa_util.mime_header(ccontent_type => 'application/json');
    owa_util.http_header_close;

Error ideas: http://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api

Ideas:
http://raml.org/
http://swagger.io/

Codes:
For oos-utils: https://twiki.cern.ch/twiki/bin/view/DB/DevelopingOracleRestfulServices There’s a link there for REstful http statuses: http://www.restapitutorial.com/httpstatuscodes.html

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions