Giter Site home page Giter Site logo

abap-rest-api's People

Contributors

pacroy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

abap-rest-api's Issues

Json and groovy file issue

Hello @pacroy

We are following your blog (Continuous Integration in ABAP using Jenkins) and the way you have explained is very nice. We are looking forward to do the CI/CD process first by using ECC system and github, according to your blog.
We have a linux vm with jenkins.
We installed ABAPGIT and it is working fine.
We cloned your repository and there we are facing issues,
with json and jenkinsfile,
We have updated the files with the details simply, but still facing the same issue on every change.

image

Please help us out.
Warm Regards

ID handling the path URI

Passing along this info that was a little hard to come by on including keys/ids in the URI template. Figured it might be nice to make a PR to improve the overall example and save people time trying to find it elsewhere.

I recently discovered you can process keys passed in the URI (ex: SalesOrder/40001 reading the the SO with ID 40001. This can be done while attaching the root handler

lo_router->attach( iv_template = '/SalesOrder/{ID}' iv_handler_class = 'ZCL_SALESORDERHANDLER' ).

In the handler class itself you would read the ID as follows

DATA(lt_uriattributes) = mo_request->get_uri_attributes( ).
READ TABLE lt_uriattributes WITH KEY name = 'ID' ASSIGNING FIELD-SYMBOL(<fs_salesorderid>).

In this example <fs_salesorderid>-value would then contain the passed ID value.

You can include regex in iv_template as well to enforce some character restrictions/validations.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.